4.1.2.8 Ensure 'cookieName' JWT (JSON Web Token) cookie name is set

Information

The server will authenticate only the JWT cookie name that is configured. When the request contains other JWT cookie names, they will be ignored.

Changing the JWT cookie name helps make the cookie uniquely usable across multiple Liberty servers. It also helps hides the intended use of the cookie which helps prevent a bad actor from knowing how to try and misuse the cookie.

Solution

Set the cookieName attribute to any obscure value in jwtSso element in the ${server.config.dir}/configDropins/overrides/*.xml For Example, "obscuredCookieName2"

<jwtSso cookieName="obscuredCookieName2" />

Set the useOnlyCustomCookieName attribute to true in the webAppSecurity in the ${server.config.dir}/configDropins/overrides/*.xml

<webAppSecurity useOnlyCustomCookieName="true" />

See Also

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

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-6

Plugin: Unix

Control ID: bbc1eabd57c60bbca05fba7a53fa777704e3c929e0eabbf0926d0841ac2b3f5d