Summery
Apache Tomcat is an open-source web server that hosts applications written in Java. Tomcat was initially designed to run Java Servlets and Java Server Pages (JSP) scripts. However, its popularity increased with Java-based frameworks and is now widely used by frameworks such as Spring and tools such as Gradle.
The most common type of an attack are war uploads. Where you use tomcat’s upload function to get a webshell or a reverse shell on the web server.
Important files and directories
conf/server.xml - Connectors, ports, virtual hosts, and server configuration
conf/tomcat-users.xml - User accounts and roles
webapps/ - Deployed applications
webapps/manager/ - Application deployment and management interface
logs/ - Application and server logs
conf/web.xml - Default web application configuration
References
Further reads: Tomcat - Discovery & Enumeration, Attacking Tomcat CGI
Tomcat documentation
HackTricks: Tomcat