Login Via FB Leads To Create A New Account Instead Of Loging In
A user who had already registered and confirmed an account with an email address was not logged into that existing account when signing in with Facebook using the same email; instead the site showed the registration page pre-filled with the Facebook details. This could let a user end up with a duplicate account rather than accessing their original one.
Originally disclosed on HackerOne
- Triaged in 31 days
- Fixed in 31 days
- Disclosed after 2 months
Hy There So When A User For Example in my case sign up with email -->[email protected] And Confirm The Email Address So Then If I Logout And MAke sure that the account associated with [email protected] is logged in on facebook and on apitest.io when i click on sign in via FB it leads me to Registration Page With FB Details Entered Within It. So Basically What Usually Happens Is When For Example an account is made from [email protected] and user sign in with fb he must be logged in no matter what. You Can Even Check This Same Thing on imgur.com And Its Usually The Most Efficient Thing And Found Common On Any Web App. Thanks For More Info Lemme Know
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 Facebook login flow does not match the returned email address against existing accounts and instead always routes unknown social logins to registration.
What the attacker needed
An existing confirmed account; Facebook account with same email; victim uses Facebook sign-in
The fix
The social login flow should log the user into their existing account rather than showing registration.
How it was found
- Register an account with an email address and confirm the email.
- Log out of the site.
- Ensure the Facebook account with the same email is logged in.
- Click sign in via Facebook on the site.
- Observe the registration page appears pre-filled with Facebook details instead of logging in.
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.
Many sites let you sign in with Facebook instead of a password. If you already made an account with your email, the site should recognise that the Facebook account uses the same email and log you into the existing account. Here it did not, and showed a sign-up form instead, which risks creating a second, separate account.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.