Skip to content
IDOR Write-up Intermediate

A bit about the target ¶

The application allowed an authenticated user to modify or transfer ownership of another account's app by sending a PUT request with the victim's app UUID in the URL path and a crafted JSON body. An attacker could change the app's title and URL, or reassign its accountId to take full control of any app whose UUID was known.

Julien Cretel Follow

Published on jub0bs.com

I recently stumbled upon a critical instance of broken-access control, and I thought its story would make for an interesting blogpost. I’ve deliberately omitted some details (e.g. irrelevant HTTP headers) in the interest of simplicity and concision.

Julien Cretel, on jub0bs.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 server trusted the account ID in the URL path and the app UUID in the path without verifying that the authenticated user owned the referenced app, and it also accepted arbitrary fields like accountId in the JSON body, allowing ownership transfer.

Impact

Any authenticated user could modify or take ownership of any app in the system by knowing its public UUID, and app creation and deletion also suffered from the same IDOR vulnerability.

What the attacker needed

A free account; knowledge of the victim's app UUID

How it was found

  1. Create two accounts and note their sequential IDs.
  2. Create one app in each account and note the app UUIDs.
  3. Send a PUT request to the victim's app UUID under the attacker's account path with a JSON body containing a new title and URL.
  4. Observe that the victim's app is modified.
  5. Send a PUT request with a JSON body containing accountId set to the attacker's account ID.
  6. Observe that the victim's app is transferred to the attacker's account.

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 app let you edit your own apps by sending a request to a web address that included your account number and the app's unique ID. The server checked that you were logged in but did not check that the app actually belonged to your account. So by swapping in someone else's app ID, you could edit or even take over their app.

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 Julien Cretel

View all

3 more disclosed reports, 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.