IDOR : Step by Step guide to Account Takeover of Any User
The profile update endpoint accepted user-supplied userId and profileId parameters without verifying ownership, so an attacker could change another user's email and username. By doing so, the attacker could take over any user's account and lock the victim out.
medium.com
Published on medium.com
A step-by-step look at how i leverage IDOR in profile updates to hijack user accounts
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 take over any user's account by changing their email and username, and the victim would be locked out.
What the attacker needed
Two accounts (attacker and victim); ability to intercept and modify requests
How it was found
- Create two accounts, one as victim and one as attacker.
- Log in as the attacker and click the Update Profile button.
- Capture the profile update request with Burp Suite and note the userId and profileId parameters.
- Change the userId and profileId parameters to the victim's values.
- Submit the request; the victim's account is hijacked and the victim can no longer log in.
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 name in a request to access someone else's data. Here, the profile update form trusted the user ID and profile ID sent by the browser, so changing them to another person's values let the attacker edit that person's profile. This is dangerous because changing the email address can let the attacker reset the password and take over the 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.