Rapid7 Vulnerability & Exploit Database

JetBrains TeamCity Unauthenticated Remote Code Execution

Back to Search

JetBrains TeamCity Unauthenticated Remote Code Execution

Disclosed
09/19/2023
Created
09/28/2023

Description

This module exploits an authentication bypass vulnerability to achieve unauthenticated remote code execution against a vulnerable JetBrains TeamCity server. All versions of TeamCity prior to version 2023.05.4 are vulnerable to this issue. The vulnerability was originally discovered by SonarSource.

Author(s)

  • sfewer-r7

Platform

Linux,Windows

Architectures

cmd

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/multi/http/jetbrains_teamcity_rce_cve_2023_42793
msf exploit(jetbrains_teamcity_rce_cve_2023_42793) > show targets
    ...targets...
msf exploit(jetbrains_teamcity_rce_cve_2023_42793) > set TARGET < target-id >
msf exploit(jetbrains_teamcity_rce_cve_2023_42793) > show options
    ...show and set options...
msf exploit(jetbrains_teamcity_rce_cve_2023_42793) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;