Skip to content
IDOR Write-up Beginner

Delete Facebook Ask for Recommendations post’s place objects in comments

An IDOR vulnerability in Facebook's Ask for Recommendations feature allowed an attacker to delete place objects in comments on other users' posts by manipulating comment and recommendation identifiers. The attacker could remove place object cards from any victim's recommendation post comments.

Raja Sudhakar Follow

Published on medium.com

{{media:0}}

Raja Sudhakar, 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 authenticated user owned the comment and recommendation objects before allowing deletion.

What the attacker needed

A Facebook account; victim's comment_id and rec_id; Burp Suite or similar proxy

The fix

The vulnerability was fixed by Facebook, likely by adding proper authorization checks to ensure users can only delete their own place objects.

How it was found

  1. Visit a victim's Facebook Recommendation post and locate place objects in comments.
  2. Copy the victim's comment_id and rec_id from the page source.
  3. Go to your own recommendation post's place objects.
  4. Click the Delete option and intercept the request with Burp Suite.
  5. Change the comment_id parameter to the victim's comment_id and forward the request.
  6. Change the rec_id parameter to the victim's rec_id and forward the request.

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 insecure direct object reference (IDOR) bug, where a website uses an identifier (like a comment ID) to refer to a specific item but does not check if the person making the request actually owns that item. By changing the ID in a request, an attacker can act on someone else's data. Here, the attacker could delete place objects (like location tags) from other people's comments.

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 from Meta

View all

The newest disclosed reports for this program.

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.