code-projects Food Ordering System
cpe:2.3:a:food_ordering_system_project:food_ordering_system:*:*:*:*:*:*:*
- 1.0
A SQL injection vulnerability has been identified in Code-Projects Food Ordering System version 1.0. The issue resides in the admin/menu.php file, where the itemPrice parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without the need for authentication.
Exploitation of this vulnerability allows unauthorized access to the database, enabling attackers to read, modify, or delete data. This could lead to the leakage of sensitive information, unauthorized data manipulation, and disruption of services.
The vulnerability can be reproduced by sending a POST request to the /admin/menu.php file with the itemPrice parameter. The request must 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 that user input meets expected formats, blocking malicious data. Finally, database user permissions should be minimized, ensuring that accounts used for database connections have only the necessary privileges.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.