Skip to content
Account takeover Disclosed report Intermediate

Login to any user account using other facebook app access token

The Imgur third-party token endpoint accepted a Facebook access token issued to any Facebook app, not just Imgur's own app. An attacker could create their own Facebook app, obtain a victim's Facebook access token, and use it to log into the victim's Imgur account.

vinothkumar Follow

Originally disclosed on HackerOne

  • Triaged in under an hour
  • Fixed in 7 days
  • Disclosed after 20 months

Vulnerable Url: https://api.imgur.com/generatetoken/thirdpartynativeandroid?type=facebook Vulnerable Param: access_token

Attck: Hacker can build own facebook app and get victim's facebook access token and use that access token to login into imgur account

POC: https://drive.google.com/file/d/0B9bnr9ZtF2QsYktlRVFPUDB2SmM/view?usp=sharing

Prevention: Validate access token and check app id is equal to 127621437303857

The original report as published on HackerOne, by vinothkumar. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the endpoint validated the Facebook access token but did not verify that the token was issued to Imgur's own Facebook app ID.

Impact

An attacker could log into another user's Imgur account if they could obtain that user's Facebook access token for the attacker's own app.

What the attacker needed

Attacker-controlled Facebook app; victim's Facebook access token for that app

How it was found

  1. Create a Facebook app controlled by the attacker.
  2. Obtain a victim's Facebook access token for that app.
  3. Send the token to the Imgur third-party token endpoint for Facebook.
  4. The attacker can use the token to log into the victim's Imgur account.

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 report has not been written yet. The Original tab links to the source.

When you log into a site with Facebook, the site receives a token from Facebook that proves who you are. The site should check that the token was issued to its own Facebook app, not to some other app. Here it did not, so anyone who could get a token from their own Facebook app could use it to sign in as someone else on Imgur.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by vinothkumar

View all

3 more disclosed reports, best first.

More from Imgur

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.