Skip to content
IDOR Write-up Beginner

Insecure Direct Object Reference (IDOR) in Dataset Creation Endpo

The dataset update endpoint did not check that the dataset belonged to the authenticated user's organisation, so an attacker could change the name of another organisation's dataset and receive its details in the response.

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 update endpoint used the dataset ID from the request without verifying that the dataset belonged to the caller's organisation.

Impact

An attacker could modify dataset names across organisations and access sensitive dataset information from other tenants, breaking tenant isolation.

What the attacker needed

Two accounts in different organisations; a dataset created by the victim; ability to intercept and edit requests

The fix

The endpoint should validate that the dataset belongs to the authenticated user and enforce server-side access control for all resource operations.

How it was found

  1. Create two accounts, one as attacker and one as victim.
  2. Create a dataset under the victim account.
  3. From the attacker account, update your own dataset name and capture the request.
  4. Replace the dataset ID in the request with the victim's dataset ID.
  5. Send the request; the name changes and the victim's dataset details are returned.

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.

A dataset is a collection of data used to test or train an AI assistant. The website let a logged-in user edit a dataset by sending its ID number, but it never checked that the dataset actually belonged to that user. By swapping in someone else's ID, the user could rename that dataset and see its details.

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.