Coder Social home page Coder Social logo

tuian / dubbo-apache-commons-collections-bug Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hengyunabc/dubbo-apache-commons-collections-bug

0.0 1.0 0.0 0 B

演示dubbo rpc Apache commons collections 的Java序列化漏洞

Shell 47.37% Batchfile 33.60% Java 19.03%

dubbo-apache-commons-collections-bug's Introduction

演示Apache Commons Collections远程代码执行漏洞,在dubbo rpc上验证。

漏洞参考:http://blog.chaitin.com/2015-11-11_java_unserialize_rce/

漏洞演示

下载代码

git clone [email protected]:hengyunabc/dubbo-apache-commons-collections-bug.git

启动dubbo service server

cd dubbo-apache-commons-collections-bug
mvn exec:java -Dexec.mainClass="Provider"

启动dubbo client

cd dubbo-apache-commons-collections-bug
mvn exec:java -Dexec.mainClass="Consumer"

调用成功的话,可以发现多了 /tmp/xxxx 文件。

如果是windows,可以修改下代码,把 src/main/java/Consumer.java 里的command改为 calc.exe :

                //windows下面可换为 calc.exe
                String command = "touch /tmp/xxxx";

dubbo-apache-commons-collections-bug's People

Contributors

hengyunabc avatar

Watchers

 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.