SV-222951r615938_rule
V-222951
SRG-APP-000141-AS-000095
TCAT-AS-000490
CAT II
10
From the Tomcat server as a privileged user, edit the $CATALINA_BASE/conf/server.xml file: set the Server port setting to -1 and restart the Tomcat server.
<Server port="-1" shutdown="SHUTDOWN">
sudo systemctl restart tomcat
sudo systemctl daemon-reload
From the Tomcat server run the following OS command:
$ sudo grep -i shutdown $CATALINA_BASE/conf/server.xml
Ensure the server shutdown port attribute in $CATALINA_BASE/conf/server.xml is set to -1.
EXAMPLE:
<Server port="-1" shutdown="SHUTDOWN">
If Server port not = "-1" shutdown="SHUTDOWN", this is a finding.
V-222951
False
TCAT-AS-000490
From the Tomcat server run the following OS command:
$ sudo grep -i shutdown $CATALINA_BASE/conf/server.xml
Ensure the server shutdown port attribute in $CATALINA_BASE/conf/server.xml is set to -1.
EXAMPLE:
<Server port="-1" shutdown="SHUTDOWN">
If Server port not = "-1" shutdown="SHUTDOWN", this is a finding.
M
4094