Bumble · Report #92472
Tokens from services like Facebook can be stolen
How it was found
Description
This file https://mus1.badoo.com/cb.html looks for the parameters access_token, token and code in the URL and send the value back to the window.opener using window.opener.postMessage(message, '*');. Because you specified * as the value of the second parameter of postMessage(), the browser is not going to check which is the opener and will send the message to any opener with the token.
The problem here is that you can receive the message from a site you control and then use this token to even log in Badoo.
Proof of concept
- Download the file opener.html that I attached.
- Sign up to Badoo using Facebook.
- Using the browser where you are logged in to Facebook, open the file that you downloaded in step 1.
- Click on Click Here.
- Wait a few seconds.
- When it's done, in the page will appear your Facebook token for Badoo.
I attached a screen capture too (the size is 1.4MB). Please, let me know if you need more information.