CVE-2024-31450
vulnerability analysis and mitigation

Overview

The Owncast application version 0.1.2 and earlier contains a path traversal vulnerability (CVE-2024-31450) in its administrator API. The vulnerability exists in the emoji/delete endpoint at /api/admin, which allows administrators to delete custom emojis stored on disk. The issue was discovered by Tony Torralba from the GitHub CodeQL team and was fixed in version 0.1.3, released on April 7, 2024 (GitHub Advisory, NVD).

Technical details

The vulnerability stems from improper input validation in the emoji/delete endpoint. The parameter 'name' is taken from the JSON request and directly appended to the filepath that points to the emoji to delete, without proper path sanitization. By using path traversal sequences (../), attackers with administrative privileges can manipulate the path to delete files outside of the designated emoji directory (GitHub Advisory, GitHub Code). The vulnerability has been assigned a CVSS v3.1 score of 2.7 (LOW) with the vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L (NVD).

Impact

The vulnerability allows authenticated administrators to delete arbitrary files on the system, beyond the intended emoji directory scope. This could potentially lead to unauthorized file deletion across the system, affecting the integrity and availability of system files (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Owncast version 0.1.3 by implementing proper path validation. Users should upgrade to version 0.1.3 or later to mitigate this vulnerability. The fix includes adding a check using filepath.IsLocal() to validate the target path (GitHub Commit, GitHub Release).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management