Recon overview
An internet-exposed Apache Tomcat server was protected by weak credentials, allowing the attacker to log in and deploy a JSP web shell. From there they obtained command execution, tunnelled RDP, dumped LSASS to recover a domain admin hash, and used pass-the-hash to compromise the domain.
wesecureapp.com
Published on wesecureapp.com
Recently, we conducted a remote red team assessment on a large organization and its child companies. This organization was particularly concerned about the security posture of their assets online.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Tomcat manager was exposed to the internet with weak credentials, and the Tomcat service ran with a domain user that was also a local administrator, enabling privilege escalation and credential theft.
Impact
The attacker could obtain domain administrator credentials and compromise the entire Windows domain, though the assessment was stopped at that point.
What the attacker needed
Internet-exposed Tomcat server; weak or common credentials; Tomcat service runs as domain user with local admin
The fix
The text does not state a specific fix, but recommends not exposing servers with weak credentials, removing unnecessary local admin rights, avoiding domain admin logins on daily-use machines, delegating control, and rotating privileged passwords.
How it was found
- Spray common credentials against internet-facing Apache Tomcat servers and log in to one.
- Upload a JSP web shell packaged as a WAR file to execute commands.
- Use a tunnelling tool (ABPTTS) to forward RDP traffic to the target host.
- Create a local administrator user and log in via RDP through the tunnel.
- Run ProcDump to dump LSASS memory and exfiltrate the dump via a JSP file viewer.
- Extract NTLM hashes with Mimikatz and use pass-the-hash to get a shell on the domain controller.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A server that manages web applications was left on the internet with an easy-to-guess password. The attacker logged in, uploaded a small program that let them run commands, and then used that access to steal password hashes from the machine's memory. One of those hashes belonged to a domain administrator, which let the attacker take over the whole Windows domain.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.