Owncast Path Traversal vulnerability
Published 5 Aug 2024 · Updated 18 Nov 2024
Is your project on an affected github.com/owncast/owncast?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <0.1.3
- Fixed in
- 0.1.3
go get github.com/owncast/owncast@v0.1.3Details
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.
Is GHSA-9355-27m8-h74v in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/owncast/owncast, and gives you the command that fixes it.
More advisories for github.com/owncast/owncast
- LowCVE-2022-3751owncast is vulnerable to SQL Injection in github.com/owncast/owncast · 21 Aug 2024
- LowCVE-2021-39183Unsafe inline XSS in pasting DOM element into chat in github.com/owncast/owncast · 21 Aug 2024
- LowCVE-2024-29026Owncast Cross-Site Request Forgery vulnerability in github.com/owncast/owncast · 6 Aug 2024
- HighCVE-2024-29026Owncast Cross-Site Request Forgery vulnerability · 5 Aug 2024
- MediumCVE-2023-46480OwnCast remote code execution vulnerability · 28 Nov 2023
- CriticalCVE-2022-3751owncast is vulnerable to SQL Injection · 29 Nov 2022
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-31450
- Linkgithub.com/owncast/owncast/commit/1b14800c7d7f54be14ed4d130bfe7f480645076e
- Packagegithub.com/owncast/owncast
- Linkgithub.com/owncast/owncast/blob/v0.1.2/controllers/admin/emoji.go#L63
- Linkgithub.com/owncast/owncast/releases/tag/v0.1.3
- Advisorysecuritylab.github.com/advisories/GHSL-2023-277_Owncast
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.