Sourcecodester Employee Management System Cross-Site Scripting Vulnerability

Vulnerability

A cross-site scripting (XSS) vulnerability has been identified in Sourcecodester Employee Management System version 1.0. The issue arises in the 'Add Designation' feature, where user input is not properly sanitized, allowing for the injection of malicious scripts.

Impact

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

Reproduction

To reproduce this vulnerability, log into the application as an admin. Navigate to the 'Add Designation' section and enter a payload, such as an image tag with an 'onerror' event, into the request. Once the payload is submitted, the injected script will execute, demonstrating the cross-site scripting vulnerability.

Added: Sep 26, 2025, 5:19 PM
Updated: Sep 26, 2025, 9:24 PM

Vulnerability Rating

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