PoC Monitor
← All CVEs
CVE-2023-42793published 19 Sep 2023 16:57 UTCData: JSON · API

JetBrains TeamCity

JetBrains TeamCity Authentication Bypass Vulnerability

In JetBrains TeamCity before 2023.05.4 authentication bypass leading to RCE on TeamCity Server was possible

First public PoC 8 daysafter publication · 27 Sep 2023 · nuclei template
Public PoCs2522 on GitHub · 3 Exploit-DB, Metasploit or nuclei
CVSS9.8critical · scored by CNA · CWE-288
CISA KEV 4 Oct 202315 days after publication · ransomware use known

Timeline

Days relative to CVE publication
-3t=0+3+6+9+12+15CVE published19 Sep 2023 · t = 0First public PoC27 Sep 2023 · t+8dAdded to CISA KEV4 Oct 2023 · t+15d

First public PoC 8 days after publication; added to CISA KEV 15 days after publication. First PoC: nuclei template: JetBrains TeamCity < 2023.05.4 - Remote Code Execution (nuclei template, 27 Sep 2023).

PoC repositories

Found on GitHub.

22 PoCs · 3 pending · 1 informational

PoCs 22
RepositoryCreatedStarsAssessment
H454NSec/CVE-2023-42793 29 Sep 2023 +9.6 d 45 PoC
whoamins/CVE-2023-42793 5 Oct 2023 +16 d 0 PoC
Zenmovie/CVE-2023-42793 5 Oct 2023 +16 d 9 PoC
johnossawy/CVE-2023-42793_POC 7 Jan 2024 +110 d 0 PoC
StanleyJobsonAU/GhostTown 15 Jan 2024 +118 d 0 PoC via PoC Index
hotplugin0x01/CVE-2023-42793 21 Apr 2024 +215 d 2 PoC
brun0ne/teamcity-enumeration 23 Apr 2024 +217 d 0 PoC via PoC Index
B4l3rI0n/CVE-2023-42793 24 Apr 2024 +218 d 11 PoC
Zyad-Elsayed/CVE-2023-42793 24 Apr 2024 +218 d 11 PoC
junnythemarksman/CVE-2023-42793 27 May 2024 +250 d 1 PoC
YN1337/JetBrains-TeamCity- 4 Jun 2024 +259 d 0 PoC
HusenjanDev/CVE-2023-42793 5 Jul 2024 +290 d 1 PoC
hhesenjan/CVE-2023-42793 5 Jul 2024 +290 d 1 PoC
FlojBoj/CVE-2023-42793 24 Aug 2024 +340 d 0 PoC
SwiftSecur/teamcity-exploit-cve-2023-42793 20 Sep 2024 +1.0 y 1 PoC
becrevex/CVE-2023-42793 8 Oct 2024 +1.1 y 0 PoC
jakehomb/cve-2023-42793 14 Apr 2025 +1.6 y 0 PoC
syaifulandy/Nuclei-Template-CVE-2023-42793.yaml 11 May 2025 +1.6 y 1 Scanner
Flags · score 15
  • no network code found (normal for a local exploit)

Below the suspicion threshold (50); does not change the assessment.

cxdxnt/CVE-2023-42793 27 Nov 2025 +2.2 y 0 PoC
DDestinys/CVE-2023-42793 6 Jan 2026 +2.3 y 0 PoC
chengbochuan3/CVE-CICD-Security 13 Aug 2026 +2.9 y 0 PoC via PoC Index
burakacar6/CVE-2023-42793-TeamCity-Unauthenticated-RCE 5 Sep 2026 +3.0 y 0 PoC
Pending 3
RepositoryCreatedStarsAssessment
St0rm-85/CVE-2023-42793 unknown 0 Pending · repository unavailable (HTTP 404)
WhiteOwl-Pub/PoC-JetBrains-TeamCity-CVE-2023-42793 unknown 0 Pending · repository unavailable (HTTP 404)
syorik/CVE-2023-42793 unknown 0 Pending · repository unavailable (HTTP 404)
Informational 1
RepositoryCreatedStarsAssessment
CTIresource/Vendor-Verbiage 27 Sep 2026 +3.0 y 0 Informational · list

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.

Other public exploits

Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.

PoC characteristics

What to hunt for in your logs · from 22 PoC repos

POST /app/rest/users/id:1/tokens/RPC2

Key headers
Authorization: Bearer {var}
Body markers
"email" "password" "roles" "username" in application/x-www-form-urlencoded
Ports
8080, 8111
PoC User-Agent
Mozilla/5.0 (TeamCity Scanner) Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Assetnote/1.0.0 Mozilla/5.0 (https://github.com/H454NSec/CVE-2023-42793) Gecko/20100101 Firefox/113.0
Seen in
11 repos: B4l3rI0n/CVE-2023-42793, DDestinys/CVE-2023-42793, FlojBoj/CVE-2023-42793, H454NSec/CVE-2023-42793, YN1337/JetBrains-TeamCity-, Zyad-Elsayed/CVE-2023-42793, cxdxnt/CVE-2023-42793, hotplugin0x01/CVE-2023-42793, johnossawy/CVE-2023-42793_POC, syaifulandy/Nuclei-Template-CVE-2023-42793.yaml, whoamins/CVE-2023-42793
Evidence
B4l3rI0n/CVE-2023-42793/exploit.py:64 DDestinys/CVE-2023-42793/CVE-2023-42793.py:105 FlojBoj/CVE-2023-42793/exploit.py:64 FlojBoj/CVE-2023-42793/rce.py:16 H454NSec/CVE-2023-42793/CVE-2023-42793.py:46 YN1337/JetBrains-TeamCity-/ex.py:19

DELETE /app/rest/users/id:1/tokens/RPC2

Key headers
Authorization: Bearer {var}
Content-Type
application/x-www-form-urlencoded
Ports
8080, 8111
PoC User-Agent
Mozilla/5.0 (TeamCity Scanner) Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Assetnote/1.0.0 Mozilla/5.0 (https://github.com/H454NSec/CVE-2023-42793) Gecko/20100101 Firefox/113.0
Seen in
8 repos: DDestinys/CVE-2023-42793, FlojBoj/CVE-2023-42793, H454NSec/CVE-2023-42793, cxdxnt/CVE-2023-42793, hotplugin0x01/CVE-2023-42793, johnossawy/CVE-2023-42793_POC, syaifulandy/Nuclei-Template-CVE-2023-42793.yaml, whoamins/CVE-2023-42793
Evidence
DDestinys/CVE-2023-42793/CVE-2023-42793.py:86 FlojBoj/CVE-2023-42793/rce.py:15 H454NSec/CVE-2023-42793/CVE-2023-42793.py:34 cxdxnt/CVE-2023-42793/exploit-rce.py:16 cxdxnt/CVE-2023-42793/user_add_administrator.py:16 hotplugin0x01/CVE-2023-42793/exploit.py:41

POST /app/rest/users

Key headers
Authorization: Bearer {var}
Body markers
"username" "password" "email" "roles" "password":"TeamCity@2023" "email":"" "password":"@H454NSec" "password":"Main_password!!**" "email":"angry-admin@funnybunny.org" "password":"changeme" in application/json
Ports
8080, 8111
PoC User-Agent
Mozilla/5.0 (TeamCity Scanner) Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Assetnote/1.0.0 Mozilla/5.0 (https://github.com/H454NSec/CVE-2023-42793) Gecko/20100101 Firefox/113.0
Seen in
8 repos: B4l3rI0n/CVE-2023-42793, DDestinys/CVE-2023-42793, FlojBoj/CVE-2023-42793, H454NSec/CVE-2023-42793, YN1337/JetBrains-TeamCity-, Zyad-Elsayed/CVE-2023-42793, cxdxnt/CVE-2023-42793, johnossawy/CVE-2023-42793_POC
Evidence
B4l3rI0n/CVE-2023-42793/exploit.py:102 DDestinys/CVE-2023-42793/CVE-2023-42793.py:148 FlojBoj/CVE-2023-42793/exploit.py:102 H454NSec/CVE-2023-42793/CVE-2023-42793.py:76 YN1337/JetBrains-TeamCity-/ex.py:53 Zyad-Elsayed/CVE-2023-42793/exploit.py:102

POST /admin/admin.html

Query
item=diagnostics tab=dataDir file=config/internal.properties
Key headers
Authorization: Bearer {var}
Content-Type
application/x-www-form-urlencoded
Ports
8080
Seen in
2 repos: cxdxnt/CVE-2023-42793, syaifulandy/Nuclei-Template-CVE-2023-42793.yaml
Evidence
cxdxnt/CVE-2023-42793/exploit-rce.py:41 syaifulandy/Nuclei-Template-CVE-2023-42793.yaml/CVE-2023-42793.yaml:69

GET /app/rest/users

Key headers
Accept: application/json Authorization: Bearer {var}
Ports
8080, 8081, 8111
Seen in
1 repo: chengbochuan3/CVE-CICD-Security
Evidence
chengbochuan3/CVE-CICD-Security/CVE-2023-42793/README.md:115 chengbochuan3/CVE-CICD-Security/CVE-2023-42793/poc.sh:94

GET /app/rest/users/id:1

Key headers
Accept: application/json Authorization: Bearer {var}
Ports
8080, 8081, 8111
Seen in
1 repo: chengbochuan3/CVE-CICD-Security
Evidence
chengbochuan3/CVE-CICD-Security/CVE-2023-42793/poc.sh:101

GET /app/rest/users/id:1/token/RPC2

Seen in
1 repo: jakehomb/cve-2023-42793
Evidence
jakehomb/cve-2023-42793/main.go:61

GET /res/../app/rest/server

Key headers
Accept: application/json
Ports
8080, 8081, 8111
Seen in
1 repo: chengbochuan3/CVE-CICD-Security
Evidence
chengbochuan3/CVE-CICD-Security/CVE-2024-27199/poc.sh:91 chengbochuan3/CVE-CICD-Security/CVE-2024-27199/poc.sh:92

POST /app/rest/users/id:1/token/RPC2

Key headers
Authorization: Bearer {var}
Content-Type
application/json
Seen in
1 repo: jakehomb/cve-2023-42793
Evidence
jakehomb/cve-2023-42793/main.go:130

POST /app/rest/users/id:1/tokens/poc

Content-Type
application/json
Ports
8080, 8081, 8111
Seen in
1 repo: chengbochuan3/CVE-CICD-Security
Evidence
chengbochuan3/CVE-CICD-Security/CVE-2023-42793/README.md:88 chengbochuan3/CVE-CICD-Security/CVE-2023-42793/poc.sh:58

POST /hax

Query
jsp=/app/rest/users;.jsp
Key headers
Accept: application/json
Body markers
"username":"attacker" "password":"P@ssw0rd" "roles" "role" "roleId":"SYSTEM_ADMIN" "scope":"g" "username":"attacker2" in application/json
Ports
8080, 8081, 8111
Seen in
1 repo: chengbochuan3/CVE-CICD-Security
Evidence
chengbochuan3/CVE-CICD-Security/CVE-2024-27198/README.md:119 chengbochuan3/CVE-CICD-Security/CVE-2024-27198/poc.sh:97 chengbochuan3/CVE-CICD-Security/CVE-2024-27198/poc.sh:101 chengbochuan3/CVE-CICD-Security/CVE-2024-27199/README.md:117

POST /j_spring_security_check

Body markers
j_username= j_password=TeamCity@2023 in application/x-www-form-urlencoded
Ports
8111
Seen in
1 repo: DDestinys/CVE-2023-42793
Evidence
DDestinys/CVE-2023-42793/CVE-2023-42793.py:169

POST /update/...;/app/rest/users/id:1/tokens/poc

Content-Type
application/json
Ports
8080, 8081, 8111
Seen in
1 repo: chengbochuan3/CVE-CICD-Security
Evidence
chengbochuan3/CVE-CICD-Security/CVE-2023-42793/README.md:96 chengbochuan3/CVE-CICD-Security/CVE-2023-42793/poc.sh:67

Regex

Generated from PoC characteristics; not yet reviewed. Matches the request path and query.

POST /app/rest/users/id:1/tokens/RPC2
(?i)^/app/rest/users/id:1/tokens/RPC2(?:[?#].*)?$
DELETE /app/rest/users/id:1/tokens/RPC2
(?i)^/app/rest/users/id:1/tokens/RPC2(?:[?#].*)?$
POST /app/rest/users
(?i)^/app/rest/users(?:[?#].*)?$
POST /admin/dataDir.html
(?i)^/admin/dataDir\.html\?(?:.*&)?action=edit.*fileName=config/internal\.properties.*content=rest\.debug\.processes\.enable=true
POST /app/rest/debug/processes
(?i)^/app/rest/debug/processes\?(?:.*&)?exePath=awk.*params=.*exePath=.*exePath=cmd\.exe.*params=/c whoami.*exePath=/bin/sh.*params=-c whoami

Suricata

Template generated from PoC characteristics. Review before deploying.

POST /app/rest/users/id:1/tokens/RPC2
alert http any any -> $HOME_NET [8080,8111] (msg:"GG PoC-Monitor CVE-2023-42793 JetBrains TeamCity exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/app/rest/users/id:1/tokens/RPC2"; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"|22|email|22|"; http.request_body; content:"|22|password|22|"; http.request_body; content:"|22|roles|22|"; http.request_body; content:"|22|username|22|"; reference:url,poc.griffinguard.io/cve/CVE-2023-42793; classtype:web-application-attack; sid:9854009; rev:1;)
DELETE /app/rest/users/id:1/tokens/RPC2
alert http any any -> $HOME_NET [8080,8111] (msg:"GG PoC-Monitor CVE-2023-42793 JetBrains TeamCity exploit attempt"; flow:established,to_server; http.method; content:"DELETE"; http.uri; content:"/app/rest/users/id:1/tokens/RPC2"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2023-42793; classtype:web-application-attack; sid:9725174; rev:1;)
POST /app/rest/users
alert http any any -> $HOME_NET [8080,8111] (msg:"GG PoC-Monitor CVE-2023-42793 JetBrains TeamCity exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/app/rest/users"; http.header; content:"Authorization: Bearer "; nocase; http.request_body; content:"|22|username|22|"; http.request_body; content:"|22|password|22|"; http.request_body; content:"|22|email|22|"; http.request_body; content:"|22|roles|22|"; http.request_body; content:"|22|password|22|:|22|TeamCity@2023|22|"; http.request_body; content:"|22|email|22|:|22||22|"; http.request_body; content:"|22|password|22|:|22|@H454NSec|22|"; http.request_body; content:"|22|password|22|:|22|Main_password!!**|22|"; http.request_body; content:"|22|email|22|:|22|angry-admin@funnybunny.org|22|"; http.request_body; content:"|22|password|22|:|22|changeme|22|"; reference:url,poc.griffinguard.io/cve/CVE-2023-42793; classtype:web-application-attack; sid:9361709; rev:1;)
POST /admin/dataDir.html
alert http any any -> $HOME_NET [8080,8111] (msg:"GG PoC-Monitor CVE-2023-42793 JetBrains TeamCity exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/admin/dataDir.html"; http.uri; content:"action=edit"; http.uri; content:"fileName=config/internal.properties"; http.uri; content:"content=rest.debug.processes.enable=true"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2023-42793; classtype:web-application-attack; sid:9349078; rev:1;)
POST /app/rest/debug/processes
alert http any any -> $HOME_NET [8080,8111] (msg:"GG PoC-Monitor CVE-2023-42793 JetBrains TeamCity exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/app/rest/debug/processes"; http.uri; content:"exePath=awk"; http.uri; content:"params="; http.uri; content:"exePath="; http.uri; content:"exePath=cmd.exe"; http.uri; content:"params=/c whoami"; http.uri; content:"exePath=/bin/sh"; http.uri; content:"params=-c whoami"; http.header; content:"Authorization: Bearer "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2023-42793; classtype:web-application-attack; sid:9189756; rev:1;)

Sigma

Template generated from PoC characteristics. Review before deploying.

POST /app/rest/users/id:1/tokens/RPC2
title: JetBrains TeamCity exploit attempt (CVE-2023-42793)
id: gg-pocmon-cve-2023-42793-9854009
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-42793. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2023-42793
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/app/rest/users/id:1/tokens/RPC2'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2023.42793
DELETE /app/rest/users/id:1/tokens/RPC2
title: JetBrains TeamCity exploit attempt (CVE-2023-42793)
id: gg-pocmon-cve-2023-42793-9725174
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-42793. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2023-42793
logsource:
  category: webserver
detection:
  selection:
    cs-method: DELETE
    cs-uri-stem|contains|all:
      - '/app/rest/users/id:1/tokens/RPC2'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2023.42793
POST /app/rest/users
title: JetBrains TeamCity exploit attempt (CVE-2023-42793)
id: gg-pocmon-cve-2023-42793-9361709
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-42793. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2023-42793
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/app/rest/users'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2023.42793
POST /admin/dataDir.html
title: JetBrains TeamCity exploit attempt (CVE-2023-42793)
id: gg-pocmon-cve-2023-42793-9349078
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-42793. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2023-42793
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/admin/dataDir.html'
    cs-uri-query|contains|all:
      - 'action=edit'
      - 'fileName=config/internal.properties'
      - 'content=rest.debug.processes.enable=true'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2023.42793
POST /app/rest/debug/processes
title: JetBrains TeamCity exploit attempt (CVE-2023-42793)
id: gg-pocmon-cve-2023-42793-9189756
status: experimental
description: Request pattern taken from public PoCs for CVE-2023-42793. Generated, not reviewed.
references:
  - https://poc.griffinguard.io/cve/CVE-2023-42793
logsource:
  category: webserver
detection:
  selection:
    cs-method: POST
    cs-uri-stem|contains|all:
      - '/app/rest/debug/processes'
    cs-uri-query|contains|all:
      - 'exePath=awk'
      - 'params='
      - 'exePath='
      - 'exePath=cmd.exe'
      - 'params=/c whoami'
      - 'exePath=/bin/sh'
      - 'params=-c whoami'
  condition: selection
falsepositives:
  - Authorized vulnerability scanning
level: critical
tags:
  - attack.initial_access
  - attack.t1190
  - cve.2023.42793