Skip to content
IDOR Write-up Intermediate

Account Takeover via IDOR

The application allowed an admin of a team to view and edit the profile of any user who had an outstanding team invitation, even without the invitee accepting. An attacker could take over any user's account by inviting them to a team and then accessing their profile via a direct object reference.

medium.com

Published on medium.com

Today, I want to share a recent discovery from a HackerOne VDP that led to an Account Takeover via an Insecure Direct Object Reference (IDOR). This story is a perfect example of how persistence and thinking outside the box can turn an initial “no” into a critical “yes.”

samet, 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

Root cause

Likely the application treated an outstanding team invitation as a valid association for access control, without requiring the invitee to accept.

Impact

An attacker could potentially compromise any user account on the platform by knowing their email address and sending a team invitation, leading to severe privacy and security breaches.

What the attacker needed

Attacker has an account; attacker can create a team; victim's email address known; victim does not need to accept invite

How it was found

  1. Create two accounts: one as team admin (User A) and one as victim (User B).
  2. As User A, create a team.
  3. Invite User B's email to the team, without User B accepting.
  4. As User A, visit User B's profile URL by replacing your own user ID with User B's ID.
  5. View and edit User B's profile details, achieving account takeover.

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 log into a website, your account is identified by a number or ID in the web address. If the site doesn't check that you're allowed to see someone else's page, you can change that number to another person's ID and see their private information. Here, the site did check, but it mistakenly thought that sending someone a team invite gave you permission to edit their profile, even if they never accepted.

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.