SourceCodester Patients Waiting Area Queue Management System Cross-Site Scripting Vulnerability

Vulnerability

A stored cross-site scripting vulnerability has been identified in SourceCodester Patients Waiting Area Queue Management System version 1.0. The issue arises in the file '/php/api_register_patient.php', where the 'firstName' and 'lastName' registration fields are not properly sanitized before being saved to the database. This unsanitized input is later displayed in 'queue.php' and 'dashboard.php', allowing for the injection of malicious scripts. The vulnerability can be exploited remotely and requires user interaction.

Impact

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

Reproduction

To reproduce this vulnerability, register a patient through the application’s registration form. Input a script payload in the 'firstName' or 'lastName' fields. Once the data is submitted, the injected script will be executed when the information is displayed on 'queue.php' or 'dashboard.php'.

Added: Jan 19, 2026, 9:20 AM
Updated: Jan 19, 2026, 9:20 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
exploitability
7.3
remediation
0.0
relevance
2.1
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.