Skip to content
RCE Write-up Beginner

How I Found My First RCE !

An Apache ActiveMQ instance on a non-standard port was found to be vulnerable to CVE-2023-46604, allowing remote code execution. The author applied a public exploit and it worked, achieving RCE.

mchklt Follow

Published on mchklt.medium.com

As-salamu alaykum everyone! In this article, I’ll talk about my first RCE experience.

ABDELKARIM MOUCHQUELITA, on mchklt.medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the ActiveMQ version was unpatched and vulnerable to CVE-2023-46604, which allows remote code execution.

Impact

An attacker could execute arbitrary code on the server, leading to full compromise.

What the attacker needed

Internet-facing ActiveMQ on non-standard port; unpatched ActiveMQ version

How it was found

  1. Enumerate subdomains using Subfinder and Amass.
  2. Scan open ports on the discovered hosts using Naabu.
  3. Manually check hosts with open ports between 3 and 10, and use Nmap to identify services on strange ports.
  4. Identify Apache ActiveMQ on port 54663 of bamboo.target.com.
  5. Apply the public exploit for CVE-2023-46604, which worked.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

The researcher scanned a company's servers and found one running an old version of a message-queue program called ActiveMQ. That version had a known flaw that lets an attacker run their own commands on the server. The researcher used a ready-made exploit for that flaw and it worked.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by mchklt

View all

3 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.