Code-Projects Food Ordering System SQL Injection Vulnerability in Admin Menu Management

Vulnerability

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.

Impact

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.

Reproduction

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.

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 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.

Added: Oct 27, 2025, 8:25 PM
Updated: Oct 27, 2025, 8:25 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
3.8
exploitability
9.7
remediation
0.0
relevance
0.9
threat
6.4
urgency
2.9
incentive
10.0

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