Code-Projects Simple Food Ordering System Cross-Site Scripting Vulnerability in editproduct.php

Vulnerability

A stored cross-site scripting vulnerability has been identified in version 1.0 of the Code-Projects Simple Food Ordering System. The issue resides in the editproduct.php file, where user input in the pname, category, and price fields is not properly sanitized before being saved and later displayed. This flaw allows attackers to inject malicious scripts that are executed automatically in the browsers of users who access the affected page, potentially leading to session hijacking, account takeover, and theft of sensitive information.

Impact

Exploitation of this vulnerability allows for the injection of persistent malicious JavaScript that executes in the context of the user’s browser, potentially leading to session hijacking, account takeover, and theft of sensitive information.

Reproduction

To reproduce this vulnerability, navigate to the editproduct.php page and submit a script payload in the pname, category, or price fields. After submission, the injected script will execute when the page is viewed, demonstrating the cross-site scripting vulnerability.

Remediation

No specific remediation is known for this vulnerability, but it is recommended to implement proper input validation and output encoding to prevent cross-site scripting.

Added: Oct 27, 2025, 6:25 PM
Updated: Oct 27, 2025, 6:25 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.5
exploitability
5.8
remediation
0.0
relevance
0.8
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.