tomcat

Tomcat Files

# path
/manager/
/manager/status
/host-manager/

# main config paths
/etc/tomcat{X}
/usr/share/tomcat{X}/etc/
/etc/tomcat{X}/conf/
/etc/tomcat/conf/
C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf\
C:\xampp\tomcat\conf\

# files
conf\tomcat-users.xml

Check for default creds using

use nikto to scan for default creds

Shell

Deploying Using CLI (.war) - using manager

Deploying without creds - using filesystem (Windows)

Reference link

  1. generate shell.war

  2. copy to %CATALINA_HOME%\webapps\shell.war

  3. run %CATALINA_HOME%\bin\startup.bat

  4. .war is deployed.

  5. invoke using curl http://IP:PORT/shell/

Tomcat/9.0.31

Tomcat JSP Upload Bypass / RCE

  • https://www.exploit-db.com/exploits/42966

  • https://blogs.keysight.com/blogs/tech/nwvs.entry.html/2020/06/12/deconstructing_apach-emYD.html

Last updated

Was this helpful?