code-projects Simple Car Rental System
cpe:2.3:a:code-projects:simple_car_rental_system:*:*:*:*:*:*:*
- 1.0
A critical SQL injection vulnerability has been identified in version 1.0 of the Code-Projects Simple Car Rental System. The issue resides in the pay.php file, where the mpesa parameter is manipulated to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication, allowing attackers to access and manipulate database information.
Exploitation of this vulnerability allows for unauthorized database access, manipulation of data, and potential disruption of services.
The vulnerability can be reproduced by sending a POST request to pay.php with the mpesa parameter. The request can include a crafted SQL payload that exploits the application's SQL query handling. This can be done using tools like sqlmap, which automates the process of finding and exploiting SQL injection vulnerabilities.
It is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure user input conforms to expected formats. Minimizing database user permissions and conducting regular security audits can also help mitigate such vulnerabilities.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.