Image removal vulnerability in Facebook polling feature
Facebook's Polls feature accepted an attacker-supplied image ID without verifying ownership, allowing an attacker to attach another user's image to their poll. Deleting the poll then deleted the victim's image.
In November 2017, I discovered an access-control vulnerability in Facebook's newly introduced Polls feature that could be abused to delete an arbitrary image from 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
Impact
An attacker could delete an arbitrary Facebook image if they knew its ID.
What the attacker needed
Knowledge of target image ID; ability to create a poll
The fix
Facebook deployed a temporary fix and then a permanent fix on November 5, 2017.
How it was found
- Create a poll with an image option.
- Intercept the poll creation request and replace the associated_image_id with the ID of another user's image.
- Submit the modified request; the poll now references the victim's image.
- Delete the poll, which also deletes the referenced victim image.
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 create a poll with an image, Facebook uses an ID number to refer to that image. The bug was that Facebook didn't check if the image ID you provided actually belonged to you. So an attacker could use someone else's image ID, and when they deleted their poll, Facebook would delete the other person's image too.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.