SV-222975r615938_rule
V-222975
SRG-APP-000266-AS-000169
TCAT-AS-000920
CAT II
10
As a privileged user on the Tomcat server:
Edit the $CATALINA_BASE/conf/server.xml file.
Create or modify an ErrorReportValve <Valve> element nested beneath each <Host> element.
EXAMPLE:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="false">
...
<Valve className="org.apache.catalina.valves.ErrorReportValve"
showServerInfo="false" />
...
</Host>
Restart the Tomcat server:
sudo systemctl restart tomcat
sudo systemctl daemon-reload
As an elevated user on the Tomcat server run the following command:
sudo grep -i ErrorReportValve $CATALINA_BASE/conf/server.xml file.
If the ErrorReportValve element is not defined and showServerInfo set to "false", this is a finding.
EXAMPLE:
<Host ...>
...
<Valve className="org.apache.catalina.valves.ErrorReportValve" showServerInfo="false"/>
...
</Host>
V-222975
False
TCAT-AS-000920
As an elevated user on the Tomcat server run the following command:
sudo grep -i ErrorReportValve $CATALINA_BASE/conf/server.xml file.
If the ErrorReportValve element is not defined and showServerInfo set to "false", this is a finding.
EXAMPLE:
<Host ...>
...
<Valve className="org.apache.catalina.valves.ErrorReportValve" showServerInfo="false"/>
...
</Host>
M
4094