Skip to content
IDOR Write-up Beginner

Could a Simple IDOR Vulnerability in Facebook Affects the Outcome

The request that fetches a user's liked reels on Facebook accepted an arbitrary profile ID, so any logged-in user could retrieve the liked reels of any other user. An attacker could query many users' liked reels in bulk to build interest profiles for targeted advertising.

Bassem M Bazzoun Follow

Published on medium.com

In this blog, I will discuss how a security vulnerability I discovered a year ago in Facebook/Meta could be used to affect the US election and how a simple IDOR vulnerability could have a major impact.

Bassem M Bazzoun, 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 GraphQL endpoint trusted the profile_id supplied in the request parameters and did not verify that it matched the authenticated user.

Impact

An attacker could retrieve the liked reels of any Facebook user in a single request and do so at scale, enabling interest profiling similar to Cambridge Analytica's micro-targeting; the text does not claim this actually influenced any election.

What the attacker needed

A Facebook account and access token; knowledge of the victim's profile ID

The fix

The vulnerability was fixed by Meta after being reported through its bug bounty programme.

How it was found

  1. Log in to Facebook and obtain your own access token.
  2. Send a POST request to the GraphQL endpoint used for liked reels.
  3. Change the profile_id parameter to the victim's Facebook ID.
  4. Read the response, which contains CDN URLs for the victim's liked reels.

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 lets you change an identifier in a request, such as a user ID, and still returns the data even though it belongs to someone else. Here, the app asked the server for 'liked reels' using a profile ID taken from the request, and the server did not check that the ID belonged to the person asking. That meant anyone could swap in another person's ID and see what videos they had liked.

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 by Bassem M Bazzoun

View all

1 more disclosed report, best first.

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.