Skip to content
Access control Write-up Intermediate

Add users to roles on Facebook pages without an invitation consent (revisited)

A GraphQL mutation allowed an attacker with temporary access to a page admin account to add another user to a page role without the user's consent or an invitation. The attacker could bypass the normal invitation flow and directly assign roles, potentially leading to unintentional page takeover.

Philippe Harewood Follow

Published on philippeharewood.com

Normally for Facebook page role invites, the receiving user must accept the invite before being granted a role on the page. It is possible to skip this consent step and add users to pages.

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 adding page roles did not enforce the invitation and consent flow, allowing direct role assignment.

Impact

An attacker with temporary access to an admin account could add users to page roles without consent, potentially leading to unintentional page takeover.

What the attacker needed

Temporary access to a page admin account; knowledge of the GraphQL mutation

The fix

The issue was fixed by Facebook, as confirmed on September 28, 2020.

How it was found

  1. Log in as user one.
  2. Open the browser's JavaScript console.
  3. Send a crafted GraphQL request to add user two to a page role.
  4. Observe that user two is added without receiving an invitation.

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.

Normally, when someone is invited to help manage a Facebook page, they must accept the invitation first. This report shows a way to skip that acceptance step and add someone directly to a role, which could let an attacker give themselves or an accomplice control of a page if they briefly get access to an admin account.

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.