Easiest Account Lockout Bypass
The login endpoint locked an account after several wrong passwords, but the lockout was keyed on the client-supplied X-Forwarded-For header. An attacker could keep guessing passwords by changing that header on each request, so the lockout never applied.
I’m back again with a new story, Today I’’ll be sharing how i discovered an Account Lockout Bypass. It was one of the easiest bypass I’ve come across, But it was still worth it.
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
Impact
An attacker could bypass the account lockout and keep trying passwords, which may allow password guessing against accounts.
What the attacker needed
A valid phone number or account; ability to intercept and modify requests
The fix
The lockout should be based on the account and the real client address, not on a header the client can set.
How it was found
- Go to the login endpoint.
- Enter a phone number and a wrong password several times until the lockout message appears.
- Intercept the login request and add an X-Forwarded-For header.
- Send the request and observe a successful login response.
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 often blocks an account after a few wrong passwords to stop people guessing. Here the site decided who was 'locked out' by reading a header the browser sends, which anyone can change. By putting in a different value each time, the attacker looked like a new visitor and could keep trying passwords.
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.