4.1.3.1 Ensure 'samesite' SameSite attribute is set to 'Strict' for additional 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.

Cookies without a SameSite attribute are treated as if they have the SameSite attribute value of Lax for some browsers.

Solution

Set the strict attribute to * in the samesite element in the httpEndpoint element in ${server.config.dir}/configDropins/overrides/*.xml

<httpEndpoint
...
<samesite strict="*"/>
</httpEndpoint>

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6

Plugin: Unix

Control ID: 81013491a9118810841b3c333d00ea4cb16f43073d41e8b8b74111d743297040