Skip to content
IDOR Write-up Intermediate

An IDOR that allows user information disclosure

An API that returns user details was protected only by a hard-to-guess user ID, and other APIs exposed to low-privilege users leaked those IDs through conversation data. By chaining the conversation, conversation-parts and participants APIs, an attacker could obtain a user ID and then retrieve another user's information.

shahdmk99 Follow

Published on shahdmk99.medium.com

this is a replica for a bug that i have found in one of the public programs on hunting platforms.

Shahd Mk, on shahdmk99.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 user-details API relied on an unguessable user ID for authorisation instead of checking that the caller was allowed to view that user, and other low-privilege APIs leaked the IDs needed to reach it.

Impact

An attacker with a low-privilege account could disclose other users' information by chaining the APIs, as demonstrated in the replica.

What the attacker needed

A low-privilege account; access to the listed APIs

The fix

The user-details API should enforce authorisation on the requested user rather than relying on the secrecy of the user ID, and low-privilege APIs should not return identifiers that grant access elsewhere.

How it was found

  1. Call the conversations API to get a conversation ID.
  2. Pass the conversation ID to the conversation_parts API to get a conversation part ID.
  3. Pass both IDs to the participants API to obtain a user ID.
  4. Use the user ID against the users API to retrieve user information.

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.

Some apps hide data by using long random identifiers instead of checking who is asking. Here, several APIs that low-privilege users could call returned conversation and participant IDs, and one of those IDs was the user ID needed by a user-details API. Chaining them let the author read another user's information.

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.