Skip to content
IDOR Write-up Intermediate

Removing profile pictures for any Facebook user

A GraphQL mutation intended to remove the profile picture of a Facebook page accepted a user profile identifier instead, so an attacker could dissociate another user's profile picture. The original photo remained available, so the victim could set it back.

Philippe Harewood Follow

Published on philippeharewood.com

Bounty$2,500 View original

In the fifth major Facebook update (known as FB5), Facebook introduced a GraphQL call for removing a profile picture of a Facebook fan page.

Philippe, on philippeharewood.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 mutation trusted the supplied profile identifier without checking that it belonged to a page the caller was allowed to manage.

Impact

An attacker could remove the profile picture association for any other user, though the original photo stayed available and could be restored.

What the attacker needed

A valid access token; knowledge of the victim's profile id

The fix

Facebook confirmed a patch the day after the report.

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.

Facebook's website uses a GraphQL interface, which is a way for the page to ask the server to change things. One request was meant to let page owners remove their page's picture, but it did not check that the identifier really belonged to a page, so it worked on ordinary people's accounts too. The result was that someone else's profile picture was swapped for the default one.

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 Philippe Harewood

View all

56 more disclosed reports, 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.