SourceCodester Online Shop Cross-Site Scripting Vulnerability in Register.php

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in SourceCodester Online Shop Project version 1.0. The issue resides in the register.php file, specifically within an unknown function that processes the f_name parameter. This vulnerability allows remote attackers to inject malicious scripts, which could be executed in the context of the user's browser, potentially compromising their security and privacy.

Impact

Exploitation of this vulnerability allows for cross-site scripting, where injected scripts are executed in the context of the user's browser.

Reproduction

To reproduce this vulnerability, navigate to the '/shop/register.php' page. Inject a script payload, such as an alert script, into the 'f_name' input box. After submitting the form, the injected script will execute when the page is refreshed.

Added: Nov 20, 2025, 3:39 PM
Updated: Nov 20, 2025, 8:27 PM

Vulnerability Rating

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