Code-Projects Simple Food Ordering System SQL Injection Vulnerability in saveorder.php

Vulnerability

A SQL injection vulnerability has been identified in Code-Projects Simple Food Ordering System version 1.0, specifically within the saveorder.php file. The issue arises from inadequate validation of user input for the 'id' parameter, 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 or deletion, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, enabling attackers to access the database, manipulate or delete data, and extract sensitive information. This poses a significant risk to the application's data integrity and security.

Reproduction

The vulnerability can be reproduced by sending a POST request to the saveorder.php file with a crafted 'id' parameter that includes a SQL injection payload. This can be done using tools like sqlmap, which can automate the exploitation of SQL injection vulnerabilities.

Remediation

It is recommended to implement prepared statements and parameter binding to prevent SQL injection, validate and filter user input, and limit database user permissions to the minimum required.

Added: Nov 17, 2025, 5:29 PM
Updated: Nov 17, 2025, 5:29 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
exploitability
6.0
remediation
0.0
relevance
1.0
threat
6.4
urgency
2.9
incentive
1.7

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