Skip to content
Access control Write-up Intermediate

[BAC] Improper Authorization in Public Facebook Groups Allows Moderators to Change “Who Can Participate” Setting

A moderator of a public Facebook group could change the 'Who can participate' setting by replaying a GraphQL mutation with a different group ID, even though the UI blocks moderators from that page. This let a moderator alter a sensitive administrative setting without admin approval.

Abu Idris Al-Muhaqqiq Follow

Published on infosecwriteups.com

While testing access control mechanisms in Facebook Groups, I started with a simple assumption: each role should have clearly defined permissions. In this case, moderators are not supposed to modify sensitive group settings, especially options like “Who can participate in the group.”

Abu Idris Al-Muhaqqiq, on infosecwriteups.com

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

The backend GraphQL mutation lacked an authorization check to confirm the caller was an admin of the target group.

Impact

A moderator could change the participation setting of a public group without admin approval, undermining role-based access control.

What the attacker needed

A Facebook account; moderator role in a public group; ability to intercept requests

The fix

The issue was fixed by adding backend authorization checks so only admins can perform the mutation.

How it was found

  1. An admin creates a public group and assigns another user as moderator.
  2. The moderator tries to open the group edit page and is redirected to an error page.
  3. The moderator creates their own group where they are admin and changes the participation setting while intercepting the request.
  4. The moderator captures the GraphQL mutation and replaces the group ID with the target group's ID.
  5. The moderator resends the request and the server returns 200 OK, applying the change.

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 roles like admin and moderator. Admins are meant to control who can join or participate, but the server did not check the user's role when saving that setting. A moderator could therefore make an admin-only change by sending a crafted request.

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 by Abu Idris Al-Muhaqqiq

View all

4 more disclosed reports, best first.

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.