How I Found a Login Brute-Force Vulnerability Due to Missing Rate Limiting
The login endpoint accepted unlimited authentication attempts with no rate limiting, CAPTCHA, lockout or throttling. An attacker could therefore run password brute-force and credential stuffing attacks, and possibly enumerate valid accounts, which may lead to account takeover.
Published on pradyumntiwarenexus.medium.com
While testing a target, I came across something interesting — a login endpoint with no rate limiting at all. No CAPTCHA, no blocking, nothing.
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 login endpoint had no server-side controls on repeated failed attempts, such as per-IP or per-account rate limiting, lockout, CAPTCHA or delays.
Impact
Attackers could brute-force passwords and stuff stolen credentials, and may gain unauthorised access to accounts, with full account takeover possible if passwords are weak or reused.
What the attacker needed
No account needed to test; network access to the login endpoint
The fix
Rate limiting should be added per IP and per account, together with CAPTCHA after repeated failures, a lockout policy, exponential backoff and monitoring of suspicious logins.
How it was found
- Capture the login request in an intercepting proxy.
- Send the request to the Intruder tool.
- Mark the password value as the payload position.
- Load a short list of common passwords as payloads.
- Start the attack and send many requests.
- Check the responses for any 429 status, CAPTCHA, blocking or delay.
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 login page normally slows you down or blocks you after several wrong passwords. Here it did not, so a program could keep guessing passwords as fast as it liked. If a user picks a weak or reused password, the guesser will eventually get in.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.