Skip to content
IDOR Write-up Beginner

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.

Sandeep Hodkasia Follow

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.

admin, on web.archive.org

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

  1. Log in as User A and create a draft frame with an uploaded image.
  2. Log in as User B and start creating a frame to trigger the background processing request.
  3. Intercept the request and replace the image_id with User A's image id.
  4. The response discloses the CDN URL of User A's draft frame image.
  5. 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.

More by Sandeep Hodkasia

View all

1 more disclosed report, best first.

More from Meta

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.