关联漏洞
标题:
Apache ActiveMQ 代码问题漏洞
(CVE-2023-46604)
描述:Apache ActiveMQ是美国阿帕奇(Apache)基金会的一套开源的消息中间件,它支持Java消息服务、集群、Spring Framework等。 Apache ActiveMQ 5.15.16之前、5.16.7之前、5.17.6之前或5.18.3之前版本存在代码问题漏洞,该漏洞源于允许具有代理网络访问权限的远程攻击者通过操纵 OpenWire 协议中的序列化类类型来运行任意 shell 命令。
描述
Repository to exploit CVE-2023-46604 reported for ActiveMQ
介绍
# Active MQ CVE-2023-46604 exploit
This repository is a guide with examples on how to exploit the [CVE-2023-46604](https://activemq.apache.org/news/cve-2023-46604)
The exploit takes advantage of the usage of reflection for instantiating Exception classes through a malicious command
that instead of being a valid command, it sends as the exception class a Spring class to load beans and as the
string constructor parameter an URL from where to download an XML file with the Spring Bean definitions.
This Spring Bean is in fact a `java.lang.ProcessBuilder` which will run any bash command with the same user permissions as the
one that is running the Java Active MQ client or server.
文件快照
[4.0K] /data/pocs/ae4a0ea605c03752f0bc08de486ee5c90c792f9f
├── [4.0K] activemq-exploit
│ ├── [4.3K] pom.xml
│ └── [4.0K] src
│ └── [4.0K] main
│ ├── [4.0K] java
│ │ ├── [4.0K] malicious
│ │ │ └── [4.0K] http
│ │ │ └── [2.3K] HttpServer.java
│ │ ├── [4.0K] victim
│ │ │ └── [ 911] ActiveMQClient.java
│ │ └── [4.0K] vulnerability
│ │ └── [1.5K] Vulnerability.java
│ └── [4.0K] resources
│ └── [ 637] exploit.xml
├── [ 687] README.md
└── [4.0K] scripts
├── [6.0K] client_exploit.py
└── [5.6K] server_exploit.py
10 directories, 8 files
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。