Skip to content
Misconfiguration Write-up Intermediate

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.

user, on wesecureapp.com

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

  1. Spray common credentials against internet-facing Apache Tomcat servers and log in to one.
  2. Upload a JSP web shell packaged as a WAR file to execute commands.
  3. Use a tunnelling tool (ABPTTS) to forward RDP traffic to the target host.
  4. Create a local administrator user and log in via RDP through the tunnel.
  5. Run ProcDump to dump LSASS memory and exfiltrate the dump via a JSP file viewer.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.