How IDOR Leads to Account Takeover
The password reset endpoint was vulnerable to IDOR because it accepted a user ID parameter that could be changed to target another user. An attacker could reset a victim's password, bypass OTP verification by manipulating the response, and take over the account.
medium.com
Published on medium.com
My name is Disha, and I’m a cybersecurity researcher and bug hunter. In this blog, I’ll demonstrate how to perform an account takeover using an IDOR vulnerability.
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 password reset endpoint did not verify that the requesting user owned the account identified by the id parameter, and the OTP check could be bypassed by tampering with the response.
Impact
An attacker could take over a victim's account, controlling personal information and sensitive data, which could lead to identity theft and financial loss.
What the attacker needed
Victim's user ID known or guessable; ability to intercept and modify requests
How it was found
- Test the email update, password change, and password reset endpoints for IDOR.
- Change the customer ID in the password reset request to another user's ID.
- Send an OTP request to the victim's account and capture it in Burp Suite.
- Manipulate the OTP response to bypass verification.
- Reset the victim's password and log in to the account.
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.
An IDOR (Insecure Direct Object Reference) happens when a website lets you change a number or identifier in a request to access someone else's data, because it does not check that you are allowed to. Here, the password reset link used a user ID that could be swapped to another person's ID, so the attacker could reset that person's password. The attacker also bypassed the one-time code (OTP) by altering the server's response, completing the takeover.
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.