Enable anti-CSRF token

reference australia Updated Sep 10, 2026 1 min read sc-anti-csrf-token.md
Raw file servicenow.com

Use the glide.security.use_csrf_token property to confirm the use of a secure token to identify and validates incoming requests, which in turn are used to prevent these attacks.

Cross-site request forgery (CSRF) is an attack that forces authenticated users to submit a request to a web application, exploiting the web application's trust in an authenticated user.

The glide.security.use_csrf_token property controls whether the platform embeds a token in rendered pages and validates that token on incoming requests. This allows the platform to distinguish requests that originated from its own pages from requests forged by a third-party site.

To configure this property:

  1. Confirm the current user has the admin role or has elevated to that role.
  2. Navigate to /sys_properties_list.do on the instance.
  3. Confirm the glide.security.use_csrf_token property exists and is set to true.

More information

Attribute

Description

Property name

glide.security.use_csrf_token

Configuration type

System Properties (/sys_properties_list.do)

Category

Access control

Purpose

To protect the application from potential CSRF attack.

Fallback value

false

Recommended value

true

Default value

true

Functional impact

Requests with a missing, expired, or mismatched token are rejected and the user is redirected to a security warning page instead of having the action performed.

Security risk

  • Security risk rating: High
  • CVSS rating: 8.1
  • Security risk details: If this property is not set to true, the platform can't distinguish a forged request from one the user actually intended. An attacker can craft a malicious page that causes an authenticated victim's browser to submit a request to the instance without their knowledge. That request executes with the victim's session and privileges.
To learn more about adding or creating a system property, see [Add a system property](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/platform-administration/t_AddAPropertyUsingSysPropsList.md).

Parent Topic:Access control

Search documentation
Search document titles and file paths on the australia branch