Toggling comment option of a post in a linked group as an analyst.
A page role called Analyst, which is meant to be read-only, was not properly checked when toggling commenting on a post in a group linked to the page. An attacker holding only the Analyst role could turn commenting on or off for such a post.
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 GraphQL mutations for enabling and disabling commenting checked that the caller had some page association but did not verify that the role was allowed to perform write actions.
Impact
An Analyst, who should be read-only, could change the commenting state of posts in a linked group, which is a limited integrity impact rather than a data breach.
What the attacker needed
Analyst role on a page; Page linked to a group; Access token for the account
The fix
The issue was fixed after Facebook said it had internally found and fixed it.
How it was found
- Hold the Analyst role on a page that is linked to a group.
- Send the GraphQL request that disables commenting on a post in the linked group.
- Observe that commenting is turned off for the post.
- Send the GraphQL request that enables commenting again and observe it is turned back on.
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.
A Facebook page can be linked to a group, and people on the page get different roles. Some roles, like Analyst, are supposed to only be able to look, not change anything. The site failed to check the role properly, so an Analyst could still switch comments on or off for a post in the linked group.
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.