Apache James Server

Apache James Server 2.3.2 exposes multiple mail services and a Remote Administration service. The Remote Administration service can be abused for unauthenticated command execution that triggers when a user logs in.

Discovery

Useful indicators:

32822/tcp open  james-admin  JAMES Remote Admin 2.3.2
32823/tcp open  nntp         JAMES nntpd (posting ok)
32824/tcp open  pop3         JAMES pop3d 2.3.2
32825/tcp open  smtp         JAMES smtpd 2.3.2
32826/tcp open  ssh          OpenSSH 7.6p1 Ubuntu

The vulnerable service is:

james-admin JAMES Remote Admin 2.3.2

RCE

Public PoC used:

https://github.com/CyberQuestor-infosec/Apache-James-Server-2.3.2_Unauthenticated-Remote-Command-Execution-RCE
https://www.exploit-db.com/exploits/35513
https://vk9-sec.com/apache-james-server-2-3-2-cve-2015-7611/

Update the PoC ports for the target service layout, then start a listener:

nc -nlvp 80

Run the exploit:

Successful exploit output:

Trigger the payload by logging in to SSH, then catch the shell:

Reboot-Triggered Payload

Another James 2.3.2 path writes a reverse-shell command into the target's init script and then reboots the service host:

Last updated