Code-Projects Food Ordering Review System Cross-Site Scripting Vulnerability

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in Code-Projects Food Ordering Review System version 1.0. The issue arises in the registration function, where an attacker can input malicious JavaScript into the username field. This script is executed when the admin reviews user information, leading to the exposure of the admin's cookie data.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where an attacker can inject and execute malicious scripts in the context of the user's browser session.

Reproduction

To reproduce this vulnerability, register a new user by entering '<script>alert(document.cookie)</script>' in both the surname and first name fields. After successful registration, the injected script will execute when the admin views the user information, causing an alert with the admin's cookie details to appear.

Added: Sep 16, 2025, 2:50 PM
Updated: Sep 16, 2025, 7:29 PM

Vulnerability Rating

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