Steal Google Oauth in Microsoft
The write-up describes an OAuth token hijack in the Google/Microsoft integration, where a loosely registered redirect URI allowed tokens to be sent to an attacker-controlled path. An attacker could obtain OAuth tokens meant for the legitimate client.
blog.intothesymmetry.com
Published on blog.intothesymmetry.com
The original lives on blog.intothesymmetry.com
We do not hold its text, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
We could not read this write-up from its site yet, so there is no rewrite of it. We try again regularly; meanwhile it is on its author's site. Read the write-up.
How it worked
Root cause
Likely the OAuth client registered an overly broad redirect URI, so the provider accepted callbacks to paths the legitimate application did not control.
Impact
An attacker could receive OAuth tokens issued for the integration, potentially taking over the linked account.
What the attacker needed
Victim completes OAuth flow; attacker controls a path on the domain
The fix
The OAuth client should register only the exact callback path it uses, not broader prefixes or the bare domain.
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.
We could not read this write-up from its site yet, so there is no rewrite of it. We try again regularly; meanwhile it is on its author's site. Read the write-up.
OAuth is a way to sign in to one site using another account, like 'Sign in with Google'. The site must tell the provider exactly where to send the user back, and if that address is too loose, an attacker can receive the login token instead of the real site.
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.