SourceCodester Online Food Ordering System SQL Injection Vulnerability in Product View

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Online Food Ordering System version 1.0. The issue resides in the admin/view_product.php file, where the application fails to properly sanitize the 'id' parameter in the HTTP GET request. This flaw allows authenticated attackers to inject arbitrary SQL commands. Exploitation of this vulnerability could lead to unauthorized data access, including sensitive information such as administrator credentials, which could be displayed on the webpage.

Impact

Successful exploitation allows attackers to retrieve and display database content, including sensitive information such as admin credentials, on the webpage. This could lead to unauthorized access and system compromise.

Reproduction

To reproduce this vulnerability, deploy the Online Food Ordering System locally and log in as an administrator. The 'id' parameter in the 'admin/view_product.php' file can be manipulated to inject SQL commands. This vulnerability can be exploited manually or by using automated tools like 'sqlmap'.

Added: Mar 27, 2026, 4:26 PM
Updated: Mar 27, 2026, 4:26 PM

Vulnerability Rating

Custom Algorithm
spread
1.0
impact
2.5
exploitability
6.3
remediation
0.0
relevance
4.8
threat
6.4
urgency
2.9
incentive
0.0

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