SourceCodester Online Book Store System SQL Injection Vulnerability Allowing Authentication Bypass

Vulnerability

A SQL injection vulnerability has been identified in the admin login page of SourceCodester Online Book Store System version 1.0. This flaw allows remote attackers to manipulate the Username input, bypass authentication, and gain unauthorized access to the administrative dashboard. The vulnerability arises from inadequate input sanitization, enabling attackers to alter SQL queries and evade credential verification.

Impact

Exploitation of this vulnerability allows for unauthorized access to the administrative dashboard, with full administrative privileges. This access includes the ability to view and manage sensitive business and customer information, modify or delete records, and potentially take over the platform.

Reproduction

To reproduce this vulnerability, navigate to the admin login page of the affected application. In the Username field, enter a crafted payload that exploits the SQL injection vulnerability, such as a common SQL injection string that bypasses authentication. Enter any value in the Password field and submit the login form. The application will authenticate the user as an administrator, granting access to privileged functionalities.

Remediation

Developers are advised to use prepared statements and parameterized queries to prevent SQL injection vulnerabilities. Avoid constructing SQL queries dynamically with user input. Implement strict server-side input validation and use modern password hashing algorithms like bcrypt or Argon2. Additionally, establish logging and monitoring for authentication anomalies and conduct regular secure code reviews and penetration testing.

Added: Jul 13, 2026, 7:23 AM
Updated: Jul 13, 2026, 7:23 AM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
5.0
exploitability
9.7
remediation
0.0
relevance
9.8
threat
6.4
urgency
2.9
incentive
8.3

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