Skip to content
Race condition Write-up Intermediate

Race Condition on Login Endpoint Allows Complete Brute-Force Rate

The login endpoint was vulnerable to a race condition that allowed an attacker to send many concurrent login attempts without triggering the account lockout. This enabled unlimited brute-force attempts against any account, potentially leading to account takeover.

Rootxsecurity Follow

Published on medium.com

I’m Youssef El-Hosary, a security researcher passionate about cybersecurity and bug bounty hunting. I enjoy discovering and reporting vulnerabilities to help make applications safer, while continuously learning new attack and defense techniques along the way.

Rootxsecurity, on medium.com

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 attempt counter was not updated atomically, so concurrent requests all read the same pre-increment value and bypassed the lockout threshold.

Impact

An unauthenticated attacker could perform unlimited brute-force attempts against any account, potentially leading to account takeover, and the lockout mechanism was completely bypassed.

What the attacker needed

No authentication required; Ability to send HTTP/2 requests; Knowledge of a valid username

The fix

The text does not state that the issue was fixed; it recommends using atomic counters, distributed locking, per-IP rate limiting, and CAPTCHA enforcement.

How it was found

  1. Navigate to the login page.
  2. Capture the login POST request to the session endpoint.
  3. Send the request to Burp Suite Repeater.
  4. Create a group of 20–50 identical requests, each with a different password.
  5. Use 'Send group in parallel' (single-packet attack via HTTP/2).
  6. Observe that all requests return 200 OK without triggering the account lockout.

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 system checks something and then acts, but another request can sneak in between the check and the action. Here, the server checked the number of failed logins but didn't update the count quickly enough, so many simultaneous guesses all got through before the lockout could trigger. This let an attacker try many passwords at once without being blocked.

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.

More by Rootxsecurity

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.