Skip to content
Access control Write-up Intermediate

Get Page Inbox notifications for any Facebook page

A user without any role on a Facebook page could subscribe to the page's MQTT notification channel and receive binary messages indicating when the page received a new message. This allowed an attacker to infer communication activity on any page.

Philippe Harewood Follow

Published on philippeharewood.com

Facebook sends out an MQTT subscription for page administrators so that they can be notified of any new incoming messages. As a user with no role, it is possible to subscribe to this endpoint.

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

Impact

An attacker could detect when any page receives a message, revealing communication activity but not message content.

What the attacker needed

A Facebook account; knowledge of the target page ID

The fix

Facebook patched the issue, likely by adding an authorization check to the subscription endpoint.

How it was found

  1. Go to any page inbox under a user.
  2. Open developer tools network tab, filter WebSocket, and refresh to see the chat connection.
  3. In the console, run a command to subscribe to the target page's notifications.
  4. As a user not connected to the page, send a direct message to the Instagram-connected page.
  5. Observe a new binary message in the WebSocket messages immediately after sending.

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.

Facebook uses a messaging system called MQTT to send real-time notifications to page admins. The report found that anyone, even without admin rights, could subscribe to a page's notification channel and see when messages arrive, though not their content.

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.