Unsafe inline XSS Owncast
cve-program · CVE-2021-39183
PublishedOwncast is an open source, self-hosted live video streaming and chat server. In affected versions inline scripts are executed when Javascript is parsed via a paste action. This issue is 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.
Read the publisher's advisoryeuvd · EUVD-2021-2423
PublishedOwncast is an open source, self-hosted live video streaming and chat server. In affected versions inline scripts are executed when Javascript is parsed via a paste action. This issue is 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.
Read the publisher's advisorynvd · CVE-2021-39183
PublishedOwncast is an open source, self-hosted live video streaming and chat server. In affected versions inline scripts are executed when Javascript is parsed via a paste action. This issue is 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.
Read the publisher's advisoryosv · GHSA-2hfj-cxw7-g45p
Published### Impact Inline scripts are executed when Javascript is parsed via a paste action. 1. Open https://watch.owncast.online/ 2. Copy and then paste `<img src=null onerror=alert('hello')>` 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](https://github.com/owncast/owncast/issues) * Email us at [[email protected]](mailto:[email protected])
Read the publisher's advisoryosv · GO-2022-0291
PublishedUnsafe inline XSS in pasting DOM element into chat in github.com/owncast/owncast
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2021-39183 · CVE overview and exploitation status
cve-program · CVE-2021-39183
euvd · EUVD-2021-2423
nvd · CVE-2021-39183
osv · GHSA-2hfj-cxw7-g45p
- https://github.com/owncast/owncast/security/advisories/GHSA-2hfj-cxw7-g45p
- https://nvd.nist.gov/vuln/detail/CVE-2021-39183
- https://github.com/owncast/owncast
osv · GO-2022-0291
Related changes
Linked by CVE identifierNo related changes are available here.