Delete Any Photo from Facebook by Exploiting Support Dashboard
The Support Dashboard's photo removal request feature failed to validate server-side that the requesting user actually owned the reported photo. By manipulating the photo and profile identifiers in the request, an attacker could have a removal link for any photo delivered to their own inbox and then delete that photo.
Published on arulkumar.in
September 1, 2013 · vulnerability facebook bugbounty ·
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 trusted the photo and profile identifiers supplied in the request without verifying that the requesting user owned the referenced photo.
Impact
An attacker could delete any user's photo without their interaction, and the owner was not even notified that the photo had been removed.
What the attacker needed
Access to the Support Dashboard flow; a reported photo not removed by Facebook; ability to intercept and edit the request
The fix
The vulnerability was fully patched after the report was accepted.
How it was found
- Open the Support Dashboard flow for a reported photo that was not removed.
- Send a photo removal request so the server generates a removal link.
- Modify the photo identifier and profile identifier values in the request.
- Receive the removal link for the target photo in your own messages.
- Visit the removal link to delete the photo.
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 report a photo on Facebook, the site can offer to send a removal request to the photo's owner. That request contains a special link that deletes the photo when opened. The site did not check that the person asking for the link was really the photo's owner, so anyone could ask for the link to someone else's photo and use it to delete it.
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.