Back to services
web-app8080/tcp

Apache Tomcat

TomcatApache TomcatServlet Container

Apache Tomcat is a Java servlet container. Common targets include the manager console, Ghostcat (AJP), and exposed JMX endpoints.

Ports

PortProtocolDescription
8080tcpTomcat HTTP
8005tcpShutdown port
8009tcpAJP connector

Fingerprints

Banner / ProbeExpected Response
nmap -sV -p <port> <target>Service banner and version info
nc -nv <target> <port>Raw banner grab

Key Files

PathDescription
.envEnvironment variables with API keys and DB creds
config.phpApplication configuration file
wp-config.phpWordPress database credentials
web.configIIS configuration file
.git/configGit repository configuration
robots.txtDisallowed paths (information disclosure)
sitemap.xmlURL structure enumeration

Default Credentials

UsernamePasswordContext
tomcattomcatManager role
adminadminAdmin role

Known CVEs

IdentifierTypeDescription
CVE-2020-1938RCEGhostcat — AJP connector RCE

Exploitation Primitives

TechniqueTool / CommandResult
Reconnmap -sV -sC -p- <target>Full port/service scan
Enumerationnmap --script <service>-* -p <port> <target>Service-specific NSE scripts

Notes

Always start with full port scan: `nmap -sV -sC -p- <target>`.

Check for default credentials before brute-forcing.

Use service-specific NSE scripts: `nmap --script <service>-* -p <port> <target>`.

Remember to check both IPv4 and IPv6 if applicable.

Seen on

ShodanCensysFOFAZoomEye

References