Skip to content
IDOR Write-up Intermediate

Organization Takeover via Privilege Escalation (IDOR)

A user with a Manager role in one organisation could escalate their own membership to Administrator by sending a role-update request using an admin token from a different organisation. The backend only checked that the caller was an admin somewhere, not in the organisation being modified, allowing a full takeover of the victim organisation.

medium.com

Published on medium.com

Free Article Link: Click for free!

Ehtesham Ul Haq, 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 elevate their own privileges and take full administrative control of another organisation, including removing users, changing configurations and accessing sensitive internal data.

What the attacker needed

Attacker has an account; attacker is admin of their own organisation; victim invites attacker as Manager; attacker can send crafted API requests

The fix

The flaw was fixed; role updates should be restricted to admins of the same organisation and enforced server-side.

How it was found

  1. Create two accounts: User A is admin of Org A, User B is admin of Org B.
  2. User B invites User A to Org B with the Manager role.
  3. User A switches to Org B and uses GraphQL queries to find their membership ID there.
  4. User A switches back to Org A, where they are admin, and sends a PUT request to update the Org B membership to Admin using that membership ID.
  5. The role update succeeds because the organisation scope is not checked.
  6. User A switches back to Org B and now has full Admin control.

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) is when a website lets you change an identifier in a request to reach something you should not be allowed to touch. Here, the site checked that you were an admin of some organisation but forgot to check that you were an admin of the organisation you were changing. So a manager of one organisation could make themselves admin of another organisation they had only joined as a manager.

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.