
CVE-2007-4559 - Polemarch exploit
Full working exploit for Polemarch server https://www.polemarch.org/, using CVE-2007-4559, allowing:
Proof of concept using https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4559 and based on the work from https://www.trellix.com/en-us/about/newsroom/stories/research/tarfile-exploiting-the-world.html.
We want to be able to deploy the following files into a Polemarch server:
Note: in the real exploit we would change some names to avoid detection.
In order to deploy the malware we will have to set up the following:
We will need to compile the rootkit shared library and the shellcode:
$(rootkit): make
$(shellcode): gcc -z execstack -m32 -o shellcode shell.c
We have created a docker-compose which will:
$: docker compose build
$: docker compose up -d
Log in to the polemarch server using default password (admin/admin) and create a project with the compromised tar file:

Now, next time the docker is restarted, the miner and tor will be executed into the polemarh server.
This project is for research purposes only and should not be used for any illegal or malicious activities. The creators of this project are not responsible for any harm or damage caused by the misuse of this software.