Race Condition in Login Allows Lockout Bypass and Account Takeover
The login flow enforced a five-attempt lockout non-atomically, so sending many login requests in parallel let multiple attempts be processed past the threshold. An attacker could then brute-force passwords and potentially take over accounts.
Published on medium.com
Hello Hackers— I’m Abdelrahman Fathy. I’m a passionate bug hunter and penetration tester who loves exploring web applications and breaking things to make them safer.
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 the failed-attempt counter was updated non-atomically, so concurrent login requests all read the same pre-threshold value and were processed.
Impact
Attackers could bypass the rate limit and perform large-scale brute-force attacks, significantly raising the chance of account takeover and unauthorised access to sensitive user data.
What the attacker needed
A valid username or email; ability to send parallel requests
The fix
Failed attempts should be recorded atomically in a centralised datastore, with server-side locks or transactions to serialise counter updates, plus secondary controls such as CAPTCHAs and progressive delays.
How it was found
- Submit wrong passwords until the account is blocked after five failures.
- Duplicate the login request many times in Burp Repeater.
- Send all duplicated requests in parallel.
- Observe that multiple attempts are processed instead of being blocked.
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 race condition happens when a program checks something and then acts on it, but another request slips in between the check and the action. Here, the site counted failed logins one at a time, so firing many at once meant the counter never caught up and the lockout never triggered. That let someone try many passwords quickly, which is called brute-forcing.
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.