Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-23638 PoC — Apache Dubbo Deserialization Vulnerability Gadgets Bypass

Source
Associated Vulnerability
Title:Apache Dubbo Deserialization Vulnerability Gadgets Bypass (CVE-2023-23638)
Description:A deserialization vulnerability existed when dubbo generic invoke, which could lead to malicious code execution. This issue affects Apache Dubbo 2.7.x version 2.7.21 and prior versions; Apache Dubbo 3.0.x version 3.0.13 and prior versions; Apache Dubbo 3.1.x version 3.1.5 and prior versions.
Description
PoC of Apache Dubbo CVE-2023-23638
Readme
# CVE-2023-23638

仅供学习研究

ZooKeeper 自备

测试环境为 Java 8, 其它版本尚未测试, 不保证可用性

复现时需要为 DemoComsumer 添加 VM 参数: `-Ddubbo.hessian.allowNonSerializable=true`, 详情参考 [https://su18.org/post/hessian/#serializable](https://su18.org/post/hessian/#serializable)

分析文章: [https://exp10it.io/2023/03/apache-dubbo-cve-2023-23638-%E5%88%86%E6%9E%90/](https://exp10it.io/2023/03/apache-dubbo-cve-2023-23638-%E5%88%86%E6%9E%90/)

POC 的本质是利用某个 class 修改 properties 以绕过限制, 代码给的是 JNDI 注入, 可以参考 [CVE-2023-23638 Apache Dubbo JavaNative反序列化漏洞分析](https://mp.weixin.qq.com/s?__biz=Mzg3OTcyNjM1MQ==&mid=2247483788&idx=1&sn=7954ad20fec203469a13a09050536a1c) 自行修改成反序列化的利用方式
File Snapshot

[4.0K] /data/pocs/537e2db5a01f4c59e95400fd807c9eb3b5b2c624 ├── [4.5K] pom.xml ├── [ 822] README.md └── [4.0K] src └── [4.0K] main ├── [4.0K] java │   └── [4.0K] org │   └── [4.0K] apache │   └── [4.0K] dubbo │   └── [4.0K] samples │   ├── [4.0K] api │   │   └── [ 107] HelloService.java │   ├── [2.2K] DemoConsumer.java │   ├── [ 496] DemoProvider.java │   └── [4.0K] impl │   └── [ 233] HelloServiceImpl.java └── [4.0K] resources ├── [1.1K] log4j.properties └── [4.0K] spring ├── [1.8K] generic-type-consumer.xml └── [1.8K] generic-type-provider.xml 11 directories, 9 files
Shenlong Bot has cached this for you
Remarks
    1. It is advised to access via the original source first.
    2. Local POC snapshots are reserved for subscribers — if the original source is unavailable, the local mirror is part of the paid plan.
    3. Mirroring, verifying, and maintaining this POC archive takes ongoing effort, so local snapshots are a paid feature. Your subscription keeps the archive online — thank you for the support. View subscription plans →