Skip to content
Access control Write-up Beginner

Facebook Bug Bounty:Toggling Page Assistant Feature of any page.

The endpoint that toggles the Page Assistant feature only checked that the caller was logged in, not that they held an admin role on the target page. An attacker with no role on a page could turn the feature on or off for any page by changing the page identifier in the request.

asad0x01 Follow

Published on asad0x01.blogspot.com

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 toggle endpoint authorised the request only on the basis of a valid session and did not verify that the caller held an admin role on the page identified in the request.

Impact

A logged-in user with no role on a page could turn the Page Assistant feature on or off for that page.

What the attacker needed

A logged-in Facebook account; knowledge of a target page identifier

The fix

The issue was fixed by Facebook, presumably by enforcing an admin role check on the toggle endpoint.

How it was found

  1. Create a test account and a page that has the Page Assistant feature.
  2. Demote the account to the read-only Analyst role and repeat the toggle request.
  3. Observe that the toggle still succeeds despite the reduced role.
  4. Change the page identifier in the request to a page where the account has no role.
  5. Observe that the toggle succeeds for that page as well.

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 page on Facebook has staff with different roles, and only admins are meant to change its settings. The server that handled the setting change did not check the person's role, so anyone logged in could flip the switch for any page. This is a missing permission check, often called a broken access control bug.

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 asad0x01

View all

10 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.