Code-Projects Food Ordering System SQL Injection Vulnerability in Admin Delete Item Function

Vulnerability

A SQL injection vulnerability has been identified in version 1.0 of the Code-Projects Food Ordering System. The issue arises in the admin/deleteitem.php file, where the itemID parameter is not properly validated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without the need for authentication, potentially leading to unauthorized database access, data manipulation, and disruption of services.

Impact

Exploitation of this vulnerability allows for unauthorized database access via the itemID parameter, with the potential to modify or delete data and access sensitive information. Such actions could disrupt services and cause significant harm to the system's security and operational continuity.

Reproduction

The vulnerability can be reproduced by sending a GET request to the admin/deleteitem.php file with a crafted itemID parameter. This parameter can be manipulated to include malicious SQL payloads that exploit the injection flaw. The menuID parameter should also be included in the request.

Remediation

It is recommended to implement prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be applied to ensure that user input meets expected formats, blocking malicious entries. Minimizing database user permissions is also advised, 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
5.0
exploitability
9.7
remediation
0.0
relevance
0.8
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.