Skip to content
Access control Write-up Intermediate

My First Bug Discovery in Facebook Bug Bounty 2025

A GraphQL mutation for sending ads messages did not properly validate the page_id parameter, allowing an attacker to send a customised message that appeared under any target page's name. The attacker could alter chats on well-known pages and have the message appear on the victim's account without interaction.

medium.com

Published on medium.com

Hey hey hey, what if you could change the chat on Facebook Messenger? How?

Bayu Setb, on medium.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

Impact

An attacker could alter any chat page with a customised message, even for verified pages, and the message would appear on the victim's account without needing approval or interaction.

What the attacker needed

A Facebook account; knowledge of the target page_id; Burp Suite or similar proxy

The fix

The issue was fixed by Meta after the report was triaged and a bounty awarded.

How it was found

  1. Find an ads message feature and intercept the GraphQL request in Burp Suite.
  2. Send the GraphQL request to Repeater and delete the existing query body.
  3. Change the ad_id value to null to match the newer feature's input structure.
  4. Obtain the target page's page_id.
  5. Insert the target page_id into the request variables and send it.

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.

When you send a message through Facebook, the app checks which page you are allowed to send from. Here, that check was missing, so by changing a number in the request, anyone could pretend to be any page and send messages as that page. This is like being able to write a letter and put someone else's return address on it.

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.

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.