Tips

OAuth and SSO tips

OAuth and single sign-on bugs let attackers steal authorization codes or tokens, or link their identity to a victim’s account. Redirect handling, state checks and account linking are where flows break.

Published tips, newest first. Payloads and commands are shown as plain text.

OAuth and SSO: how to hunt it

Where to look

  • redirect_uri checks that accept other paths, subdomains or an open redirect on the target.
  • A missing or unchecked state parameter, and flows open to login CSRF.
  • Account linking and sign-up by email through a provider that does not verify emails.
  • Tokens leaked in URLs, Referer headers and postMessage, in implicit flows above all.

What proves it

Show a test account taken over, or a code sent to a host you control, through a flow a victim would really follow.

Read further

Writeups on OAuth and SSO, by hunters and researchers, most with a short summary.

Related classes