Skip to content
Account takeover Write-up Beginner

No email verification leads to an Oauth account takeover.

The application allowed a user to change their email address without verifying the new email. An attacker could change the email to one they control and then log in via Google OAuth, taking over the account.

infosecwriteups.com

Published on infosecwriteups.com

OAuth account takeover can have significant consequences, including identity theft, financial fraud, and unauthorized access to personal information like credit card numbers, private messages, and health records.

loyalonlytoday, on infosecwriteups.com

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 email change function did not require verification of the new email address before applying the change.

Impact

An attacker could take over a user's account by changing the email to one they control and then logging in via OAuth, potentially leading to identity theft and unauthorised access to personal information.

What the attacker needed

A free account; attacker controls an email address

The fix

The application should send a verification link or OTP to the new email address before applying the change.

How it was found

  1. Create an account and log in.
  2. Go to account settings and choose to change email and password.
  3. Enter a new email address and current password, then submit the change.
  4. Observe that the email is changed without any confirmation link being sent.
  5. Log out and log in using Google OAuth with the new email address.
  6. Successfully access the 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 change your email address on a website, the site should send a confirmation link to the new address to prove you own it. Here, the site skipped that step, so someone could set the email to their own and then use 'Log in with Google' to access the 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.

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.