TCAT-AS-000490 - The shutdown port must be disabled.

Warning! Audit Deprecated

This audit has been deprecated and will be removed in a future update.

View Next Audit Version

Information

Tomcat listens on TCP port 8005 to accept shutdown requests. By connecting to this port and sending the SHUTDOWN command, all applications within Tomcat are halted. The shutdown port is not exposed to the network as it is bound to the loopback interface. Set the shutdown attribute in $CATALINA_BASE/conf/server.xml.

Solution

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

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_Apache_Tomcat_Application_Server_9_V2R6_STIG.zip

Item Details

References: CAT|II, CCI|CCI-000381, Rule-ID|SV-222951r879587_rule, STIG-ID|TCAT-AS-000490, STIG-Legacy|SV-111427, STIG-Legacy|V-102485, Vuln-ID|V-222951

Plugin: Unix

Control ID: 770fc273a1fbf1ee256ba8a632c9ac444ff32d81776c51d2cba3f87d72afe792