feihong-cs / jre8u20_gadget Goto Github PK
View Code? Open in Web Editor NEWjre8u20 gadget
jre8u20 gadget
我测试后发现,TestCase2.java中的弹窗其实是构造时触发的,不是反序列化时触发的
调试环境:JDK8u121
报错信息:
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);
抛出上面的异常。
也分析了一下师傅写的修改反序列化字节码的部分,没感觉有啥地方错了,可能猜测是最后proxy的Handle引用那里出了问题??
如果师傅有什么想法的话,求指教
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.