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.
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.
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
- 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.
- As that invited user, try to delete a file belonging to Tenant B and confirm the system rejects it.
- Log in as a tenant admin and attempt to delete files by their UUID.
- 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.