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
CS4239-Spring4Shell-POC — CVE-2022-22965 proof of concept for CS4239 report | Kitploit
Tools/GitHubGitHub/xenosf/cs4239-spring4shell-poc
Vulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHubxenosf/cs4239-spring4shell-poc

CS4239-Spring4Shell-POC

CVE-2022-22965 proof of concept for CS4239 report

View Repository
9 months 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

CS4239-Spring4Shell-POC

Proof of concept for CVE-2022-22965 (Spring4Shell) for CS4239 G410 report. Adapted from this PoC to demonstrate unpatched & patched behavior.

Running the demo

There are 2 example programs (dockerized) in this repository with identical source code. One uses a vulnerable version of Spring Boot while the other uses a patched version. Tomcat also released a patch for this vulnerability, but the same vulnerable version of Tomcat is used for this demo to isolate the effects of the Spring patch.

To run demo apps:

root@kitploit:~
docker compose build
docker compose up
  • vulnerable:
    • localhost:8080/helloworld/greeting
    • tomcat 9.0.56 (vulnerable), spring boot 2.6.3 (depends on vulnerable spring framework 5.3.15)
  • patched:
    • localhost:8081/helloworld/greeting
    • tomcat 9.0.56 (vulnerable), spring boot 2.6.6 (depends on patched spring framework 5.3.18)

To run exploit:

root@kitploit:~
# vulnerable
python exploit.py --url "http://localhost:8080/helloworld/greeting"

# patched
python exploit.py --url "http://localhost:8081/helloworld/greeting"

If exploit works, a new page that allows us to run commands will be present. Example of running id:

root@kitploit:~
http://localhost:8080/shell.jsp?cmd=id

Exploit does not work for patched version - shell.jsp is not injected.

Download Tool