Skip to content
IDOR Write-up Intermediate

How I Can Still See Your Image on Facebook After You Deleted It | Meta | BugBounty | 2024

A user could add another user's photo to their own Featured section by changing a media card ID in the request, and the photo remained accessible even after the original uploader deleted it. This allowed continued access to deleted media through the second user's profile.

prathapilango Follow

Published on prathapilango.medium.com

Hey folks, I’m Prathap, and I’m here to share one of the wired Vulnerability I’ve found in Meta’s product, Facebook. In today’s digital age, user privacy is paramount.Platforms like Facebook, which manage a lot of personal data, are responsible for ensuring that users’ information is protected and deleted upon request.

Prathapilango, on prathapilango.medium.com

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 media card ID being added to a user's Featured section belonged to that user, allowing an attacker to reference another user's media.

Impact

Deleted media could remain accessible through another user's Featured section, undermining the expectation that deletion removes access.

What the attacker needed

Two Facebook accounts; Ability to intercept HTTP requests

How it was found

  1. UserOne uploads a photo.
  2. UserTwo captures the request when adding a photo to their Featured section.
  3. UserTwo changes the media_card_id parameter to UserOne's photo media ID.
  4. UserTwo sends the modified request.
  5. UserOne's photo appears in UserTwo's Featured section.

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 upload a photo to Facebook, it gets a unique ID. The Featured section lets you pick photos to show, and the app sends that ID to the server. The bug is that the server didn't check if the photo belonged to you, so you could use someone else's photo ID and it would show up on your profile. Even after the owner deleted the photo, it stayed visible on the other person's profile.

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 prathapilango

View all

2 more disclosed reports, best first.

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.