GitHub Advisoryadvisory · Go

GHSA-9355-27m8-h74v Owncast Path Traversal vulnerability

MEDIUM Published 2024-08-05 Modified 2024-11-18 Official page ↗
Aliases
CVE-2024-31450
Ecosystem
Go
Packages
github.com/owncast/owncast
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L
Weaknesses
CWE-22
Reviewed
2024-08-05

Affected packages

• Go github.com/owncast/owncast: < 0.1.3 → fixed in 0.1.3

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.

Related

Alias · CVE (1)

  • CVE-2024-31450 Owncast is an open source, self-hosted, decentralized, single user live video streaming and chat server. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References