4.1.1.3 Ensure 'cookieDomain' cookie domain name attribute is set for the session cookies.

Information

The domain name attribute in a cookie specifies which hosts can receive the cookie.

Ensure the JSESSIONID cookie is sent to the correct domain by configuring the domain name. This will prevent the cookie to be sent to servers in other domains.

Solution

Set the cookieDomain attribute in the httpSession element to the appropriate domain name in the ${server.config.dir}/configDropins/overrides/<any file name>.xml For Example, "mySubDomain.myCompany.com"

<httpSession cookieDomain="mySubDomain.myCompany.com" />

See Also

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

Item Details

Category: SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|SC-23

Plugin: Unix

Control ID: a1cf1ebb6f8c61ec78c510183b78599a53d31c256bc5e21fec207f4a8e81707d