pentesting, updated

Testing for OAuth weaknesses

Check the OAuth/OIDC flow for a missing or reusable state parameter, a loose redirect_uri check, and token leakage.

Goal

Confirm the OAuth flow resists CSRF, authorization code theft and open-redirect-style abuse.

How to test

Walk the authorization code flow and check each parameter:

https://auth.example.com/authorize?response_type=code&client_id=app&redirect_uri=https://example.com/callback&state=abc123

What to look for

A flow that accepts a loosely-matched redirect_uri, works without state, or leaks the authorization code/token somewhere it shouldn’t be (logs, Referer, browser history).

References

§ home
~/knubertus/home/
1,1 Top