SourceCodester Time Tracker Reflected Cross-Site Scripting Vulnerability

Vulnerability

A reflected cross-site scripting vulnerability has been identified in SourceCodester Time Tracker version 1.0. The issue arises in the project name input field within the index.html file. This vulnerability allows remote attackers to inject malicious JavaScript that executes immediately in the context of the user's browser. The root cause is improper sanitization of user input, which is directly reflected into the DOM using innerHTML, creating an opportunity for script execution.

Impact

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

Reproduction

To reproduce this vulnerability, enter a malicious payload, such as an image tag with an onerror event, into the project name field. Upon submission, the injected script will execute immediately, demonstrating the cross-site scripting vulnerability.

Added: Sep 8, 2025, 7:27 AM
Updated: Sep 8, 2025, 7:27 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.7
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.