Account Takeover
A link used to import Facebook photos contained a token that was not tied to a specific user, so any user could use it. An attacker could trick a victim into opening the link, which replaced the victim's linked Facebook account with the attacker's, allowing the attacker to log in to the victim's account via Facebook.
Originally disclosed on HackerOne
- Triaged in 18 hours
- Fixed in 43 hours
- Paid in 18 hours
- Disclosed after 3 days
Hello this is regarding an account takeover via import image from facebook option, when we import fb photos a link with a token generated which is valid for any user and it can be use to replace user linked fb account to attacker fb account And then login via fb to takeover account
Note: I tested it on https://m.Badoo.com
Steps to reproduce :-
1 -Create two Badoo account attacker & victim and link 2 diff fb account in each of them
2- Login as 'attacker' and go to import photos via fb and copy the link from URL bar
3- Now login as 'victim' in diffrent browser and open the link and click cancel.
4- FB account of 'victim' is replaced with FB account of 'attacker' (Removed from 'victim' one)
5-Login via attacker FB account and you will be logged in 'User' account
Congo u just hacked victim account
More explanation
Suppose a user have an account of attacker 'A' with FB linked which 'FB-of-A' and a victim account 'B' with fb linked which is 'FB-of-B' now attacker create a link to import photos from his fb and give it to victim 'B' he opens it and press cancel but this have changed his FB account 'FB-of-B' to attacker's FB account 'FB-of-A', And now attacker can login with his fb account in victim's badoo account.
I have made a PoC video on mobile so if u need i will send it or please wait i will send u PC made within mext 24 hours
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 token in the photo-import link was not bound to the user session, allowing any user to reuse it to change another account's linked Facebook account.
Impact
An attacker could take over a victim's account by replacing the victim's linked Facebook account with their own and then logging in via Facebook.
What the attacker needed
Attacker has an account with a linked Facebook account; victim has an account with a linked Facebook account; victim clicks the attacker's link
How it was found
- Create two accounts (attacker and victim) and link a different Facebook account to each.
- Log in as the attacker, start importing photos from Facebook, and copy the URL from the address bar.
- Log in as the victim in a different browser and open the copied link, then click cancel.
- The victim's linked Facebook account is replaced with the attacker's.
- Log in with the attacker's Facebook account to access the victim's 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 link your Facebook account to another service, that service uses a special code to confirm it's really you. Here, the code was not unique to each person, so anyone could reuse it. The attacker gave the victim a link containing their own code, and when the victim clicked it, the victim's Facebook link was swapped for the attacker's, letting the attacker log in as the victim.
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.