Rapid7 Vulnerability & Exploit Database

Java AtomicReferenceArray Type Violation Vulnerability

Back to Search

Java AtomicReferenceArray Type Violation Vulnerability

Disclosed
02/14/2012
Created
05/30/2018

Description

This module exploits a vulnerability due to the fact that AtomicReferenceArray uses the Unsafe class to store a reference in an array directly, which may violate type safety if not used properly. This allows a way to escape the JRE sandbox, and load additional classes in order to perform malicious operations.

Author(s)

  • Jeroen Frijters
  • sinn3r <sinn3r@metasploit.com>
  • juan vazquez <juan.vazquez@metasploit.com>
  • egypt <egypt@metasploit.com>

Platform

Java,Linux,OSX,Solaris,Windows

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/browser/java_atomicreferencearray
msf exploit(java_atomicreferencearray) > show targets
    ...targets...
msf exploit(java_atomicreferencearray) > set TARGET < target-id >
msf exploit(java_atomicreferencearray) > show options
    ...show and set options...
msf exploit(java_atomicreferencearray) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;