Skip to content
IDOR Write-up Intermediate

The IDOR I Almost Missed

A project configuration object was protected only by its own identifier, not by an ownership check against the parent project. An attacker could read and then modify another account's configuration data by swapping that identifier while keeping their own session and token.

medium.com

Published on medium.com

I replaced it with the itemGroupId that belonged to the second account’s configuration.

Xsora7, 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 configuration endpoint looked up the object by its own identifier and never verified that the object belonged to the caller's project or account.

Impact

An attacker with any account could read and modify configuration data belonging to other accounts, without needing their session or token.

What the attacker needed

Two accounts on the same app; ability to create projects and configurations; a proxy to capture and replay requests

How it was found

  1. Create a project and a configuration inside it, and capture the configuration request.
  2. Create a second account with its own project and configuration, and note its configuration identifier.
  3. Replay the first account's request with only the configuration identifier swapped for the second account's.
  4. Observe that the response returns the other account's configuration data.
  5. Capture a normal configuration update request and swap in the other account's identifier.
  6. Observe a successful response and confirm the other account's configuration was changed.

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 item stored on a website has an identifier, a short code the site uses to look it up. If the site fetches an item by that code without also checking that the item belongs to you, anyone who learns or guesses another person's code can read or change their data. This is called an insecure direct object reference, or IDOR.

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.