Skip to content
IDOR Write-up Intermediate

An IDOR leads to leak users details

An IDOR vulnerability allowed an attacker to retrieve and modify other users' account details by supplying their hashId, which was leaked in profile image URLs. After a partial fix, the retrieve endpoint still lacked JWT authentication, so the IDOR remained exploitable.

mohameddiv77 Follow

Published on medium.com

This is my second Article and we will talk about how I was able to get a bounty from duplicated IDOR vulnerability..

Mohamed Ibrahim, 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 server trusted the hashId parameter alone for authorisation and did not require a valid session token on the retrieve endpoint.

Impact

An attacker could read and modify other users' account details, including changing their display name and profile image; the later retrieve endpoint still leaked details without a JWT.

What the attacker needed

A free account; knowledge of victim hashId; hashId leaked in image URLs

The fix

The application was partially fixed by removing the hashId from image URLs and adding JWT checks to update actions, but the retrieve endpoint still lacked JWT authentication and remained vulnerable.

How it was found

  1. Register an account and observe that profile requests use a hashId parameter.
  2. Replace the hashId with another user's hashId and remove the cookie header; the request still returns that user's details.
  3. Find that profile image URLs contain the user's hashId.
  4. Collect hashIds from the image host using URL discovery tools.
  5. Use the collected hashIds to retrieve other users' account details.

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 IDOR (Insecure Direct Object Reference) is when a website uses a user-supplied identifier to look up data without checking that the requester is allowed to access it. Here, the identifier was a hashId, and the site also leaked other users' hashIds in image URLs, so anyone could read or change other people's profiles.

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.