Privileged Escalation in Facebook Messenger Rooms
The endpoint for rejecting a pending join request in Messenger Rooms did not check whether the caller was an admin of the room. Any member of a room could send a crafted request to reject another user's join request.
Published on medium.com
Privileged Escalation in Facebook Rooms Reject user’s request to join the Facebook Chat Rooms without having to be the admin.
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
A non-admin room member could reject pending join requests for any room they were in, removing the targeted user from the room.
What the attacker needed
Attacker is a member of the target room; knows the target room and user identifiers
The fix
The bug was fixed after Facebook's product team investigated.
How it was found
- Intercept the request that rejects a member from a room.
- Change the room identifier to the target room.
- Change the user identifier to the target user.
- Forward the request, and the user is removed from the room.
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.
In a chat room, an administrator decides who may join. The server should check that the person pressing 'reject' is really an administrator. Here it did not, so any ordinary member could reject other people's join requests.
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.