Skip to content
Info disclosure Write-up Intermediate

How I Found The Facebook Messenger Leaking Access Token Of Million Users

The Facebook Messenger iOS app sent the user's Facebook access token to a third-party GIF search engine's domain whenever a GIF search was performed. Anyone who could see those requests, such as the third-party service, could use the token to access the user's account without a password.

Guhan Raja Follow

Published on medium.com

Bounty$16,125 View original

This blog tells the story of how I discovered that the Facebook Messenger iOS app was leaking access tokens of millions of users to a third-party site, a GIF search engine

Guhan Raja, on 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 app passed the user's Facebook access token along with requests to the third-party GIF search service instead of using a scoped or separate credential.

Impact

The token could be used to access a user's account without a password, potentially affecting millions of users, though Facebook said it found no evidence of abuse and invalidated the relevant tokens.

What the attacker needed

Messenger iOS app; user searches for a GIF; third party receives the request

The fix

Facebook rolled out a temporary fix within hours and a full fix about a week later, and invalidated all relevant access tokens.

How it was found

  1. Open the Messenger iOS app and start a chat.
  2. Search for a GIF while an intercepting proxy is capturing traffic.
  3. Inspect the request to the third-party GIF search engine's domain and observe the Facebook access token in it.

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.

An access token is like a temporary key that proves you are logged in, so apps can act for you without asking for your password again. Here, the Messenger app handed that key to an outside company every time someone searched for a GIF. Whoever received the key could use it to get into the person's account.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Guhan Raja

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.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.