SV-222978r615938_rule
V-222978
SRG-APP-000267-AS-000170
TCAT-AS-000950
CAT III
10
From the Tomcat server, cd to the $CATALINA_HOME/lib folder. As a privileged user run the following case sensitive command:
sudo jar -xf catalina.jar org/apache/catalina/util/ServerInfo.properties
Edit the ServerInfo.properties file.
sudo nano org/apache/catalina/util/ServerInfo.properties
Change server.info and server.number to read:
server.info=<Enter Some Random Name or Value>
server.number=<Enter Some Random number>
EXAMPLE:
server.info="Standard Server"
server.number=1.0.2.11
Save the ServerInfo.properties file.
Run the following command to update the catalina.jar file:
sudo jar -uf catalina.jar org/apache/catalina/util/ServerInfo.properties
Restart the Tomcat server:
sudo systemctl restart tomcat
sudo rm -rf $CATALINA_HOME/lib/org
From the Tomcat server, cd to the $CATALINA_HOME/bin folder. Run the version.sh command and identify the following information that is provided:
Server version:
Server built:
Server number:
EXAMPLE:
Server version: Apache Tomcat
Server built: July 4 2019 14:20:06 UTC
Server number: 9.0.22.0
If additional version information is required, refer to the Apache Tomcat version 9 change log on the Apache Tomcat website for historical version information. Google "Apache Tomcat 9 changelog".
If server.info="Apache Tomcat" or server.number=the valid Tomcat version, this is a finding.
V-222978
False
TCAT-AS-000950
From the Tomcat server, cd to the $CATALINA_HOME/bin folder. Run the version.sh command and identify the following information that is provided:
Server version:
Server built:
Server number:
EXAMPLE:
Server version: Apache Tomcat
Server built: July 4 2019 14:20:06 UTC
Server number: 9.0.22.0
If additional version information is required, refer to the Apache Tomcat version 9 change log on the Apache Tomcat website for historical version information. Google "Apache Tomcat 9 changelog".
If server.info="Apache Tomcat" or server.number=the valid Tomcat version, this is a finding.
M
4094