Skip to content
Access control Write-up Intermediate

Facebook Bug:Commenting on non-friends

The report claims that a user could comment on a non-friend's cover photo via the Graph API, which should have been restricted to friends. An attacker could post comments on photos of users who are not their friends.

Meta

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

Impact

An attacker could post comments on cover photos of users who are not their friends, potentially enabling unwanted interaction or spam.

What the attacker needed

A Facebook account; knowing a non-friend's cover photo ID

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 is about a social media platform where you normally can only comment on photos of people you are friends with. The researcher found that by using the platform's programming interface (Graph API), they could bypass that rule and comment on a stranger's cover photo. That means the access control was not enforced consistently.

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.

More from Meta

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.