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.
Readme
# ExploitScript-CVE-2023-46604

## Disclaimer

This repository contains proof-of-concept code for CVE-2023-466064 and is intended **strictly for educational purposes**. The authors and contributors do not endorse any illegal activity. The information presented here is for academic, security research, and testing purposes, and for the current resolution of the machine Broker from HackTheBox.

By using this exploit, you agree to take full responsibility for your actions. The authors assume no liability and are not responsible for any misuse or damage caused by this program. It is your responsibility to comply with all applicable laws.

## Overview

CVE-2023-466064 is a vulnerability that affects [ActiveMQ Openwire protocol from Apache]. This flaw allows attackers to [execute code on thge server where ActuveMQ service is running].

This repository aims to automatize the process of sending a hand crafted request to the server.

## Repository contents 
- `config.xml` - XML file for the proof-of-concept
- `shell.py` - the pyrthon exploit

## Requisits
Ensure that you have isntalled on your computer : 
- Python 3.X
- The URL for the `config.xml` accesible from de ActiveMQ server's target
- The network acces for the vulnerability

# Usage 

```
python exploit.py -i <target-ip> -p <target-port> -u <url-to-config.xml>
```
File Snapshot

[4.0K] /data/pocs/8c7bfad0ce2eea204494bf026743cae6fd43be38 ├── [1001] config.xml ├── [1.0K] LICENSE ├── [1.3K] README.md └── [1.8K] shell.py 0 directories, 4 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 →