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 file '/librarysystem/load_admin.php', where the 'admin_id' parameter can be manipulated to execute arbitrary SQL commands. This vulnerability allows an attacker to extract database information by injecting SQL payloads that bypass normal query restrictions.

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 '/librarysystem/load_admin.php' with the 'admin_id' parameter. Inject a SQL payload, such as a UNION SELECT statement, to extract database information. The application responds with the database name, indicating successful exploitation.

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

Vulnerability Rating

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

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