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
apche-struts-vuln-demo-cve-2018-11776 — Spins up an isolated test environment for experimentation with Apache Struts vulnerability CVE-2018-11776. | Kitploit
Tools/GitHubGitHub/oznetnerd/apche-struts-vuln-demo-cve-2018-11776
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & EducationLabs & Practice
GitHuboznetnerd/apche-struts-vuln-demo-cve-2018-11776

apche-struts-vuln-demo-cve-2018-11776

Spins up an isolated test environment for experimentation with Apache Struts vulnerability CVE-2018-11776.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View RepositoryWebsite
5 years agoNot yet reviewed

Apache Struts Vulnerability Demo (CVE-2018-11776)

Description

Spins up an isolated test environment for experimentation with Apache Struts vulnerability CVE-2018-11776.

Getting Started

To bring up the test environment, run the following command:

root@kitploit:~
aws cloudformation create-stack \
--template-body file://cfn.yml \
--stack-name <STACK_NAME> \
--parameters \
ParameterKey=Ec2KeyName,ParameterValue=<KEY_NAME> \
ParameterKey=Linux2Ami,ParameterValue=<AMAZON_LINUX2_AMI_ID>

Usage

  1. Retrieve the victim and attacker IPs. Initiate SSH sessions to both:

    root@kitploit:~
    # Victim public IP
    aws cloudformation describe-stacks --stack-name=<STACK_NAME> \
    --query 'Stacks[0].Outputs[?OutputKey==`VictimPublicIp`].OutputValue' --output text
    
    # Attacker public IP
    aws cloudformation describe-stacks --stack-name=<STACK_NAME> \
    --query 'Stacks[0].Outputs[?OutputKey==`AttackerPublicIp`].OutputValue' --output text
    
  2. Retrieve the command used to to check if the victim is vulnerable. Execute it on the attacker session:

    root@kitploit:~
    aws cloudformation describe-stacks --stack-name=<STACK_NAME> \
    --query 'Stacks[0].Outputs[?OutputKey==`CheckVuln`].OutputValue' --output text
    
  3. (Optional) Retrieve the command used to see if the exploit works. Execute it on the attacker session:

    root@kitploit:~
    aws cloudformation describe-stacks --stack-name=<STACK_NAME> \
    --query 'Stacks[0].Outputs[?OutputKey==`RunExploit`].OutputValue' --output text
    
  4. Set up the attacker machine to listen for reverse tunnels:

    root@kitploit:~
    nc -lvp 31337
    
  5. Retrieve the command used to force the victim initiate a reverse tunnel to the attacker:

    root@kitploit:~
    aws cloudformation describe-stacks --stack-name=<STACK_NAME> \
    --query 'Stacks[0].Outputs[?OutputKey==`RunReverseShell`].OutputValue' --output text
    
  6. Open an additional SSH session to the attacker machine. Then, run the command retrieved in the previous step.

    Return to the reverse tunnel session. You now have CLI access to the victim machine.

Clean up

To destroy the test environment, issue the following command:

root@kitploit:~
aws cloudformation delete-stack --stack-name <STACK_NAME> 

Credit

This demo is based off hook-s3c's CVE-2018-11776-Python-PoC PoC code.

Download Tool