Skip to content
Access control Write-up Intermediate

Change the profanity filter for any Facebook page

A non-admin user could change the profanity filter setting for any Facebook page via a GraphQL mutation. This allowed unauthorised modification of page settings.

Philippe Harewood Follow

Published on philippeharewood.com

Bounty$750 View original

Facebook seems to have recently introduced an option to change the filter for profane comments. It’s possible as a non admin to change this for any page

Philippe, on philippeharewood.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

Likely the GraphQL mutation for changing the profanity filter did not check whether the requesting user had admin rights on the target page.

What the attacker needed

A Facebook account; knowledge of the target page ID

The fix

The issue was fixed by Facebook, as confirmed in the timeline.

How it was found

  1. Log in as an admin user and observe the GraphQL request that returns the current profanity filter for a page.
  2. Log in as a different, non-admin user.
  3. From the non-admin session, send a GraphQL mutation to change the profanity filter for the target page.
  4. Recheck the filter as the admin user to confirm it changed.

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 profanity filter controls which comments are hidden on a page. The report shows that someone who is not an admin of a page could still change that filter setting. This is a problem because only page admins should be able to change page settings.

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 Philippe Harewood

View all

56 more disclosed reports, best first.

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.