E-commerce Project Reflected Cross-Site Scripting Vulnerability

Vulnerability

A reflected cross-site scripting vulnerability has been identified in the E-commerce Project, specifically in the products.php component, version 1.0 and earlier. This vulnerability allows attackers to execute arbitrary JavaScript in the context of the user's browser by injecting a crafted payload into the 'id' parameter.

Impact

Exploitation of this vulnerability could lead to session hijacking, credential theft, account takeover, sensitive data disclosure, and reputational damage.

Reproduction

To reproduce this vulnerability, navigate to the 'products.php' page within the 'ecommerce' directory of the PHP E-commerce Project. Inject a script payload into the 'id' parameter, such as a JavaScript alert. The injected script will execute in the user's browser, demonstrating the cross-site scripting vulnerability.

Remediation

To mitigate this vulnerability, implement server-side output encoding for the 'id' parameter and remove inline JavaScript or avoid using inline event handlers.

Added: Nov 19, 2025, 4:19 PM
Updated: Nov 19, 2025, 7:48 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
7.7
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.