How was I able to lock any user’s account?
The password reset flow accepted a username supplied by the requester and, on an invalid request, locked the account belonging to that username. An attacker could repeatedly submit invalid reset requests naming any victim's username and keep that victim locked out of their account.
medium.com
Published on medium.com
Hello, everyone! This is Syd from the Philippines, a part-time bug hunter.
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 reset endpoint acted on a user-supplied username and applied a lockout penalty on invalid requests without checking that the requester owned that account.
Impact
An attacker could lock any user out of their account and keep them locked out by repeating the requests, causing a denial of service for that user.
What the attacker needed
Knowledge of the victim's username; no account needed
How it was found
- Start the reset password flow and request a temporary password.
- Change the username in the request to the victim's username.
- Send an invalid request.
- Observe that the victim's account becomes locked out.
- Repeat the process to keep the victim locked out.
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 sites let you reset a password by typing your username. This site trusted whatever username was typed and, when the request was malformed, locked that account instead of rejecting the request. Because the attacker chooses the username, they can name someone else and get that person locked out again and again.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.