GitHub Advisoryadvisory · Go

GHSA-2hfj-cxw7-g45p Unsafe inline XSS in pasting DOM element into chat

HIGH Published 2021-12-14 Modified 2022-01-04 Official page ↗
Aliases
CVE-2021-39183
Ecosystem
Go
Packages
github.com/owncast/owncast
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:L
Weaknesses
CWE-79
Reviewed
2021-12-14

Affected packages

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

Description

Impact Inline scripts are executed when Javascript is parsed via a paste action. 1. Open https://watch.owncast.online/ 2. Copy and then paste `` into the chat field. 3. An alert should pop up. Patches ``` ⋮ 13 │ // Content security policy ⋮ 14 │ csp := []string{ ⋮ 15 │ "script-src 'self' 'sha256-2HPCfJIJHnY0NrRDPTOdC7AOSJIcQyNxzUuut3TsYRY='", ⋮ 16 │ "worker-src 'self' blob:", // No single quotes around blob: ⋮ 17 │ } ``` Will be patched in 0.0.9 by blocking `unsafe-inline` Content Security Policy and specifying the `script-src`. The `worker-src` is required to be set to `blob` for the video player. For more information If you have any questions or comments about this advisory: • Open an issue in owncast/owncast • Email us at [email protected]

Related

Alias · CVE (1)

  • CVE-2021-39183 Owncast is an open source, self-hosted live video streaming and chat server. vulnerability

Weakness · CWE (1)

  • CWE-79 Improper Neutralization of Input During Web Page Generation weakness

References