Sending ephemeral message to any Facebook user
The Messenger Rooms share feature allowed sending a message to any user by modifying the user ID, message text, and offline threading ID in the request. An attacker could send an ephemeral message that appeared as a notification and chat popup to the victim but disappeared upon refresh or opening in Messenger.
Published on servicenger.com
Messenger Rooms have feature to share room link to other apps when room gets created, Using 3350161661730468 doc id & “sendMessage” fb api caller sends a room link to other user when we select “Messenger”, Its create an offline thread.,
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 server did not verify that the sender was authorised to send a message to the specified recipient, and accepted arbitrary values for the message and threading ID.
Impact
An attacker could send a message notification and popup to any Facebook user, but the message would disappear upon refresh or when opened in Messenger, limiting its persistence.
What the attacker needed
A Facebook account; ability to intercept HTTPS traffic; victim's user ID
The fix
The issue was fixed according to the timeline.
How it was found
- Create a room in Messenger and start a call.
- Turn on a proxy to intercept requests.
- Tap 'SHARE LINK', select 'Messenger', and send to a user.
- Capture the request with 'X-FB-Friendly-Name: sendMessage'.
- Change the user ID to the victim's ID, the message to any text, and the offline_threading_id to a random number.
- Send the modified request; the victim sees a chat notification and popup.
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 share a room link in Messenger, the app sends a request to Facebook's servers with details like who to send it to. The report found that by changing the recipient's ID and the message text in that request, you could send a message to anyone. The message would pop up as a notification but vanish if you tried to view it properly, so it was a kind of temporary or 'ephemeral' message.
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.