Mail.Ru Ext.B Scope Account Takeover [ $1500 ]
The site linked OAuth accounts by email address without verifying that the email was confirmed by the provider. An attacker could create a VK account with a victim's email, log in via VK, and when prompted for an email, enter the victim's email to take over their account.
Published on web.archive.org
{{media:0}}
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application linked OAuth identities by email address without verifying that the email was confirmed by the OAuth provider.
Impact
An attacker could take over any account that uses an email address also available on an OAuth provider that does not require email confirmation, such as VK.
What the attacker needed
Victim has an account on the site; Attacker can create a VK account with victim's email; VK does not require email confirmation
The fix
The application should verify that the email address is confirmed by the OAuth provider before linking accounts, or require additional proof of ownership.
How it was found
- Create a VK account using the victim's email address without confirming the email.
- Log in to geekbrains.ru using the VK OAuth option.
- When the system asks for an email address because the VK account has no confirmed email, enter the victim's email.
- Click confirm; the system logs you into the victim's account without further verification.
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 write-up has not been written yet. The Original tab links to the source.
When you log in with a social account like VK, the site trusts the email that account claims. If the site doesn't check that the email was actually confirmed by VK, an attacker can make a VK account with someone else's email. Then the site links that fake account to the victim's real account, letting the attacker in.
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.