Code-Projects E-Commerce Website Stored Cross-Site Scripting Vulnerability

Vulnerability

A stored cross-site scripting vulnerability has been identified in Code-Projects E-Commerce Website version 1.0. The issue resides in the supplier_update.php file, where user input for the supp_name and supp_address parameters is not properly sanitized before being stored. This lack of validation allows attackers to inject malicious scripts that are executed when other users view the affected page. The vulnerability can be exploited remotely, without authentication, but requires user interaction.

Impact

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

Reproduction

To reproduce this vulnerability, navigate to the supplier_update.php page and locate the input fields for 'supp_name' and 'supp_address'. Inject a script payload, such as an alert script, into these fields and submit the form. 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.

Added: Oct 28, 2025, 12:23 AM
Updated: Oct 28, 2025, 12:23 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.4
exploitability
7.7
remediation
0.0
relevance
0.9
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.