Skip to content
IDOR Write-up Intermediate

400 bad request that earns me $$$ bounty

An authenticated user with a regular role could enumerate workspace and document identifiers through a document-viewer API, and error messages leaked the names of other organisations' workspaces and documents. This exposed potentially private names and identifiers belonging to other tenants.

medium.com

Published on medium.com

I discovered an insecure direct object reference (IDOR) in a document-viewer API that allows any authenticated user (with a regular user cookie) to brute force workspace and document IDs and retrieve private workspace/document names.

mohaned haron, 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 API checked only that the caller was authenticated, not that the caller belonged to the requested workspace, and it echoed internal object names in error responses.

Impact

An attacker could discover other workspaces and their document names, which may contain personal names, identity numbers or phone numbers; the endpoint had no rate limit, though only names were shown, not document contents.

What the attacker needed

A free account with a regular user role; ability to send many requests (no rate limit)

The fix

The report was triaged and resolved, so the API should now verify that the caller belongs to the requested workspace and stop returning object names in error messages.

How it was found

  1. Log in to the organisation with a regular user role.
  2. Fuzz the workspace identifier in the private-processing request to find a valid organisation ID.
  3. Send an annotation-save request with a guessed workspace ID and a document artifact ID.
  4. Read the error response, which reveals the document name for that identifier.

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 object in a web app, such as a workspace or a document, has an identifier, often just a number. If the server checks only that you are logged in but not that the object belongs to you, you can change the number and read someone else's data; this is called an insecure direct object reference. Here the server also put the real names of other people's workspaces and documents into its error messages.

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.