Full account takeover
The Reverb iOS app's Facebook login API did not validate the Facebook access token on the server side, so an attacker could use an access token from a different app to log in as any user. This allowed full account takeover.
Originally disclosed on HackerOne
- Paid in 2 days
- Disclosed after 2.1 years
Hello Team,
I got a security issue in reverb ios application which allows an attacker hack all users account. Since iOS application is not in the scope but still I am reporting this, because this vulnerability may compromise all users account. Please resolve this quickly.
Desription:
Reverb ios application is not validating facebook access_token on the server side in login api, which allows an attacker to hack all account using his own app access token.
Vulnerable request:
POST /api/auth/facebook HTTP/1.1
Host: reverb.com
{"fb_token":"EAAJ8Of8DF2IBAL5wChKjuRHSV2VEWpm7eCz2IMqqJy1lJJq8ooyQuKHcOXn6aZCZAIrCtClbrZBdUGhC3FbvncNYk1E0k7AOktEhDjUPwHPOh3x29JURSGIGPBlZCj5WlBHhHzI5KYAPbuXKiZBGTkKZABZATh9JjTqEDhRubYSEiTmhjeytx5moFH9naZB6XjZBRUMkmcbucFD9Vf8IoFZAD1LGngi6j5pXFGcTFPfBEudAZDZD"}
Here in vulnerable i used lyst app access token to login.
Steps to reproduce:
- Replay vulnerable request in vulnerable request in burp suite
- Use any other app access token .
Fix recommendation: https://developers.facebook.com/docs/facebook-login/security
**(Bug in oauth flow)
Impact
Attacker Can hack all users account using his own app access token
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 server accepted any Facebook access token without verifying that it was issued for the Reverb app (e.g., by checking the token's app ID).
Impact
An attacker could take over any user's account by using their own app's access token.
What the attacker needed
Access to the login API; a Facebook access token from another app
The fix
The server should validate the Facebook access token, for example by checking that it was issued for the correct app, as described in Facebook's security documentation.
How it was found
- Capture the Facebook login request in Burp Suite.
- Replace the Facebook token with an access token from another app.
- Send the request to log in using the other app's token.
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 in with Facebook, the app sends a token to the server to prove who you are. The server should check that this token was issued for its own app, but it did not. So an attacker could take a token from a different app and use it to log in as someone else.
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.