Account Takeover Using Idor In Password Reset Functionality
The password reset link contained a user identifier parameter that was not bound to the authentication key. An attacker who knew another user's identifier could swap it in the link and reset that user's password, leading to account takeover.
Published on infosecwriteups.com
This article is about my recently resolved bug in private program. This program was related to the retirement finance planning and contained lots of subdomains with less functionalities.
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
The password reset token's authentication key was not cryptographically bound to the user identifier, so the server trusted a user-supplied identifier without verifying it matched the token.
Impact
An attacker who knows a victim's user identifier could reset the victim's password and take over the account; the text notes a strict WAF and rate limiting were present but does not say they blocked this attack.
What the attacker needed
Knowledge of victim's user identifier; valid password reset link for any account
How it was found
- Submit a test email in the password reset form and open the reset email.
- Note the reset link contains operation, authkey and uid parameters.
- Log in to another account and note its uid.
- Replace the uid in the reset link with the other account's uid and send the request.
- The request succeeds and the other account's password is changed.
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.
When you forget your password, a website emails you a special link to set a new one. This link included a number identifying your account, but the site did not check that the number matched the secret code in the link. So anyone who knew another person's account number could change the link and take over that person's account.
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.