CVE-2026-124570

SourceCodester Online Leave Management System Employee Avatar Upload Extension Master.php cross site scripting

Published Nov 9, 2026 CVSS 4.0 · 4.8 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was detected in SourceCodester Online Leave Management System 1.0. Affected is an unknown function of the file app/classes/Master.php of the component Employee Avatar Upload Extension. Performing a manipulation of the argument employee avatar filename results in cross site scripting. Remote exploitation of the attack is possible. The exploit is now public and may be used.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Validate the avatar filename on the server side by allowing only safe characters and rejecting any input that contains HTML or scripting tags.
  • When rendering the filename in output, apply proper HTML entity encoding to ensure that characters such as <, >, &, and " are escaped.
  • Move the avatar upload directory outside the web root and configure the server to prohibit execution of scripts within that directory; restrict uploads to image file types and enforce MIME‑type checks.

Generated by OpenCVE AI on November 9, 2026 at 06:50 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A vulnerability was detected in SourceCodester Online Leave Management System 1.0. Affected is an unknown function of the file app/classes/Master.php of the component Employee Avatar Upload Extension. Performing a manipulation of the argument employee avatar filename results in cross site scripting. Remote exploitation of the attack is possible. The exploit is now public and may be used.
Title SourceCodester Online Leave Management System Employee Avatar Upload Extension Master.php cross site scripting
First Time appeared Sourcecodester
Sourcecodester online Leave Management System
Weaknesses CWE-79
CWE-94
CPEs cpe:2.3:a:sourcecodester:online_leave_management_system:*:*:*:*:*:*:*:*
Vendors & Products Sourcecodester
Sourcecodester online Leave Management System
References
Metrics cvssV2_0

{'score': 3.3, 'vector': 'AV:N/AC:L/Au:M/C:N/I:P/A:N/E:POC/RL:ND/RC:C'}

cvssV3_0

{'score': 2.4, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:C'}

cvssV3_1

{'score': 2.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:C'}

cvssV4_0

{'score': 4.8, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Nov 9, 2026, 10:44 PM
Reserved
Nov 8, 2026, 4:40 PM
Status
Deferred
Published
Nov 9, 2026, 6:17 AM
Modified
Nov 9, 2026, 11:17 PM