SV-222932r615938_rule
V-222932
SRG-APP-000033-AS-000024
TCAT-AS-000070
CAT II
10
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.
EXAMPLE:
<session-config>
<session-timeout>15</session-timeout>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</session-config>
From the Tomcat server console, run the following command:
sudo grep -i -B10 -A1 \/cookie-config $CATALINA_BASE/conf/web.xml
If the command returns no results or if the <secure> element is not set to true, this is a finding.
EXAMPLE:
<session-config>
<session-timeout>15</session-timeout>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</session-config>
V-222932
False
TCAT-AS-000070
From the Tomcat server console, run the following command:
sudo grep -i -B10 -A1 \/cookie-config $CATALINA_BASE/conf/web.xml
If the command returns no results or if the <secure> element is not set to true, this is a finding.
EXAMPLE:
<session-config>
<session-timeout>15</session-timeout>
<cookie-config>
<http-only>true</http-only>
<secure>true</secure>
</cookie-config>
</session-config>
M
4094