Vulnerability · Published Mar 27, 2024 · Assigned by GitHub_M
CVE-2024-29891ZITADEL Improper Content-Type Validation Leads to Account Takeover via Stored XSS + CSP Bypass
High 8.7
In plain English
A high-severity unrestricted file upload in zitadel from zitadel. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/zitadel/zitadel | 2.46.5 | GHSA-hr5w-cwwq-2v4m |
| Go | github.com/zitadel/zitadel | 2.42.17 | GHSA-hr5w-cwwq-2v4m |
| Go | github.com/zitadel/zitadel | 2.43.11 | GHSA-hr5w-cwwq-2v4m |
| Go | github.com/zitadel/zitadel | 2.44.7 | GHSA-hr5w-cwwq-2v4m |
| Go | github.com/zitadel/zitadel | 2.45.5 | GHSA-hr5w-cwwq-2v4m |
| Go | github.com/zitadel/zitadel | 2.47.8 | GHSA-hr5w-cwwq-2v4m |
| Go | github.com/zitadel/zitadel | 2.48.3 | GHSA-hr5w-cwwq-2v4m |
| Go | github.com/zitadel/zitadel | no fix listed | GO-2024-2665 |
Affected products (as reported)
Weakness: CWE-434 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N
References
- https://github.com/zitadel/zitadel/security/advisories/GHSA-hr5w-cwwq-2v4m x_refsource_CONFIRM
- https://github.com/zitadel/zitadel/releases/tag/v2.42.17 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.43.11 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.44.7 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.45.5 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.46.5 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.47.8 x_refsource_MISC
- https://github.com/zitadel/zitadel/releases/tag/v2.48.3 x_refsource_MISC