Skip to main content
← All vulnerabilities
CVE-2022-24833GHSA-CQCC-MM6X-VMVW

Persistent Cross-site Scripting (XSS) vulnerability in PrivateBin

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in v1.4.0, 1.4.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

PrivateBin is minimalist, open source online pastebin clone where the server has zero knowledge of pasted data. In PrivateBin < v1.4.0 a cross-site scripting (XSS) vulnerability was found. The vulnerability is present in all versions from v0.21 of the project, which was at the time still called ZeroBin. The issue is caused by the fact that SVGs can contain JavaScript. This can allow an attacker to execute code, if the user opens a paste with a specifically crafted SVG attachment, and interacts with the preview image and the instance isn't protected by an appropriate content security policy. Users are advised to either upgrade to version 1.4.0 or to ensure the content security policy of their instance is set correctly.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • PrivateBin PrivateBin

    From v0.21 · fixed in v1.4.0

  • privatebin/privatebinPackagist

    From 0.21 · fixed in 1.4.0

References 2

GitHub · PrivateBin/PrivateBin