Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Struts2Vuln — Struts 2 web app that is vulnerable to CVE-2017-98505 and CVE-2017-5638 | Kitploit
Tools/GitHubGitHub/mike-williams/struts2vuln
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubmike-williams/struts2vuln

Struts2Vuln

Struts 2 web app that is vulnerable to CVE-2017-98505 and CVE-2017-5638

View Repository
18 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Vulnerable Struts2 application

Requirements

  1. Maven (https://maven.apache.org)
  2. Struts <= 2.5.10

CVE-2017-5638 - Apache Struts 2 Multipart form RCE

Requirements

  1. Locate a URL that issues a multipart form POST

Getting Started

  1. The application / server can be started with the following maven command: mvn jetty:run.
  2. Run the exploit (https://www.exploit-db.com/exploits/41570/) against the following URL http://localhost:8080/fileupload

CVE: 2017-98505 - Apache Struts 2 REST Plugin RCE

Requirements

  1. Struts REST Plugin
  2. Struts Convention Plugin
  3. A Create item REST URL exists and can be POSTed to. For example: http://localhost:8080/pizza/1. It is important to follow the struts2 plugin naming convention to get everything wired up automatically.

Getting Started

  1. The application / server can be started with the following maven command: mvn jetty:run.
  2. The payload.xml file contains the XML payload to POST to the vulnerable app / REST interface.
  3. Line 17 of the payload.txt file can be updated to run any command. It is currently set to spawn calc.exe (Windows). Replace with /bin/sh for Linux etc.

An attacker can POST the payload to gain RCE:

root@kitploit:~
curl -v -H "Content-Type:application/xml" -X POST -d @payload.txt http://localhost:8080/shapes/1
Download Tool