Toggle Group Rules Agreement as a non-member
A non-member could toggle a Facebook Group's setting that requires pending members to agree to group rules, by sending crafted GraphQL mutation requests. This allowed an unauthorised user to enable or disable the rules agreement feature for any group.
Published on philippeharewood.com
Facebook Groups allows group admins to ask pending members questions as well as agree to group rules. It was possible to toggle this setting as a non-admin and non-member.
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 mutations for enabling and disabling the rules agreement setting did not check whether the caller was an admin of the group.
What the attacker needed
A Facebook account; knowledge of the target group ID
The fix
The issue was fixed by Facebook.
How it was found
- As a non-member, send a GraphQL request to enable the rules agreement setting for a target group.
- As a non-member, send a GraphQL request to disable the rules agreement setting for the same group.
- As an admin of the target group, refresh the membership questions page and observe the setting toggled.
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 Groups have a setting that asks new members to agree to the group's rules. Normally only group admins can change this setting. The report shows that anyone, even someone not in the group, could send a special request to turn this setting on or off.
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.