Skip to content
IDOR Write-up Beginner

IDOR to read all user’s private route comments

An IDOR vulnerability allowed an attacker to read all comments on any user's private post by changing the parent_story_id parameter to the victim's post ID. The attacker could access private comments and information about who made them.

youssifm.raghib Follow

Published on medium.com

hello Hackers, this is my first writeup i will shows you how i can read all user’s private route comments.

Youssif M Raghib, 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 did not verify that the requesting user had permission to view comments for the specified post ID.

What the attacker needed

A free account; victim has a private post with comments; attacker knows victim's post ID

The fix

The server should verify that the requesting user has permission to view comments for the specified post ID.

How it was found

  1. Create a route and add more than five comments to trigger the 'read all comments' function.
  2. Intercept the request sent when clicking 'read all comments'.
  3. Change the parent_story_id parameter to the victim's private post ID.
  4. Send the request and observe the response containing all comments of the private post.

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.

This is an IDOR (Insecure Direct Object Reference) bug, where a website uses an identifier like a post ID to fetch data but doesn't check if the person asking is allowed to see it. By changing the ID in a request, an attacker can read private information belonging to someone else.

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.