How I Took Over Any User Account with One Parameter Change
The profile editing API accepted a user-supplied id parameter without checking that the authenticated user owned that id, so an attacker could change the username, email and personal details of any other account. This could lead to account takeover by changing recovery emails.
medium.com
Published on medium.com
It was a quiet weekday afternoon. Coffee in hand, my fingers hovered over the keyboard while Burp Suite quietly logged every request I made.
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 modify usernames, email addresses and personal details for any user on the platform, potentially leading to account takeovers by changing recovery emails.
What the attacker needed
A free account; ability to intercept requests
How it was found
- Register an account and go to the Edit Profile page.
- Capture the profile update request in Burp Suite.
- Change the id value in the request body to another user's id.
- Send the request and observe a 200 OK response.
- Check the other account and see that its username and email were 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 edit your profile, the app sends your user id to the server. The server should check that the id belongs to you. Here it did not, so anyone could put someone else's id in the request and edit their profile.
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.