SourceCodester Online College Library System SQL Injection Vulnerability

Vulnerability

A critical SQL injection vulnerability has been identified in SourceCodester Online College Library System version 1.0. The issue resides in the '/index.php' file, where the 'category' parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication or authorization.

Impact

Exploitation of this vulnerability allows for unauthorized database access, manipulation of data, leakage of sensitive information, and potential disruption of services.

Reproduction

The vulnerability can be reproduced by sending a crafted HTTP request to 'index.php' with the 'category' parameter. The injected SQL payload can be a boolean-based blind injection, such as '1 OR NOT 2300=2300', which exploits the application's SQL query handling by injecting logical conditions that can be used to extract database information.

Remediation

To address this vulnerability, it is recommended to use prepared statements and parameter binding to separate SQL code from user input, validate and filter user input to ensure it meets expected formats, minimize database user permissions, and conduct regular security audits.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
6.0
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.