http
At port 80.

In the useful link, It is revealed that login page is in other vhost.
let's add this to hosts file.
Then try to access the host.

Found version related information of TeamCity.
Doing Search reveal RCE exploit.
This is not exploitable by above code.
This is version JetBrains TeamCity 2023.05.4 it has been fix in this version.

Checking Reset link:
It is asking for user email id. But we dont have it.

Working Exploit
I found one exploit related to TeamCity before the 2023.11.4. This means the version is also vulnerable.
I will be using above exploit and not one which is mentioned in Explaination.
Follow the exploit.


I changed the shell from sh to bash.
If fails in the first try then run again. It will work.

Then, I reran the command and got the shell.

Now run the bash reverse shell to get the shell.

This is showing error but in the listener I got the shell.

Last updated
Was this helpful?