Description: he exploit takes advantage of two issues in JDK 7: The ClassFinder and
MethodFinder.findMethod(). Both were newly introduced in JDK 7. ClassFinder is a
replacement for classForName back in JDK 6. It allows untrusted code to obtain a
reference and have access to a restricted package in JDK 7, which can be used to
abuse sun.awt.SunToolkit (a restricted package). With sun.awt.SunToolkit, we can
actually invoke getField() by abusing findMethod() in Statement.invokeInternal()
(but getField() must be public, and that's not always the case in JDK 6) in order
to access Statement.acc's private field, modify AccessControlContext, and then
disable Security Manager. Once Security Manager is disabled, we can execute
arbitrary Java code.
Our exploit has been tested successfully against multiple platforms, including:
IE, Firefox, Safari, Chrome; Windows, Ubuntu, OS X, Solaris, etc Demonstration Of Metasploit Framework With BackTrack 5 R3
----------------------------------------------------------
Author:Mzer0
http://www.4xsecurityteam.com/
https://twitter.com/4XSecurityTeam
Disclaimer
----------
Educational Purposes Only
Tested on Windows 7(x86)
-------------------------
Chrome 21.0.1180.83 m
Oracle Java SE jre-7u1 (1.7.0_01-b08)
Tags: Metasploit , Java 0 Day , Chrome , Oracle Java SE ,
Disclaimer: We are a infosec video aggregator and this video is linked from an external website. The original author may be different from the user re-posting/linking it here. Please do not assume the authors to be same without verifying.