github.com/owncast/owncast
Affected
- introduced
0, fixed0.0.9(semver)
Fixed versions
0.0.9
Fix
- Fixed version
0.0.9go get github.com/owncast/[email protected]
Advisory
Also known as: CVE-2021-39183, GO-2022-0291
Unsafe inline XSS in pasting DOM element into chat
Impact
Inline scripts are executed when Javascript is parsed via a paste action.
<img src=null onerror=alert('hello')> into thechat field.
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:
High Basis: The source's own band: HIGH
0, fixed 0.0.9 (semver)0.0.9
0.0.9go get github.com/owncast/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0