Code-Projects Simple Food Order System SQL Injection Vulnerability
Vulnerability
A SQL injection vulnerability has been identified in Code-Projects Simple Food Order System version 1.0. The issue resides in the file '/food/routers/edit-orders.php', where user input is not properly sanitized, allowing attackers to manipulate SQL queries and potentially access or modify database information.
Impact
Exploitation of this vulnerability allows for SQL injection, where an attacker can interfere with the application's database queries. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.
Reproduction
To reproduce this vulnerability, send a POST request to '/food/routers/edit-orders.php' with the 'status' parameter set to '1' and the 'id' parameter manipulated to include a SQL injection payload, such as '1 and updatexml(1,concat(0x7e,database()),3)'. This payload exploits the SQL injection vulnerability by injecting SQL code that is executed by the database, in this case, leaking the name of the database.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
