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_book.php', where user input for the 'book_id' parameter is not properly sanitized, allowing attackers to manipulate SQL queries and potentially access or modify database information.
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_book.php' with a crafted 'book_id' parameter that includes SQL injection payloads. For example, use a payload that exploits the application's SQL query handling, such as 'union select' statements. The response should indicate successful exploitation, such as leaking database information.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
