Code-Projects Simple Food Order System SQL Injection Vulnerability in Add-Item.php

Vulnerability

A SQL injection vulnerability has been identified in version 1.0 of the Code-Projects Simple Food Order System. The issue arises in the add-item.php file, where the price parameter is not properly validated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication, potentially leading to unauthorized database access, data manipulation, and leakage of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, enabling attackers to interfere with the application's database queries. This could lead to unauthorized data access, data modification or deletion, and in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a POST request to the add-item.php file with the price parameter manipulated to include a SQL injection payload. The injection can be crafted to exploit time-based blind SQL injection techniques, such as using a payload that causes the database to pause processing for a few seconds before responding.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection vulnerabilities. Additionally, input validation and filtering should be implemented to ensure that user input conforms to expected formats. Regular security audits can help identify and address potential vulnerabilities.

Added: Mar 17, 2026, 6:20 PM
Updated: Mar 17, 2026, 6:20 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
8.7
remediation
0.0
relevance
4.0
threat
6.4
urgency
2.9
incentive
4.2

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