Skip to content
IDOR Write-up Intermediate

Another image removal vulnerability on Facebook

Facebook Creator Studio's Series feature accepted an attacker-supplied image ID without verifying ownership, allowing an attacker to attach another user's image to their own Series. Deleting the Series then deleted the referenced image, enabling arbitrary image deletion.

Pouya Darabi Follow

Published on blog.darabi.me

Bounty$10,000 View original

In May 2020, I discovered an access-control vulnerability in Facebook Creator Studio's Series feature that could be abused to delete an arbitrary image from Facebook.

Pouya Darabi, on blog.darabi.me

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

In May 2020, I found an access-control vulnerability in Facebook Creator Studio's Series feature that could be abused to delete an arbitrary image from Facebook. The issue occurred because Creator Studio accepted an attacker-controlled image ID when assigning artwork to a Series, but did not properly verify ownership of that image. Once the victim's image had been attached to the attacker's Series, deleting the Series also deleted the referenced image.

Item Detail
Product Facebook Creator Studio
Feature Series
Issue Broken object-level authorization / insufficient ownership validation
Impact Delete an arbitrary Facebook image
Reported May 2, 2020
Fixed May 2, 2020
Bounty $10,000

Facebook image deletion vulnerability through Creator Studio's Series feature.

Context

Facebook had introduced a Series feature in Creator Studio. A Series could contain media and associated artwork, including Poster Art and a Cover Image.

While reviewing the feature, I noticed that Creator Studio sent image IDs to the backend when artwork was assigned to a Series.

The Series feature in Facebook Creator Studio.

Setup

The report does not describe the accounts, roles or tooling used beyond the Creator Studio interface itself. The attack required knowing or obtaining the ID of a target image, and the report does not describe how such an ID would be obtained.

Finding it

After creating a Series and selecting an image for the Poster Art or Cover Image field, Creator Studio sent a request containing the selected image ID.

The request referenced the artwork using an image identifier.

The backend did not sufficiently verify that the supplied image ID belonged to the user creating the Series. That is what made the image ID worth manipulating: the client was sending an identifier that the server then trusted as belonging to the caller.

Exploitation

Step 1: Create a Series and pick artwork

I created a Series and selected an image for the Poster Art or Cover Image field. Creator Studio then sent a request containing the selected image ID.

Step 2: Replace the image ID

By modifying the request and replacing the legitimate image ID with the ID of another user's image, I could create a Series that referenced the victim's image. The backend accepted the supplied ID without sufficiently verifying that it belonged to the user creating the Series.

Step 3: Delete the Series

The more serious behaviour appeared when the Series was deleted. Because the victim's image had been accepted as a property of the attacker's Series, deleting the Series also caused Facebook to delete the referenced image itself.

The target image after the deletion was triggered.

This created a destructive object-level authorization issue: an attacker who knew or obtained the ID of a target image could associate it with a Series they controlled and then trigger its deletion by removing that Series.

Root cause

The mistake is a missing ownership check on the image ID supplied when artwork is assigned to a Series. The client sends the image ID, and the backend accepts it as a property of the caller's Series without sufficiently verifying that the image belongs to that user. The deletion path then treats the referenced image as part of the Series and removes it along with the Series, so a reference the attacker was never authorised to create becomes a destructive action.

Impact

An attacker who knew or obtained the ID of a target image could associate it with a Series they controlled and then trigger its deletion by removing that Series. The result is deletion of an arbitrary Facebook image.

Fix

Facebook's security team triaged and fixed the issue on the same day it was reported.

Resolution

Facebook awarded a $10,000 bounty for the vulnerability.

Disclosure timeline

Time Event
May 2, 2020-09:10 Vulnerability reported to Facebook.
May 2, 2020-10:39 Report triaged.
May 2, 2020-22:46 Vulnerability fixed.
June 2, 2020 $10,000 bounty awarded.
  1. Other artwork fields on the same object. Try the same ID substitution on every field that accepts an image reference (Poster Art, Cover Image, and any other media slot). A positive result is a Series that stores an image you do not own and shows it back to you.
  2. Other object types that reference media. Look for features where a user-controlled object can point at an image or file by ID, then check what happens when the object is deleted. A positive result is deletion of the referenced object you do not own.
  3. Ownership checks on update versus create. Submit a foreign ID at creation and again at update of an existing object. A positive result is acceptance at either point, which tells you where the check is missing.
  4. Cascading deletes. For any feature with a parent object and attached media, delete the parent after attaching a foreign ID. A positive result is the attached media disappearing along with the parent.
  5. ID enumeration. Where IDs are sequential or otherwise guessable, test whether a foreign ID is accepted at all before worrying about how to obtain it. A positive result is a successful reference to an object belonging to another account.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

In May 2020 I found a flaw in a Facebook tool called Creator Studio. Creator Studio is a website where people who run Facebook pages manage their content: they upload videos, schedule posts, and organise things. One of its features is called Series, which lets a creator group related videos together, like episodes of a show, and give that group a picture to represent it.

The flaw let me delete an arbitrary Facebook image, provided I knew or could obtain its ID. I did not need the owner's password or permission. I only needed the image's ID, which is the unique number Facebook uses internally to refer to that image.

The problem was that Creator Studio trusted me too much. When I told it which image to use as a Series picture, it accepted whatever image ID I gave it, without checking that the image was mine. Once someone else's image was attached to my Series, deleting my Series also deleted their image.

Item Detail
Product Facebook Creator Studio
Feature Series
Issue Broken object-level authorization / insufficient ownership validation
Impact Delete an arbitrary Facebook image
Reported May 2, 2020
Fixed May 2, 2020
Bounty $10,000

Facebook image deletion vulnerability through Creator Studio's Series feature.

Background

Facebook had introduced a Series feature in Creator Studio. A Series could contain media and associated artwork, including Poster Art and a Cover Image.

To understand the rest of this article, a few words need explaining first.

  • Creator Studio is a web dashboard for page owners. You log in with your normal Facebook account and it shows you tools for managing your page's content.
  • A Series is a container inside Creator Studio. Think of it like a folder or a playlist: it holds several pieces of media and has a name and pictures attached to it.
  • Poster Art and Cover Image are two picture slots on a Series. They are the visual identity of the Series, similar to how a book has a cover and a poster advertising it.
  • An ID is a unique identifier. Every image, video, post and user on a large website has one, usually a long number. The website uses these numbers internally to say "this one" without ambiguity. Two different images never share an ID.
  • The backend is the part of the website that runs on Facebook's servers, out of sight. Your browser is the frontend or client: it shows buttons and forms. When you click something, the client sends a request to the backend, and the backend decides what to do and sends back a response.
  • An API (Application Programming Interface) is the set of rules for those requests. Think of a restaurant: the menu and the waiter are the API. You do not walk into the kitchen yourself; you tell the waiter what you want, and the kitchen prepares it. The API is the agreed way for your browser to ask the server to do something.
  • A request is one such message. It contains a method (what kind of action, such as fetching data or changing data), a URL (where to send it), sometimes a body (the data being sent), and headers (extra information, such as who you are).
  • Authorization means checking whether you are allowed to do something. Authentication means checking who you are. They are different: a website can know perfectly well that you are Alice and still need to check whether Alice is allowed to touch Bob's image.

While reviewing the feature, I noticed that Creator Studio sent image IDs to the backend when artwork was assigned to a Series.

The Series feature in Facebook Creator Studio.

Setup

The report does not describe the accounts, roles or tooling used beyond the Creator Studio interface itself. The precondition for the attack is an attacker who can create a Series in Creator Studio and who knows or can obtain the ID of a target image.

Browsers have a built-in developer tools panel for exactly that; it lets you watch network traffic and change a request before it leaves. The report does not say which tool I used.

Finding it

After creating a Series and selecting an image for the Poster Art or Cover Image field, Creator Studio sent a request containing the selected image ID.

The request referenced the artwork using an image identifier.

This is the key observation. When you pick a picture in the interface, Creator Studio sends a request containing the selected image ID. That is efficient, but it means the ID travels through the browser, where the user can see it and change it.

The backend did not sufficiently verify that the supplied image ID belonged to the user creating the Series. That is what made the image ID worth manipulating: the client was sending an identifier that the server then trusted as belonging to the caller.

A useful comparison is a hotel. When you check in and ask for room 204, the receptionist should check that room 204 is the room you booked. If the receptionist simply hands over whatever key you name, then naming someone else's room number gets you into their room. The image ID is the room number, and the missing ownership check is the receptionist not looking at the booking.

Exploitation

Step 1: Create a Series and pick artwork

I created a Series and selected an image for the Poster Art or Cover Image field. Creator Studio then sent a request containing the selected image ID.

Why this step: I needed a normal, legitimate action to study. By doing exactly what the feature is designed for, I could see the shape of the request and identify the part that carries the image ID. You cannot tamper with a request until you know what a correct one looks like.

Step 2: Replace the image ID

By modifying the request and replacing the legitimate image ID with the ID of another user's image, I could create a Series that referenced the victim's image. The backend accepted the supplied ID without sufficiently verifying that it belonged to the user creating the Series.

Why this step: this is the actual attack. Everything before it was preparation. I modified the request, replacing the legitimate image ID with the ID of another user's image. If the backend had checked ownership, it would have refused, because that image belonged to another account. It did not refuse, so the Series ended up pointing at an image I had no right to use.

This kind of flaw has a name: broken object-level authorization, often shortened to IDOR (Insecure Direct Object Reference). "Object" here means a specific record on the server, such as one image. "Object-level" means the check is about that individual record, not about the general type of action. The server was happy that I was a logged-in user allowed to create Series in general; it failed to check that I was allowed to use this particular image. A common everyday comparison is a library where your card gets you through the front door, but nobody checks whether the book you are carrying out is actually yours to borrow.

Step 3: Delete the Series

The more serious behaviour appeared when the Series was deleted. Because the victim's image had been accepted as a property of the attacker's Series, deleting the Series also caused Facebook to delete the referenced image itself.

The target image after the deletion was triggered.

Why this step: a Series that merely displays someone else's picture would be a privacy problem, but deleting the Series turned it into a destructive one. Facebook's system treats the artwork as part of the Series, so when the Series goes, its attached artwork goes too. This is called a cascading delete: removing a parent record automatically removes the child records that belong to it. Cascading deletes are convenient in normal use, because they stop orphaned data piling up. Here the convenience became a weapon, because the "child" was never mine.

This created a destructive object-level authorization issue: an attacker who knew or obtained the ID of a target image could associate it with a Series they controlled and then trigger its deletion by removing that Series.

Root cause

The mistake is a missing ownership check on the image ID supplied when artwork is assigned to a Series. The client sends the image ID, and the backend accepts it as a property of the caller's Series without sufficiently verifying that the image belongs to that user. The deletion path then treats the referenced image as part of the Series and removes it along with the Series, so a reference the attacker was never authorised to create becomes a destructive action.

Put simply: the server should have asked "does this image belong to the person making the request?" before saving it to the Series. It did not ask, so the rest of the system, including the delete behaviour, acted on a false assumption.

Impact

An attacker who knew or obtained the ID of a target image could associate it with a Series they controlled and then trigger its deletion by removing that Series. The result is deletion of an arbitrary Facebook image.

"Arbitrary" here means any image at all, not just images the attacker has some connection to. The one limiting factor is the ID: you have to know the number of the image you want to destroy.

Fix

Facebook's security team triaged and fixed the issue on the same day it was reported. The fix that the finding calls for is server-side validation that a supplied image ID belongs to the user creating the Series, before the image is accepted as artwork and before any deletion path can act on it.

"Triaged" means the security team read the report, confirmed it was a real problem, and assigned it for fixing. The important lesson for anyone building a website is that the check has to happen on the server. A check in the browser is worthless for security, because the browser belongs to the user and the user can change anything it sends. The server is the only place where a rule can be enforced.

Resolution

Facebook awarded a $10,000 bounty for the vulnerability.

A bug bounty is a programme where a company pays outside researchers for reporting security problems responsibly, instead of the researcher exploiting them or selling them. The company gets the problem fixed before bad actors find it, and the researcher gets a reward. Here the reward was $10,000.

Disclosure timeline

Time Event
May 2, 2020-09:10 Vulnerability reported to Facebook.
May 2, 2020-10:39 Report triaged.
May 2, 2020-22:46 Vulnerability fixed.
June 2, 2020 $10,000 bounty awarded.

The timeline is worth reading closely. The report was triaged at 10:39 and the fix landed at 22:46 the same day. The bounty payment followed a month later. Fast triage and a same-day fix are what a mature security process looks like.

Variants to test

Here they are, explained for someone starting out.

  1. Other artwork fields on the same object. Try the same ID substitution on every field that accepts an image reference (Poster Art, Cover Image, and any other media slot). A positive result is a Series that stores an image you do not own and shows it back to you. The idea is that developers often fix one field and forget its siblings, so a bug found in one slot is worth trying in the others.
  2. Other object types that reference media. Look for features where a user-controlled object can point at an image or file by ID, then check what happens when the object is deleted. A positive result is deletion of the referenced object you do not own. The pattern here is "a thing that points at another thing"; anywhere that pattern exists, the ownership check can be missing.
  3. Ownership checks on update versus create. Submit a foreign ID at creation and again at update of an existing object. A positive result is acceptance at either point, which tells you where the check is missing. Create and update are often handled by different code, and one path can be protected while the other is not.
  4. Cascading deletes. For any feature with a parent object and attached media, delete the parent after attaching a foreign ID. A positive result is the attached media disappearing along with the parent. This is the exact mechanism that turned a harmless-looking reference into image deletion.
  5. ID enumeration. Where IDs are sequential or otherwise guessable, test whether a foreign ID is accepted at all before worrying about how to obtain it. A positive result is a successful reference to an object belonging to another account. "Enumeration" means trying numbers in order, or otherwise guessing them, to find valid ones. If IDs are simple increasing numbers, guessing is easy; if they are long random strings, it is not.

Glossary

  • API: the agreed set of rules and addresses a browser uses to ask a server to do something, like a menu and waiter in a restaurant.
  • Authentication: proving who you are, usually by logging in.
  • Authorization: deciding whether the person you have identified is allowed to perform a particular action.
  • Backend: the server-side part of a website that stores data and enforces rules, invisible to the user.
  • Broken object-level authorization: a flaw where the server checks that you may perform an action in general but not that you may act on this specific record.
  • Bug bounty: a programme that pays outside researchers for responsibly reporting security flaws.
  • Cascading delete: automatic deletion of child records when their parent record is deleted.
  • Client: the browser or app on the user's side that sends requests and displays responses.
  • Cover Image: one of the picture slots on a Series, used as its visual identity.
  • Creator Studio: Facebook's dashboard for page owners to manage content.
  • Enumeration: systematically trying values, such as numbers in sequence, to discover valid ones.
  • Frontend: the part of a website the user sees and interacts with, running in the browser.
  • ID: a unique identifier, usually a number or string, that a system uses to refer to one specific record.
  • IDOR (Insecure Direct Object Reference): another name for broken object-level authorization, where a user-supplied identifier is trusted without an ownership check.
  • Poster Art: one of the picture slots on a Series, used as promotional artwork.
  • Request: a message from the browser to the server asking it to fetch or change something.
  • Response: the server's reply to a request.
  • Series: a Creator Studio container that groups related media and has artwork attached.
  • Triaged: reviewed and confirmed as a genuine issue by the security team, and queued for fixing.
  • Validation: checking that supplied data meets the rules before acting on it.

More by Pouya Darabi

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.