code-projects Simple Flight Ticket Booking System
cpe:2.3:a:code-projects:simple_ticket_booking:*:*:*:*:*:*:*
- 1.0
A SQL injection vulnerability has been identified in Code-Projects Simple Flight Ticket Booking System version 1.0. The issue resides in the login.php file, where the application fails to properly validate or sanitize the 'username' parameter before using it in SQL queries. This oversight allows attackers to inject malicious SQL code, potentially bypassing authentication and manipulating database records. The vulnerability can be exploited remotely without any authentication.
Exploitation of this vulnerability allows for SQL injection, enabling attackers to manipulate database queries. This could lead to unauthorized data access, data modification or deletion, and bypassing authentication mechanisms.
To reproduce this vulnerability, send a POST request to 'login.php' with an injected SQL payload in the 'username' parameter. For example, use 'admin' followed by a SQL injection payload that exploits the application's SQL query handling. The injection can be verified by observing the application's response, such as a successful login redirect or a delayed response indicating a time-based SQL injection exploit.
It is recommended to use prepared statements and parameter binding to prevent SQL injection vulnerabilities. Additionally, input validation and filtering should be implemented to ensure that user-controlled input does not compromise SQL query integrity.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.