#1. Bug Bounty POC: IDOR leads to Account Takeover
An update-applicant request used a user-supplied id parameter without checking that the record belonged to the caller. By swapping their own id for the victim's, an attacker could change the victim's email address and then reset the password to take over the account.
Hello guys 👋 I’ve returned with yet another article, but this one is a series on vulnerabilities that I found, reported, and received a reward for.
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 server used the client-supplied id to select the record to update without verifying that the record belonged to the authenticated user.
Impact
An attacker could change a victim's email and other details and then reset the password, fully taking over the account.
What the attacker needed
Two accounts (attacker and victim); a proxy tool to intercept requests; victim record id known or guessable
How it was found
- Create two accounts, one as victim and one as attacker.
- Log in and open the update existing applicant details screen.
- Intercept the update request with a proxy and send it to the repeater.
- Change the id value from the attacker's to the victim's and add new information, then send it.
- Use the changed email address with the forgot password flow to reset the victim's password.
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 a website lets you edit a record, it should check that the record is really yours. Here it trusted an id number sent by the browser, so changing that number let the attacker edit someone else's profile. Because the email address controls password resets, the attacker could then 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.