Skip to content
IDOR Write-up Intermediate

(IDOR)Allows Deletion of OpenAPI Specification Files Across Organ

A cross-tenant IDOR in a GraphQL API allowed an attacker to delete another organisation's OpenAPI Specification file by supplying the victim's account identifier and contract GUID in a Base64-encoded contractId. The backend checked that the account and GUID matched each other but did not check that the authenticated user belonged to that account.

X-Ghost Follow

Published on medium.com

السلا� عليك� ورح� ة الله وبركاته، الله� صلِّ على سيدنا � ح� د النبي ﷺ، الله� انصر إخواننا في غزة والسودان ولبنان

X-Ghost, 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 delete handler trusted the account identifier embedded in the client-supplied contractId and only validated that the GUID belonged to that account, without checking the authenticated user's membership in the account.

Impact

An attacker could delete another organisation's OpenAPI Specification, disrupting API documentation and development workflows for multiple customers in a multi-tenant environment.

What the attacker needed

An account on the target; victim's contractId (accountId and GUID); GUID may be obtainable after leaving org

How it was found

  1. Create an attacker account and a victim account, and create an API Specification in each.
  2. Capture the delete request for the attacker's own API Specification.
  3. Decode the contractId to see the account identifier, a fixed marker, the resource type and a GUID.
  4. Replace the contractId with the victim's contractId.
  5. Send the request and observe that the victim's API Specification is deleted.

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.

The application lets companies store API description files. Each file is identified by a value that contains both an organisation number and a file number. The server checked that those two numbers belonged together, but forgot to check that the person making the delete request actually worked for that organisation, so anyone who knew both numbers could delete someone else's file.

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 X-Ghost

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.