Technical impact
A flaw exists in the file that handles employee avatar uploads. The system reflects the supplied avatar filename in page output without any sanitization, allowing an attacker to inject malicious scripts. The result of such a script execution is that it runs inside the victim’s browser, potentially exposing session identifiers or other sensitive data. The vulnerability is a classic client‑side cross‑site scripting flaw that can be triggered by any user who can provide an avatar filename value.
Affected Systems
The issue is present in SourceCodester Online Leave Management System version 1.0, specifically within the Employee Avatar Upload Extension component. No other products or versions are listed as affected in the official data.
Risk and Exploitability
The CVSS score is 4.8, indicating a moderate risk level. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog. Attackers can remotely exploit the flaw by supplying a crafted avatar filename – for example, during the upload process or by manipulating a URL that accepts the filename as a parameter. Because the flaw is reflected directly into the web page, any user who views the page after submission can be impacted. There is no indication that authentication is required, so the exploitation may be possible for unauthenticated users as well. The overall exposure depends on how the application exposes the avatar filename to client browsers.