Cookies must have secure 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-222932r960792_rule
- Version
- TCAT-AS-000070
- 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 <secure> setting and set to true.