Skip to content
OAuth / SSO Write-up Intermediate

Google OAuth is broken (sort of)

Google OAuth allows creating a non-Gmail Google account using a corporate email alias with a plus sign, which is not part of the company's Google organization and cannot be off-boarded. An attacker could use this to retain access to third-party applications like Slack and Zoom after leaving the company.

Dylan Ayrey Follow

Published on trufflesecurity.com

Bounty$1,337total stated by author View original

Back in August, we publicly disclosed that one of the beta testers of Truffle Security’s Forager tool had found our login was impacted by Descope’s Microsoft OAuth vulnerability. At the time I remember being surprised to learn that Microsoft would send Email claims that were not created or validated by Microsoft, and…

Dylan Ayrey (@insecurenature), on trufflesecurity.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 service providers trust the email claim from Google OAuth without verifying that the account belongs to the organisation, and Google allows creating accounts with aliases of organisation domains.

Impact

Former employees could retain indefinite access to applications like Slack and Zoom after being off-boarded, and in some cases an attacker with no initial access could gain access via support ticket emails.

What the attacker needed

A corporate email address; ability to create a Google account; service uses Google OAuth and trusts email claim

The fix

Google should ban Google accounts created from existing organisation domains, plus-signed accounts, and aliases, or provide better admin controls; service providers should use the HD claim or disable just-in-time account creation.

How it was found

  1. Create a Google account using a corporate email address with a plus sign (e.g., [redacted]).
  2. Use that Google account to sign in to a service like Slack or Zoom via OAuth.
  3. The service parses the email domain and grants access, even though the account is not part of the company's Google organisation.

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 to a website with Google, Google tells the website your email address. The website often trusts that email to decide if you work for a company. This report shows you can make a Google account using a company email address with a plus sign added, and that account is not controlled by the company's Google admin. So a former employee can keep logging in even after their real account is deleted.

What is OAuth / SSO?

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.

More by Dylan Ayrey

View all

1 more disclosed report, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

OAuth and single sign-on flaws

The lesson behind this report.

Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.