Skip to content

Cookies must have http-only flag set.

An XCCDF Rule

Description

It is possible to steal or manipulate web application session and cookies without having a secure cookie. Configuring the secure flag injects the setting into the response header. The $CATALINA_BASE/conf/web.xml file controls how all applications handle cookies via the <cookie-config> element.

ID
SV-222933r960792_rule
Version
TCAT-AS-000080
Severity
Medium
References
Updated

Remediation Templates

A Manual Procedure

From the Tomcat server console as a privileged user:

edit the $CATALINA_BASE/conf/web.xml

If the cookie-config section does not exist it must be added. Add or modify the <http-only> setting and set to true.