Giter Club home page Giter Club logo

jre8u20_gadget's People

Contributors

feihong-cs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

jre8u20_gadget's Issues

一个构造是无效的

我测试后发现,TestCase2.java中的弹窗其实是构造时触发的,不是反序列化时触发的

POC报错"java.lang.NullPointerException"

调试环境:JDK8u121
报错信息:
image
debug了一下,在HashSet#readObject进行第三个元素proxy的反序列化E e = (E) s.readObject();时,回抛出该异常,原因是Method threw 'java.lang.NullPointerException' exception. Cannot evaluate com.sun.proxy.$Proxy0.toString(),也就是说这个proxy没有toString方法(但是调试jdk7u21这个洞的时候proxy是可以正常恢复的),继续跟进到ObjectInputStream#readOrdinaryObject方法中时,可以发现下面的obj会接收这个异常,继续跟进desc.newInstance(),一直到ConStructor#newInstance中,在T inst = (T) ca.newInstance(initargs);抛出上面的异常。
image
也分析了一下师傅写的修改反序列化字节码的部分,没感觉有啥地方错了,可能猜测是最后proxy的Handle引用那里出了问题??
如果师傅有什么想法的话,求指教

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.