Skip to content
Business logic Write-up Beginner

Bypassing account lockout through password reset functionality

The login page locked an account after five failed attempts, but sending a password reset request to the forgot password endpoint unlocked it without verification. An attacker could repeatedly guess passwords, unlocking the account every five attempts to continue the attack.

Akash c Follow

Published on akashc99.medium.com

During a recent penetration testing engagement, I discovered a vulnerability in the login page of a web application. Specifically, I found that after five unsuccessful login attempts, the account would become locked.

Akash c, on akashc99.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

Impact

An attacker could repeatedly try different passwords in an automated fashion until the account is locked, then unlock it via the forgot password feature and continue guessing, potentially leading to account takeover.

What the attacker needed

Knowledge of the victim's email address; ability to send requests to the login and forgot password…

How it was found

  1. Send five failed login attempts to lock the account.
  2. Send a POST request to the forgot password endpoint with the account's email address.
  3. Observe that the account is unlocked and login attempts can continue.

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.

Many websites lock an account after too many wrong password guesses to stop attackers from guessing forever. Here, the 'forgot password' feature also removed that lock, so an attacker could keep guessing by unlocking the account every few tries. This means the lockout protection was useless.

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.

More by Akash c

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.