How I Brute-Forced My Way Through a Broken Login Gate
The login page applied rate limiting only per username, so an attacker could keep guessing passwords by rotating through many different usernames without ever being blocked. This allowed automated credential-stuffing and brute-force attacks against many accounts at once.
medium.com
Published on medium.com
It started like any other bug hunting session: Laptop open, Burp Suite humming, and me casually exploring a login page on a target I’d been eyeing for days. I wasn’t expecting anything fancy — maybe a weak CSP or missing headers.
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 rate limiter tracked attempts per username only, with no limit per IP address or session, so rotating usernames avoided it.
Impact
An attacker could automate credential stuffing and account takeovers across many accounts without triggering blocks or alerts.
What the attacker needed
Reachable login form; no CSRF token or cookie needed; large username and password wordlists
How it was found
- Open the login page and capture the login request in an intercepting proxy.
- Remove the CSRF token and cookies so the request is clean and repeatable.
- Send the request to the Intruder tool and mark the username and password fields as payload positions.
- Use a cluster bomb attack with large username and password wordlists.
- Turn off automatic encoding because the form fields are plaintext.
- Launch the attack and observe that rotating usernames avoids the block.
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 usually slows you down if you guess the wrong password too many times, to stop people trying thousands of guesses. Here the slowdown only counted guesses against one particular username, so switching to a different username reset the counter. That let someone try one guess against thousands of accounts without being stopped.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.