4.1.1.1 Ensure 'cookieSameSite' SameSite attribute is set to 'Strict' for session cookies

Information

The SameSite attribute is used by web browsers to determine if a particular cookie should be sent with a request. Setting this attribute can help protect against Cross Site Request Forgery (CSRF) attacks. It is recommended to set the SameSite attribute to Strict A Strict value for the SameSite attribute ensures the cookie is only sent by the web browser if the site for the cookie matches the site in the address bar, for example.

Some browsers treat cookies without a SameSite attribute as if they have the SameSite attribute value of Lax

Solution

Add the cookieSameSite attribute to the httpSession element in ${server.config.dir}/configDropins/overrides/<any file name>.xml Set the cookieSameSite value to Strict

<httpSession cookieSameSite="Strict"/>

See Also

https://workbench.cisecurity.org/benchmarks/7724

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-23

Plugin: Unix

Control ID: cf23c4f2bc5f63ee903021a5be9cd26696ffa9fcc7ca939c65e1fb893864bb54