When testing OAuth authorization flows on target.com, try sending a HEAD request to the authorization URL instead of GET or POST. This can help reveal if the server is vulnerable to method confusion, where the HEAD request is treated as a POST and grants access without user cons…
When testing an OAuth 2.0 implementation, try manipulating the redirect_uri parameter to see if the server properly validates it. Test variations like https://attacker.example, https://target.com.attacker.example, https://target.com@attacker.example, and http://target.com/callba…
GET /authorize?response_type=code&client_id=<client_id>&redirect_uri=<registered_uri>&state=<random>
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