Sploitus

Exploit for Oracle Java findMethod findClass Security Bypass

saint · 2012-08-30

Exploit Code

MARKDOWN40 lines
## https://sploitus.com/exploit?id=SAINT:689784CB7D45280770C605D47770F3CA
Added: 08/30/2012  
CVE: [CVE-2012-4681](<https://vulners.com/cve/CVE-2012-4681>)  
BID: [55213](<http://www.securityfocus.com/bid/55213>)  
OSVDB: [84867](<http://www.osvdb.org/84867>)  


### Background

Java is a programming language that compiles programs to bytecode, which is then executed inside a Java Virtual Machine. This is optimal for applications that must run on various hardware platforms, such as web applets. 

### Problem

In Java 7.0 prior to Update 7, two vulnerabilities exist that allow malicious applets to execute arbitrary code outside the Java security sandbox. If an attacker were to host such a malicious applet on a website, they could execute arbitrary code on the systems of any vulnerable users who load the applet. 

### Resolution

Update to [ Java 7 Update 7](<http://www.oracle.com/technetwork/topics/security/alert-cve-2012-4681-1835715.html>). 

### References

<http://www.oracle.com/technetwork/topics/security/alert-cve-2012-4681-1835715.html>  
<http://krebsonsecurity.com/2012/08/attackers-pounce-on-zero-day-java-exploit/>  
<http://www.techworld.com.au/article/434757/unpatched_java_vulnerability_exploited_targeted_attacks_researchers_say/>  


### Limitations

This exploit has been tested against Oracle JRE 7 Update 6 on the following platforms:  


  * Windows XP SP3 English (DEP OptIn) and Windows 7 SP1 (DEP OptIn) using Internet Explorer 8 or 9
  * Apple Mac OS X 10.7.4 using Safari
  * Ubuntu Desktop 12.04 LTS using Firefox

### Platforms

Windows  
Mac OS X  
Linux