Skip to content
Access control Write-up Beginner

Still Logged In? Google OAuth’s Secret Backdoor (No Tools Need

The website did not unlink a Google OAuth account when the user changed their email address, so the old Google account could still be used to log in. An attacker with access to the old Google account could retain access to the account even after the email was changed.

strangerwhite Follow

Published on cybersecuritywriteups.com

Hey everyone! 👋 Welcome back to my “Finding Bugs Without Tools” series — where we found a sneaky little bug in a website just by using common sense, a browser, and a bit of curiosity. No tools, no scans, just real-world logic.

StrangeRwhite, on cybersecuritywriteups.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 application did not remove the OAuth link when the user's email address was changed.

Impact

An attacker with access to the old Google account could still log in to the account even after the email was changed, and there is no option to disconnect Google.

What the attacker needed

A Google account; a user account on the website

The fix

The application should automatically remove the Google OAuth link when the email address is changed, and provide a 'Disconnect Google' option.

How it was found

  1. Sign up or log in using Google OAuth with an old Google account.
  2. Change the account email in settings to a new email address.
  3. Log out.
  4. Attempt to log in again using the same old Google account.
  5. Observe that login succeeds despite the email change.

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 website remembers your Google account. If you later change your email on the website, it should forget the old Google account. But here it didn't, so anyone with that old Google account could still get in.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by strangerwhite

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.