Skip to main content
← All vulnerabilities
CVE-2024-29891GHSA-HR5W-CWWQ-2V4MGO-2024-2665

ZITADEL Improper Content-Type Validation Leads to Account Takeover via Stored XSS + CSP Bypass

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.42.17, 2.43.11, 2.44.7, 2.45.5, 2.46.5, and 2 more
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

ZITADEL users can upload their own avatar image and various image types are allowed. Due to a missing check, an attacker could upload HTML and pretend it is an image to gain access to the victim's account in certain scenarios. A possible victim would need to directly open the supposed image in the browser, where a session in ZITADEL needs to be active for this exploit to work. The exploit could only be reproduced if the victim was using Firefox. Chrome, Safari as well as Edge did not execute the code. This vulnerability is fixed in 2.48.3, 2.47.8, 2.46.5, 2.45.5, 2.44.7, 2.43.11, and 2.42.17.

Timeline

  1. CVE published
  2. CISA SSVC assessment

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

  3. Record last updated

Affected versions

  • zitadel zitadel

    fixed in 2.42.17; From 2.43.0 · fixed in 2.43.11; From 2.44.0 · fixed in 2.44.7; From 2.45.0 · fixed in 2.45.5; From 2.46.0 · fixed in 2.46.5; From 2.47.0 · fixed in 2.47.8; From 2.48.0 · fixed in 2.48.3

  • github.com/zitadel/zitadelGo

    fixed in 2.42.17

  • github.com/zitadel/zitadelGo

    From 2.43.0 · fixed in 2.43.11

  • github.com/zitadel/zitadelGo

    From 2.44.0 · fixed in 2.44.7

  • github.com/zitadel/zitadelGo

    From 2.45.0 · fixed in 2.45.5

  • github.com/zitadel/zitadelGo

    From 2.46.0 · fixed in 2.46.5

  • github.com/zitadel/zitadelGo

    From 2.47.0 · fixed in 2.47.8

  • github.com/zitadel/zitadelGo

    From 2.48.0 · fixed in 2.48.3

  • github.com/zitadel/zitadelGo

    All versions

References 8

GitHub · zitadel/zitadel