Skip to content

Request Forgery: OAuth Missing State Validation

Identifier: oauth_missing_state_validation

Scanner(s) Support

GraphQL Scanner REST Scanner WebApp Scanner ASM Scanner

Description

OAuth authorization flows should validate the state parameter to bind authorization responses to the initiating browser session.

How we test: We inspect OAuth authorization flows and callback handling to detect missing, static, reusable, or unvalidated state values. Missing state validation can result in CSRF attacks that force user sessions, such as login CSRF or account-linking attacks where a victim is silently bound to an attacker-controlled OAuth session.

References:

Configuration

Example

Example configuration:

---
security_tests:
  oauth_missing_state_validation:
    skip: false

Reference

skip

Type : boolean

Skip the test if true.