--- title: Enforce oauth state parameter validation description: Configure the glide.oauth.state.parameter.required property to prevent your instance from cross-site request forgery \(CSRF\) attacks. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/instance-security-hardening-settings/sc-enforce-oauth-state-parameter-validation.html release: australia product: Instance Security Hardening Settings classification: instance-security-hardening-settings topic_type: reference last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Access control, Hardening settings, Platform Security] --- # Enforce oauth state parameter validation Configure the **glide.oauth.state.parameter.required** property to prevent your instance from cross-site request forgery \(CSRF\) attacks. The **glide.oauth.state.parameter.required** system property enables the **State** parameter to be required in an OAuth request for authorization code flow. Beginning in the Madrid release, the system property **glide.oauth.state.parameter.required** adds a **State** parameter for an OAuth request. For zbooted instances, the property is **true**. For upgraded instances, the property is not present, so the **State** parameter is not enabled. The **State** parameter is a string value, and should not contain special characters. The State parameter cannot be empty or " ". Not setting the **State** parameter to **true** ensures that an attacker cannot perform CSRF attacks during authentication can allow an attacker to perform operations as the victim. Ensure that the property **glide.oauth.state.parameter.required** is set to **true**. ## More information
Attribute Description
Configuration name **glide.oauth.state.parameter.required**
Configuration type System Properties \(/sys\_properties\_list.do\)
Data type Boolean
Recommended value true
Default value <none>
Fallback value false
Category [Access control](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/sc-access-control.md)
Security risk - Severity score: 4.2 - CVSS rating: Medium - Security risk details: Not enabling the **glide.oauth.state.parameter.required** property in OAuth authorization code flow increases the risk of Cross-Site Request Forgery \(CSRF\) attacks, potentially allowing attackers to impersonate users and perform unauthorized actions.
Functional impact None
Dependencies and prerequisites None
**Parent Topic:**[Access control](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/sc-access-control.md)