Lab Icon

Compromised 1

🔥 Can you compromise this misconfigured Tomcat server?

Medium Updated 10 Jun 2026 Free Access Solution (Pro)
Apache Tomcat Web Application Security WAR Deployment Default Credentials Privilege Escalation Linux Sudo Web Shells

Dive into a realistic web application penetration testing scenario featuring Apache Tomcat. This server has been left with dangerous default configurations and sudo misconfigurations that could lead to complete system compromise. 🎯 Master the art of web application exploitation, WAR file deployment, and Linux privilege escalation in this hands-on challenge.

2
Flags
400
XP
52%
Success Rate

Apache Tomcat exploitation is a critical topic in web application security. Apache Tomcat is one of the most widely deployed Java application servers, powering enterprise web applications across industries. When Tomcat instances are misconfigured - particularly with default or weak credentials on the Manager application - attackers can deploy malicious web applications and gain remote code execution on the server.

Understanding Tomcat Manager Exploitation

The Tomcat Manager is a web-based administration interface that allows authorized users to deploy, undeploy, and manage web applications (WAR files). In many real-world scenarios, administrators leave the Manager application accessible with default credentials like tomcat:tomcat or other weak password combinations. Once an attacker gains access to the Manager, they can upload a malicious WAR file containing a web shell or reverse shell, effectively gaining command execution on the target server with the privileges of the Tomcat process.

WAR File Deployment Attacks

WAR (Web Application Resource) files are the standard packaging format for Java web applications. Attackers can craft malicious WAR files containing JSP web shells that provide interactive command execution through a web browser. Tools like msfvenom can generate reverse shell payloads packaged as WAR files, while custom JSP shells offer more flexibility. The deployment process is straightforward - upload through the Manager interface, and the malicious application becomes immediately accessible on the server.

From Web Shell to Root Access

Gaining a web shell through Tomcat is typically just the beginning of a penetration test. The Tomcat process usually runs as a limited user, so attackers must enumerate the system for privilege escalation vectors. Common escalation paths include misconfigured sudo permissions, SUID binaries, writable cron jobs, and kernel exploits. Understanding this full attack chain - from initial reconnaissance and credential discovery through web shell deployment to Linux privilege escalation - is essential for security professionals conducting comprehensive penetration tests.

What You Will Learn

  • Understand Apache Tomcat architecture and common security misconfigurations
  • Learn web application reconnaissance and credential discovery techniques
  • Practice WAR file deployment for remote code execution
  • Develop Linux privilege escalation skills through sudo misconfiguration exploitation
  • Master the full attack chain from web access to root compromise
  • Recognize how default credentials create critical security risks

Prerequisites

Web application basics Basic Linux command line Understanding of web servers Familiarity with network scanning tools

Ready to hack this lab?

Create a free account and start practicing cybersecurity hands-on.

Start Hacking - It's Free
Start Your Challenge

Launch your dedicated machine to begin hacking

~1-2 min setup
Dedicated server
Private instance
Standard power
New here? Here's what to do
1
Click "Start Lab" above You'll get your own private machine with an IP address
2
Explore the target Open the IP in your browser and look for vulnerabilities
3
Find and submit flags Flags are secret text strings hidden in the system - paste them below to score

Ready to hack this lab?

Create a free account to start your own dedicated server, submit flags, and earn XP on the leaderboard.

Start Hacking Free
12,000+ Hackers 100+ Labs & Courses Free
Start Hacking Free