📡 Apache James Server 2.3.2 — Authenticated Remote Code Execution (Exploit-DB 50347)
Apache James Server 2.3.2 exposes a remote admin interface on port 4555 that can be accessed with default or known credentials, allowing an attacker to create a user and then send a malicious email through SMTP that triggers remote code execution. The attacker gains a reverse shell as the James server user.
Published on osintteam.blog
Security vulnerabilities in mail servers can have devastating consequences, especially when an attacker can escalate a foothold to full remote code execution. In this post, I’ll walk you through my lab-based exploitation of a critical authenticated RCE vulnerability in Apache James Server 2.3.2, based on Exploit-DB…
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 a combination of default or weak credentials on the remote admin interface and unsafe processing of email content that allows code execution.
Impact
An attacker with valid admin credentials could achieve remote code execution and obtain a shell as the James server user, but the exploit requires both the admin port and SMTP port to be reachable and valid credentials to be available.
What the attacker needed
Valid credentials for remote admin; port 4555 reachable; port 25 reachable
The fix
Upgrade to a newer version of Apache James Server, disable or restrict access to the remote admin port, and implement strong authentication and monitoring on SMTP and admin services.
How it was found
- Log into the remote admin service on port 4555 using default or known credentials.
- Create a new user through the admin interface.
- Send a malicious email through the SMTP service on port 25.
- The payload is processed and a reverse shell is opened.
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.
A mail server program called Apache James has an administration port that lets someone log in and add users. If that port is left open with weak or default passwords, an attacker can log in, create a user, and then send a specially crafted email that makes the server run the attacker's commands. This gives the attacker control of the server, known as remote code execution.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.