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.
Vulnerability Rating
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.
