Skip to content
IDOR Write-up Beginner

Facebook Bug Bounty:View Game Score,Achievements of any user.

The Graph API allowed any user to view another user's game scores and achievements even when they were not friends, despite the privacy setting that restricted visibility to friends. An attacker could query the API with a valid access token to retrieve this private information for any user ID.

asad0x01 Follow

Published on asad0x01.blogspot.com

The original lives on asad0x01.blogspot.com

We do not hold its text, 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 Graph API endpoint for scores and achievements did not enforce the friendship-based privacy check that the web interface applied.

Impact

A non-friend could read another user's game scores and achievements, bypassing the intended friends-only privacy setting.

What the attacker needed

A valid Facebook access token; knowledge of the target user ID

The fix

The issue was fixed according to the timeline.

How it was found

  1. Obtain a valid access token (the reporter used the Facebook for Android app's token because the Graph API app's token did not work).
  2. Send a GET request to the Graph API user endpoint with the fields parameter set to scores{application,score,user} and a target user ID.
  3. Observe that the response contains the target user's game scores even though the target is not a friend.
  4. Send a GET request to the same user endpoint with the fields parameter set to achievements.
  5. Observe that the response contains the target user's game achievements.

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.

Facebook lets you play games and earn scores and achievements. Normally only your friends can see these. The report found that a part of Facebook called the Graph API, which apps use to get data, did not check if you were friends with the person. So anyone with a valid token could ask for and receive someone else's game scores and achievements.

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 asad0x01

View all

10 more disclosed reports, 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.