CVE-2024-31450 Owncast vulnerable to arbitrary file deletion in emoji.go (GHSL-2023-277)
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
Description
Owncast is an open source, self-hosted, decentralized, single user live video streaming and chat server. The Owncast application exposes an administrator API at the URL /api/admin. The emoji/delete endpoint of said API allows administrators to delete custom emojis, which are saved on disk. The parameter name is taken from the JSON request and directly appended to the filepath that points to the emoji to delete. By using path traversal sequences (../), attackers with administrative privileges can exploit this endpoint to delete arbitrary files on the system, outside of the emoji directory. This vulnerability is fixed in 0.1.3.
Upgrade path
3 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| owncast project owncast | < 0.1.3; All versions | 0.1.3 | Partially fixed |
| owncast github.com/owncast/owncast(Go) | < 0.1.3 | 0.1.3 | Fixed |
| owncast github.com/owncast/owncast | = < 0.1.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| owncast github.com/owncast/owncast(Go) | < 0.1.3 | 0.1.3 |
| owncast github.com/owncast/owncast | = < 0.1.3 | No fix listed |
| owncast project owncast | All versions | No fix listed |
| owncast project owncast | < 0.1.3 | 0.1.3 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/owncast/owncast/commit/1b14800c7d7f54be14ed4d130bfe7f480645076e patch
- github.com product
- https://github.com/owncast/owncast/blob/v0.1.2/controllers/admin/emoji.go#L63 product
- https://github.com/owncast/owncast/releases/tag/v0.1.3 release-notes
- https://securitylab.github.com/advisories/GHSL-2023-277_Owncast/ exploit third-party-advisory vendor-advisory
- github.com vendor-advisory