Security Feature Bypass In Zitadel
The Zitadel password lockout policy was vulnerable to a race condition, allowing many concurrent login attempts to be processed before the lockout triggered. An attacker could therefore brute-force passwords more effectively than the policy intended.
Published on zxsecurity.co.nz
In his own time, Jack Moran, with the aid of Ethan McKee-Harris, discovered a security feature bypass of the Zitadel “password lockout policy” feature. This feature was found to be susceptible to a race condition which, when exploited, could allow for many brute-force login attempts to be processed successfully before…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a race condition where the failed-attempt counter and the password verification are not performed atomically, so concurrent requests all pass the lockout check before any failure is recorded.
Impact
An attacker could perform many more brute-force login attempts than the lockout policy intended, potentially guessing a valid password; the text does not claim a specific account takeover was achieved.
What the attacker needed
Network access to the Zitadel login endpoint; valid CSRF token and session cookies; ability to send concurrent requests
The fix
It was fixed in Zitadel versions 2.38.3 and 2.40.5.
How it was found
- Identify the sign-in endpoint at /ui/login/password and the required cookies and form parameters.
- Send many login requests concurrently, each with a different password guess.
- Observe that a large number of requests are processed before the lockout policy triggers, and check responses or logs for successful authentication.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A password lockout policy is a defence that temporarily blocks an account after too many wrong password guesses. Here, the check that counts failed attempts and the check that verifies the password were not done as one indivisible step, so many guesses sent at the same moment could all be checked before the counter caught up. This let an attacker try far more passwords than the policy should have allowed.
What is Race condition?
Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.