CVE-2024-53617
Published: 02 December 2024
Summary
CVE-2024-53617 is a medium-severity Cross-site Scripting (CWE-79) vulnerability. Its CVSS base score is 4.8 (Medium).
Operationally, ranked in the top 9.8% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.
Deeper analysis
LibrePhotos versions prior to commit 32237 contain a cross-site scripting vulnerability (CWE-79) combined with an insecure direct object reference (CWE-639) in the file-upload component. The flaw permits an authenticated high-privileged user to store an HTML file that is later rendered in the browser context of other users, including administrators.
An attacker who already possesses high privileges can leverage the IDOR condition to upload a malicious HTML payload on behalf of an administrator account. When the file is subsequently viewed, the embedded script executes with the victim’s session privileges, enabling the attacker to hijack any user account reachable through the application.
The issue is addressed by commit 32237ddc0b6293a69b983a07b5ad462fcdd6c929 and the associated pull request 1476, which restrict file-upload handling and prevent unauthorized object references. Public references also include a proof-of-concept repository demonstrating the attack chain.
The EPSS score remains flat at 0.0529 with no material increase after disclosure, indicating limited observed exploitation interest to date.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-52011
Vulnerability details
A Cross Site Scripting vulnerability in LibrePhotos before commit 32237 allows attackers to takeover any account via uploading an HTML file on behalf of the admin user using IDOR in file upload.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
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.
Per-request decision making makes it harder to bypass authorization using user-controlled keys without proper validation in the decision process.
Consistent enforcement of approved authorizations makes bypassing via user-controlled keys ineffective.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.