Skip to content
IDOR Write-up Beginner

The Tale of an IDOR # 01

The chat file endpoint used sequential numeric identifiers and lacked access controls, so any user could enumerate other users' files. An attacker could view other users' chat conversations, pictures, and metadata including GPS locations.

medium.com

Published on medium.com

While testing a web application, I found that there is functionality of making teams and chat option to allow team members have conversations. The chat functionality intrigued me to test it.

Abdullah, 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 file endpoint used predictable sequential identifiers and did not verify that the requesting user was authorised to access the file.

Impact

An attacker could view other users' chat conversations and files, including pictures with metadata that revealed GPS locations.

What the attacker needed

A user account with chat access; ability to send an image in chat

How it was found

  1. Send an image in the chat.
  2. Double-click the image to open it in a new tab and note the file endpoint with a numeric identifier.
  3. Capture the request in a proxy tool and send it to the intruder tab.
  4. Mark the last three digits as the target and set a numeric payload from 0 to 999.
  5. Start the attack and observe that files belonging to other users 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.

When you upload a picture in a chat, the app gives it a number in the web address. If those numbers simply count up, anyone can change the number and try other people's pictures. Here the app did not check whether you were allowed to see the file, so changing the number showed other people's private chats and photos.

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.