Giter VIP home page Giter VIP logo

spring-rce-poc's Introduction

Spring RCE (CVE-2022-22965) Proof of Concept

This is only for research purposes and MUST NO be used for malicous purposes

The purpose of this is to be able to research the Remote Code Execution vulnerabilty within the Spring framework. While the entire impact of this vulnerability is unknown at this stage, part of the purpose of this project is to help others be able to research and experiment with the vulnerability to test its impact and scope.

Usage

  1. Run the script build.sh to build the app and Docker image
  2. Start the webapp by running the script run-webapp.sh (hit Ctrl + C to stop the webapp)
  3. With the webapp running, run the srcipt run-poc.sh to run the exploit PoC
  4. Also with the webapp running, you can run the script run-poc-rest.sh to run the exploit PoC against the REST interface

build.sh

This script will build both the source code as well as Docker image. By default it will use the default Dockerfile to build the Docker image. You can specify a custom Dockerfile to use by providing the file name as an argument to the script. For example:

./build.sh Dockerfile-jetty

This will use the Dockerfile-jetty Docker file to build the webapp within a Jetty app server.

run-poc.sh & run-poc-rest.sh

The scripts run-poc.sh and run-poc-rest.sh allow for a customer command to be passed as an argument:

./run-poc.sh "<command-goes-here>"

So for example:

./run-poc.sh "cat /etc/passwd"

Credits

The following sources have been helpful in developing this:

Links

spring-rce-poc's People

Contributors

seanwrightsec avatar

Stargazers

5l1v3r1 avatar  avatar Vinod Anandan avatar Sibananda Nayak avatar Ondrej Führer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.