Skip to content
IDOR Write-up Beginner

How Changing a Single ID Turned Into $$$

A delegate management endpoint accepted a delegate identifier without checking that the delegate belonged to the requesting user. By changing the identifier to one owned by another account, the researcher could delete another user's delegate.

medium.com

Published on medium.com

During a recent security assessment, I discovered an Insecure Direct Object Reference (IDOR) vulnerability in a web application’s delegate management feature.

Antonio Rivera Poblete, 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

The delete endpoint checked only that the user was authenticated, not that the user owned the delegate being deleted.

Impact

An authenticated attacker could delete delegates belonging to other accounts, disrupting enterprise workflows.

What the attacker needed

An authenticated account; knowledge of another account's delegate ID

The fix

The endpoint should be fixed by verifying that the authenticated user owns the delegate before deleting it.

How it was found

  1. Find the delegate approval take-back endpoint while using the feature.
  2. Change the delegate identifier in the request to one belonging to another account.
  3. Send the request and observe that the other account's delegate 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.

An application often uses a number or code to point at a specific item, such as a delegate record. If the server trusts whatever number the user sends without checking that the item belongs to that user, anyone can swap in someone else's number and act on their data. This is called an insecure direct object reference.

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.