Skip to content
IDOR Write-up Intermediate

The IDOR That Got Me My First $3K And Let Me Delete Files Across

A tenant admin could delete files belonging to other tenants by supplying the file's UUID to a GraphQL endpoint, because tenant ownership was not enforced for that role. Regular invited users were correctly blocked, but the admin role bypassed the check.

sid_x95 Follow

Published on medium.com

While hunting in a multi-tenant app I found an IDOR that let a Tenant Admin delete files belonging to other tenants by supplying the file’s UUID. Regular invited users couldn’t do it, but the admin role could.

Sid_x95, 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 GraphQL endpoint enforced tenant ownership for regular users but not for tenant admins, so the admin role could act on any file UUID.

Impact

A tenant admin could delete files belonging to other tenants, which is destructive and may bypass audit trails if not properly logged.

What the attacker needed

A tenant admin account; knowledge of a target file UUID

The fix

The endpoint should enforce strict tenant ownership authorization for every role, including tenant admins, before acting on a client-supplied file UUID.

How it was found

  1. Log in as an invited user from Tenant A and confirm you cannot access or delete a file in a Tenant A admin-only folder.
  2. As that invited user, try to delete a file belonging to Tenant B and confirm the system rejects it.
  3. Log in as a tenant admin and attempt to delete files by their UUID.
  4. Observe that the admin account can delete files belonging to other tenants.

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.

In a multi-tenant app, each customer organisation (a tenant) should only see and change its own data. An IDOR (Insecure Direct Object Reference) happens when the app lets you act on another tenant's item just by knowing its identifier, without checking that the item belongs to you. Here, a tenant admin could delete another tenant's file by sending its UUID, even though the app blocked ordinary users from doing the same.

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 sid_x95

View all

1 more disclosed report, 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.