SV-222954r615938_rule
V-222954
SRG-APP-000141-AS-000095
TCAT-AS-000520
CAT III
10
From the Tomcat server as a privileged user:
Edit the $CATALINA_BASE/conf/web.xml file.
Examine the <init-param> elements within the <Servletclass> element, if the "listings" <param-value>element is "true" change the "listings" <param-value> to read "false".
sudo systemctl restart tomcat
sudo systemctl daemon-reload
From the Tomcat server run the following OS command:
sudo cat $CATALINA_BASE/conf/web.xml |grep -i -A10 -B2 defaultservlet
The above command will include ten lines after and two lines before the occurrence of "defaultservlet". Some systems may require that the user increase the after number (A10) in order to determine the "listings" param-value.
If the "listings" param-value for the "DefaultServlet" servlet class does not = "false", this is a finding.
V-222954
False
TCAT-AS-000520
From the Tomcat server run the following OS command:
sudo cat $CATALINA_BASE/conf/web.xml |grep -i -A10 -B2 defaultservlet
The above command will include ten lines after and two lines before the occurrence of "defaultservlet". Some systems may require that the user increase the after number (A10) in order to determine the "listings" param-value.
If the "listings" param-value for the "DefaultServlet" servlet class does not = "false", this is a finding.
M
4094