Skip to content
IDOR Write-up Beginner

From Viewer to Admin — Breaking Organization Isolation in a VDP

The platform's organization management APIs trusted the client-supplied organizationId without checking whether the authenticated user belonged to or had permission over that organization. A Viewer-level user could therefore add Admin accounts, change roles and remove collaborators in arbitrary organizations.

montaser mohsen Follow

Published on medium.com

I’m Montaser Mohsen, a security researcher focused on web application security and broken access control vulnerabilities.

montaser mohsen, 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

The backend authenticated the request but never verified that the user was a member of, or had the required role in, the organisation referenced by the client-supplied organizationId.

Impact

A Viewer could add Admin accounts, change roles and remove users in any organisation, giving cross-organisation access, privilege escalation and organisation takeover; only the Owner account was protected from removal.

What the attacker needed

A normal authenticated account; Viewer access in any organisation; knowledge of a target organisation ID

The fix

The vendor fixed the vulnerability completely and re-testing confirmed it was no longer reproducible.

How it was found

  1. List organisations through the organisations API to obtain valid organisation IDs.
  2. Capture a legitimate collaborator invitation request from an organisation the attacker controls.
  3. Replace the organizationId with the target organisation's ID and send it, adding an Admin account.
  4. Use the same technique on the role update endpoint to change a user's role in the target organisation.
  5. Use the same technique on the delete endpoint to remove collaborators from the target organisation.

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.

Every organisation on this platform has an ID, and the server used whatever ID the browser sent without checking that the logged-in user actually belonged to that organisation. Because of that, someone with only read-only (Viewer) access in their own organisation could send requests naming another organisation and manage its users as if they were its admin.

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 montaser mohsen

View all

4 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.