Facebook Bug Bounty:Commenting on non-friends cover photo using GRAPH API
A privacy bug in Facebook's Graph API allowed an attacker to comment on a non-friend's cover photo even when the victim had set 'Public Info' to 'Friends'. The attacker could post comments without being friends with the victim.
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
What the attacker needed
A Facebook account; an access token; knowledge of the cover photo ID
The fix
The bug was patched by Facebook, as confirmed in the timeline.
How it was found
- Grab the cover photo ID.
- Go to the Graph API Explorer.
- Get an access token.
- Make a POST request to the comments endpoint for that photo ID with the access token.
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 report describes a privacy flaw in Facebook's Graph API. Normally, if you set your 'Public Info' to 'Friends', only your friends should be able to interact with your cover photo. The bug let anyone with an access token post a comment on that photo, bypassing the privacy setting.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.