Information
Tomcat allows auto deployment of applications on startup. It is recommended that this capability be disabled.
Rationale:
This could allow malicious or untested applications to be deployed and should be disabled.
Solution
In the $CATALINA_HOME/conf/server.xml file, change deployOnStartup to false.
deployOnStartup='false'
Default Value:
deployOnStartup is set to true
References:
https://tomcat.apache.org/tomcat-8.0-doc/deployer-howto.html#Deployment_on_Tomcat_startup
https://tomcat.apache.org/tomcat-8.0-doc/config/host.html#Automatic_Application_Deployment
https://tomcat.apache.org/tomcat-8.0-doc/config/host.html