Skip to content
IDOR Write-up Intermediate

[Writeup] Chaining IDOR to Full Account Takeover (ATO) via Emai

The API trusted the user ID in the URL path instead of checking it against the authenticated token, allowing any logged-in user to modify another user's profile. By changing the victim's email address, the attacker could receive a magic login link and take over the account.

Ziad Abdo Follow

Published on medium.com

In the world of Bug Bounty, sometimes a simple IDOR (Insecure Direct Object Reference) can be escalated into a critical vulnerability if you understand the underlying authentication logic. In this writeup, I will share how I escalated a basic profile modification IDOR into a Full Account Takeover (ATO) on a target…

Ziad Abdo, 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 take over any user's account, including administrative accounts, by changing the email address and using the passwordless login flow; the report notes the vulnerable endpoint was on a forgotten test setup that was publicly accessible.

What the attacker needed

A valid account on the target; knowledge of the victim's user ID; the victim's email is not otherwise protected

The fix

The endpoint was taken offline after the report; the proper fix would be to validate that the user ID in the request matches the authenticated user's identity.

How it was found

  1. Create two test accounts to compare behaviour.
  2. Discover a GET endpoint that returns user data by ID and iterate the ID to find other users.
  3. Intercept the PUT request used to update a profile and note the user ID in the path.
  4. Send a PUT request with the attacker's token but the victim's user ID, changing the name and address.
  5. Send another PUT request changing the victim's email to an attacker-controlled address.
  6. Log in with the new email, receive a magic link, and click it to become the victim.

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 uses an identifier like a user ID from the URL without checking if you are allowed to access that user's data. Here, the attacker could change someone else's profile details, including their email. Because the site used email links to log in, changing the email let the attacker log in as the victim.

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.

More by Ziad Abdo

View all

2 more disclosed reports, best first.

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.