ZITADEL Allows Account Takeover via Malicious X-Forwarded-Proto Header Injection
zitadel
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/zitadel/zitadel Go |
|
|
| github.com/zitadel/zitadel/v2 Go |
|
zitadel
| Product | Affected | Fixed in |
|---|---|---|
| github.com/zitadel/zitadel Go |
|
|
| github.com/zitadel/zitadel/v2 Go |
|
all versions
|
Zitadel is open-source identity infrastructure software. Prior to versions 2.70.12, 2.71.10, and 3.2.2, a potential vulnerability exists in the password reset mechanism. ZITADEL utilizes the Forwarded or X-Forwarded-Host header from incoming requests to construct the URL for the password reset confirmation link. This link, containing a secret code, is then emailed to the user. If an attacker can manipulate these headers (e.g., via host header injection), they could cause ZITADEL to generate a password reset link pointing to a malicious domain controlled by the attacker. If the user clicks this manipulated link in the email, the secret reset code embedded in the URL can be captured by the attacker. This captured code could then be used to reset the user's password and gain unauthorized access to their account. This specific attack vector is mitigated for accounts that have Multi-Factor Authentication (MFA) or Passwordless authentication enabled. This issue has been patched in versions 2.70.12, 2.71.10, and 3.2.2.
From the CVE record · GitHub_M
ZITADEL uses request forwarding headers to build password reset links emailed to users. If an attacker can manipulate those headers and a user clicks the resulting link, the attacker could capture the reset code and use it to access the account. This attack path is mitigated for accounts with MFA or Passwordless authentication enabled.
Operators of ZITADEL and users of the affected Go packages should check installations on the listed affected versions, including github.com/zitadel/zitadel/v2 versions before the applicable fixed release.