Create living room polls as a Facebook page analyst
A page analyst role was meant to be limited, but the analyst could send a GraphQL mutation that created a poll on behalf of the page inside a watch party. This let a low-privileged analyst publish polls on any page's watch party.
Published on philippeharewood.com
It’s possible to add polls to watch parties. An analyst can currently create polls.
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 trusted the actor identifier supplied by the client and did not check that the analyst had permission to create polls for that page.
Impact
Anyone with an analyst role could publish a poll on any page's Watch Party, bypassing the intended permission limits.
What the attacker needed
An analyst role on a page; a watch party in a group
The fix
Facebook confirmed a patch, so the server now checks that the analyst is permitted to create polls for the page.
How it was found
- Start a watch party in the group and note the watch party identifier in the URL.
- In a separate browser profile as a page analyst, set the mutation variables including the page actor identifier and watch party identifier.
- Send the GraphQL request as an AJAX call from the console.
- The poll is created by the analyst on behalf of the page.
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 has different roles for people who help run it, and an analyst is meant to have limited powers. Here the server trusted a request that claimed to act for the page, so the analyst could do something only the page owner should do. The check on what the analyst was allowed to do was missing.
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.