Skip to content
Account takeover Disclosed report Intermediate

Misconfigured oauth leads to Pre account takeover

Badoo's OAuth login did not check whether an account already existed with the same email address, so an attacker could pre-register an account using a victim's email and later the victim's OAuth login would bypass email verification, allowing the attacker to log in with the password they set.

dhakal_bibek Follow

Originally disclosed on HackerOne

  • Triaged in 3 days
  • Fixed in 4 days
  • Paid in 4 days
  • Disclosed after 2 months

##Summary

While testing badoo i have noticed that users can use SMAL (Google,MSN,VKontakte,Odnoklassniki,Yandex Mail.Ru) to create and login to badoo accounts. Now there are two ways of registering into badoo

By email registration Google,MSN,VKontakte,Odnoklassniki,Yandex,Mail.Ru oauth login

Now here badoo has a weak auth verification which does not check if a previous account was created with the same email when we use Google,MSN,VKontakte,Odnoklassniki,Yandex,Mail.Ru to login to our accounts. SO basically what it means is that someone can register using the unregistered victims account. after that victim will log in using the OAuth. in this case, the verification process is bypassed and the attacker can log in using the password after that.

##Steps

1: Go to https://badoo.com/en/signup/ and signup using the unregistered victim's account.

2: Now, It will ask you to verify the email.

Screenshot_from_2021-01-08_10-25-48.png
Screenshot_from_2021-01-08_10-25-48.png From the original on HackerOne

3: After the sometime victim is going to signup using the OAuth method.

4: What happens here is, now the victim can easily log in using the victim's account which bypasses the verification methods.

recording-1610081305478.webm From the original on HackerOne

##Fix Either don't let user enter with oauth when there's already another account created with the same email or let the user enter but let him know someone else has already created an account and if it was him or not then ask him to change the password.

Impact

Only one thing we need here and that is email address. Just by knowing that we can takeover victim's account so the impact here is quite high. Imagine email address is something you can even get if you ask so its not a hard task. But since the oauth does not authenticates the real user attackers can easily takeover the account.

The original report as published on HackerOne, by dhakal_bibek. 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

Impact

An attacker who knows a victim's email address could take over the victim's account because the OAuth login does not authenticate the real user.

What the attacker needed

Know victim's email address; victim uses OAuth login

The fix

The site should either prevent OAuth login when an account with the same email already exists, or warn the user and require a password change if someone else created an account with that email.

How it was found

  1. Go to the signup page and sign up using the unregistered victim's email address.
  2. The site asks to verify the email.
  3. After some time, the victim signs up using the OAuth method.
  4. The victim can now log in using the victim's account, which bypasses the verification methods.

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 sign up with Google or another service, the site should check if that email is already used. Here, it did not, so an attacker could create an account with someone else's email first. Later, when the real owner logged in with Google, the site skipped email verification and the attacker could still use the password they set.

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 dhakal_bibek

View all

4 more disclosed reports, best first.

More from Bumble

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.