Details
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
Solution
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
EXAMPLE:
Supportive Information
The following resource is also helpful.
This security hardening control applies to the following category of controls within NIST 800-53: Access Control.This control applies to the following type of system Unix.
References
- 800-53|AC-3
- CAT|II
- CCI|CCI-000213
- Rule-ID|SV-222933r615938_rule
- STIG-ID|TCAT-AS-000080
- STIG-Legacy|SV-111397
- STIG-Legacy|V-102449
- Vuln-ID|V-222933