Sourcecodester Basic Library System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in Sourcecodester Basic Library System version 1.0. The issue resides in the 'load_student.php' file within the library system. This vulnerability allows attackers to manipulate the 'student_id' parameter, potentially leading to unauthorized database access or data manipulation.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can interfere with the application's database queries. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a GET request to 'load_student.php' with a crafted 'student_id' parameter. The payload should include a SQL injection payload, such as a UNION SELECT statement, to extract database information. The response will indicate successful exploitation by displaying the injected data, such as the name of the database.

Added: Apr 13, 2026, 1:27 PM
Updated: Apr 13, 2026, 1:27 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
8.7
remediation
0.0
relevance
5.8
threat
6.4
urgency
2.9
incentive
4.2

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