3.2 Disable the Shutdown port

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. If this functionality is not used, it is recommended that the shutdown port be disabled.

Rationale:

Disabling the Shutdown port will eliminate the risk of malicious local entities using the shutdown command to disable the Tomcat server.

Solution

Set the port to -1 in the $CATALINA_HOME/conf/server.xml to disable the shutdown port

<Server port='-1' shutdown='SHUTDOWN'>

Default Value:

The shutdown port is enabled on TCP port 8005, bound to the loopback address.

References:

https://tomcat.apache.org/tomcat-8.0-doc/config/server.html

See Also

https://workbench.cisecurity.org/files/2506

Item Details

Category: SYSTEM AND INFORMATION INTEGRITY

References: 800-53|SI-4, CSCv7|9.2

Plugin: Unix

Control ID: 708993b5c2f49dfbe159084996bb596ee09cb217b73acfdea6424f8e8fd701ab