Code-Projects Simple Flight Ticket Booking System SQL Injection Vulnerability
Vulnerability
A SQL injection vulnerability exists in Code-Projects Simple Flight Ticket Booking System version 1.0, specifically within the '/Adminsearch.php' file. The issue arises from inadequate input validation of the 'flightno' parameter, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without authentication, potentially leading to unauthorized database access and manipulation of sensitive information.
Impact
Exploitation of this vulnerability allows for SQL injection, where attackers 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
The vulnerability can be reproduced by sending a GET request to 'Adminsearch.php' with a crafted 'flightno' parameter that includes SQL injection payloads. This can be done manually or using automated tools like sqlmap, which can exploit the injection and demonstrate the vulnerability by, for example, extracting database information.
Remediation
It is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure that user-supplied data does not interfere with SQL query execution.
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.
