Facebook – Send Notifications to any User Exploit
A request used to like a group notification accepted an arbitrary user ID and only checked that the user existed, so an attacker could create a fabricated group post for any user and then trigger notifications to them by liking or commenting. This could be used to spam notifications to any Facebook user.
Published on buer.haus
I discovered a vulnerability on Facebook that allowed you to send notifications to any user on Facebook. This could have been used to spam any content you wanted to all users on Facebook.
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
The like request for a group notification accepted a user_id parameter and only verified that the user existed, without checking privacy settings or whether the user was actually part of the group.
Impact
An attacker could send notifications to any Facebook user, which could be used to spam millions of people with malicious links or messages.
What the attacker needed
A Facebook account; ability to invite users to a group
The fix
The group notification should have been tied to a post rather than a user_id, or the server should have validated that the user was actually invited or part of the group before creating the post.
How it was found
- Invite a user to a group and have them join, which creates a news post and a group notification.
- Click the Like link in the flyout pop-up to send the special request that includes a user_id parameter.
- Submit an arbitrary user_id in that request to force-create a post showing that user was invited to the group.
- Like or comment on the newly created post to send a notification to that user.
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 join a Facebook group, the site creates a post saying you joined and sends you a notification. The request that handles liking that notification included a user ID, and the server only checked that the ID belonged to a real account, not that you were allowed to interact with that person. By supplying someone else's ID, an attacker could make the site send them notifications.
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.