CVE-2024-34833
Published: 17 June 2024
Summary
CVE-2024-34833 is a critical-severity Unrestricted Upload of File with Dangerous Type (CWE-434) vulnerability in Oretnom23 Payroll Management System. Its CVSS base score is 9.8 (Critical).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploit Public-Facing Application (T1190); ranked in the top 2.5% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.
Deeper analysis
Sourcecodester Payroll Management System v1.0 is affected by an unrestricted file upload vulnerability tracked as CVE-2024-34833 and CWE-434. The flaw resides in the save_settings page, which accepts image uploads without enforcing file-type restrictions or authentication, allowing an attacker to supply a PHP script instead of a legitimate image.
An unauthenticated remote attacker can send a crafted request to the save_settings endpoint and upload a malicious PHP file. Successful exploitation grants the ability to execute arbitrary code on the underlying server with the privileges of the web-server user, corresponding to the maximum CVSS 3.1 score of 9.8.
Public exploit code demonstrating remote code execution has been released on GitHub and Packet Storm. The EPSS score has remained flat at 0.42 since disclosure, indicating no material increase in observed exploitation interest.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-35096
Vulnerability details
Sourcecodester Payroll Management System v1.0 is vulnerable to File Upload. Users can upload images via the "save_settings" page. An unauthenticated attacker can leverage this functionality to upload a malicious PHP file instead. Successful exploitation of this vulnerability results in the…
more
ability to execute arbitrary code as the user running the web server.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Unauthenticated file upload vulnerability in a public-facing web application enables exploitation (T1190) and deployment of a web shell for remote code execution (T1505.003).
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Requiring identifiable owners for portable devices reduces the attack surface for unrestricted uploads of dangerous file types via anonymous media.
Dangerous file uploads can be detonated in the chamber to determine malice before any production write or execution occurs.
Prevents unrestricted writing of arbitrary or malicious firmware by keeping hardware write-protect enabled except under tightly controlled manual procedures.
Scans files from external sources on download/open/execute, blocking unrestricted uploads of dangerous file types.