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.
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.
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
- Go to any page inbox under a user.
- Open developer tools network tab, filter WebSocket, and refresh to see the chat connection.
- In the console, run a command to subscribe to the target page's notifications.
- As a user not connected to the page, send a direct message to the Instagram-connected page.
- 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.