Unauthorized access to any Facebook user’s draft profile picture frames
The image_id parameter in a Facebook frame background processing request was vulnerable to IDOR, allowing an attacker to access any user's draft frame image by changing the ID. This disclosed the CDN URL of the draft frame, enabling unauthorised viewing of unpublished frames.
Published on web.archive.org
Facebook allows its users to create frames for profile pictures. The users have an option to save the frames in the draft for publishing it in the future.
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 authenticated user owned the image_id before returning the associated CDN URL.
Impact
An attacker could view any user's unpublished draft frame image, potentially exposing private artwork before publication.
What the attacker needed
A Facebook account; knowledge of a target image_id
The fix
The bug was fixed by Facebook after reproduction and patch verification.
How it was found
- Log in as User A and create a draft frame with an uploaded image.
- Log in as User B and start creating a frame to trigger the background processing request.
- Intercept the request and replace the image_id with User A's image id.
- The response discloses the CDN URL of User A's draft frame image.
- Open the CDN URL to view the draft frame.
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 save a draft frame on Facebook, the image is stored on a server and given a unique number (image_id). The website used that number directly to fetch the image without checking if you owned it. An attacker could simply change the number to someone else's and see their private draft.
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.