Skip to content
IDOR Write-up Beginner

Comment j’ai découvert une vulnérabilité d’Information Dis

An authenticated user could call a general users endpoint and a documents endpoint with another user's identifier to retrieve personal details and links to private files belonging to all users. The author claims to have obtained around 48,000 user records and access to other users' hosted documents.

Itachix0f Follow

Published on medium.com

Dans cet article, je vais vous expliquer comment j’ai découvert une vulnérabilité de type Information Disclosure dans une API REST d’un site que j’utilise régulièrement pour gérer des documents personnels. Cet article est le fruit d’une démarche de bug bounty éthique, même si, techniquement, ce type d’exploration…

Itachix0f, 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 endpoints lacked an ownership check, so any authenticated token could list all users and fetch documents for an arbitrary user identifier.

Impact

Personal data such as names, emails and phone numbers of many users could be exposed, and links to private documents such as contracts or identity papers could be obtained, though the text does not show the files themselves being downloaded.

What the attacker needed

A valid authenticated token; knowledge of another user's identifier

The fix

The text says the development team took the issues in hand immediately, but it does not describe the fix, so the endpoints should enforce that a user can only read their own records and documents.

How it was found

  1. Send an authenticated request to the current-user endpoint to see the normal response.
  2. Change the path from the current-user endpoint to the general users endpoint while keeping the same valid token.
  3. Observe that the response contains records for many other users.
  4. Call the documents endpoint with a different user's identifier in the rental_sheet_id parameter.
  5. Observe that the response contains hosting links for that user's personal files.

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 application's programming interface (API) is the part apps use to fetch data. It was meant to return only the logged-in person's own details, but one address returned everyone's details to any logged-in user. A second address let a user swap in someone else's account number and see links to that person's private files.

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 Itachix0f

View all

2 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.