Skip to content
Account takeover Write-up Intermediate

Account Takeover Flow In Mail.ru ‘s Ext.A Domain [ $150 ]

An attacker could create an account with Gmail OAuth, change the account's email to a victim's address, and later log in using the original Gmail OAuth even after the email was changed. This allowed the attacker to access the victim's account because the victim could not unlink the Gmail OAuth.

Myo Min Thu Follow

Published on web.archive.org

Bounty$150 View original

{{media:0}}

Myo Min Thu, on web.archive.org

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 did not properly invalidate or unlink the OAuth connection when the email address was changed, allowing the original OAuth login to persist.

Impact

An attacker could take over a victim's account by linking their Gmail OAuth, changing the email to the victim's, and later logging in with the original OAuth, as the victim cannot unlink it.

What the attacker needed

Attacker has a Gmail account; Victim's email address is known; Victim uses the site

The fix

The application should allow users to unlink OAuth accounts and should invalidate OAuth sessions when the email address is changed.

How it was found

  1. Attacker creates an account using Gmail OAuth.
  2. Attacker changes the account's email to the victim's email address.
  3. Victim tries to create an account with their email and sees 'Your email address is already in use'.
  4. Victim resets password and uses the site normally.
  5. Attacker logs in using their original Gmail OAuth and accesses 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 write-up has not been written yet. The Original tab links to the source.

When you sign in with Google, the site links your Google account to your site account. The site did not let users remove that link. The attacker linked their Google account, then changed the email on the account to the victim's email. Later, the attacker could still log in with their Google account, even though the email was changed, giving them access to the victim's account.

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 Myo Min Thu

View all

7 more disclosed reports, best first.

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.