Skip to content
IDOR Write-up Beginner

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.

Muthu, on medium.com

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

  1. Register an account and go to the Edit Profile page.
  2. Capture the profile update request in Burp Suite.
  3. Change the id value in the request body to another user's id.
  4. Send the request and observe a 200 OK response.
  5. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.