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.

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">

See Also

https://workbench.cisecurity.org/benchmarks/15137

Item Details

Category: SECURITY ASSESSMENT AND AUTHORIZATION, CONFIGURATION MANAGEMENT, SYSTEM AND COMMUNICATIONS PROTECTION

References: 800-53|CA-9, 800-53|CM-6, 800-53|CM-7, 800-53|SC-7, 800-53|SC-7(5), CSCv7|1.7, CSCv7|9.2

Plugin: Unix

Control ID: 79d193f56bc69bc1c2be752d9c94ac0661100b84323db88601603e32c2359cab