$$ Red43 $$

image.png

Want to start this Docker container locally?

docker run -d --restart always --name flag-red43 --cap-add=NET_ADMIN -p 9036:80 -p 9037:22 joshbeck2024/ctf-teamcity-cve-2023-42793-red31

IP Address: 172.25.200.200

Port 9036: Web

Port 9037: SSH

The front page helpfully gives us the version number

image.png

An explanation of the CVE related to this version of TeamCity can be found here.

What are we exploiting?

Proof of Concept:

Looking at the code before you run it is always advisable!