Fortra Cobalt Strike
Fortra Cobalt Strike Teamserver Cross-Site Scripting (XSS) Vulnerability
An XSS (Cross Site Scripting) vulnerability was found in HelpSystems Cobalt Strike through 4.7 that allowed a remote attacker to execute HTML on the Cobalt Strike teamserver. To exploit the vulnerability, one must first inspect a Cobalt Strike payload, and then modify the username field in the payload (or create a new payload with the extracted information and then modify that username field to be malformed).
Timeline
Days relative to CVE publicationFirst public PoC 18 h before publication; added to CISA KEV 189 days after publication. First PoC: safe3s/CVE-2022-39197 (created 21 Sep 2022, found by us: backfilled).
PoC repositories
Found on GitHub.7 PoCs · 1 pending · 7 informational · 2 suspicious or fake
PoCs 7
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| safe3s/CVE-2022-39197 | 21 Sep 2022 −18 h | 3 | PoC via PoC Index |
| burpheart/cve-2022-39197 | 22 Sep 2022 +14 h | 73 | PoC |
| xzajyjs/CVE-2022-39197-POC | 23 Sep 2022 +1.3 d | 46 | PoC |
| yqcs/CSPOC | 24 Sep 2022 +2.3 d | 17 | PoC |
| hluwa/cobaltstrike_swing_xss2rce | 27 Sep 2022 +5.4 d | 7 | PoC
Flags · score 40
Below the suspicion threshold (50); does not change the assessment. |
| adeljck/CVE-2022-39197 | 24 Nov 2022 +64 d | 2 | PoC |
| Romanc9/Gui-poc-test | 3 Dec 2023 +1.2 y | 2 | PoC via PoC Index |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| PyterSmithDarkGhost/CVE-2022-39197-POC | unknown | 0 | Pending · repository unavailable (HTTP 404) |
Informational 7
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| zeoday/cobaltstrike4.5_cdf-1 | 22 Sep 2022 +2 h | 0 | Informational · write-up
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| purple-WL/Cobaltstrike-RCE-CVE-2022-39197 | 24 Sep 2022 +2.6 d | 1 | Informational · write-up |
| lovechoudoufu/about_cobaltstrike4.5_cdf | 26 Sep 2022 +4.2 d | 18 | Informational · write-up
Flags · score 35
Below the suspicion threshold (50); does not change the assessment. |
| burpheart/CVE-2022-39197-patch | 26 Sep 2022 +4.3 d | 315 | Informational · detection
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| 4nth0ny1130/CVE-2022-39197-fix_patch | 9 Oct 2022 +17 d | 7 | Informational · detection
Flags · score 15
Below the suspicion threshold (50); does not change the assessment. |
| luelueking/Java-CVE-Lists | 15 Jan 2023 +116 d | 18 | Informational · list |
| xiao-zhu-zhu/pig_CS4.4 | 28 Apr 2023 +218 d | 37 | Informational · write-up
Flags · score 20
Below the suspicion threshold (50); does not change the assessment. |
Suspicious or fake 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| its-arun/CVE-2022-39197 | 14 Oct 2022 +22 d | 386 | Fake |
| TheCryingGame/CVE-2022-39197-RCE | 22 Oct 2022 +30 d | 13 | Fake |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 7 PoC reposGET /{var}{var}
- Key headers
Cookie: {var}- Ports
- 3000
- Seen in
- 1 repo: xzajyjs/CVE-2022-39197-POC
- Evidence
- xzajyjs/CVE-2022-39197-POC/cve-2022-39197-poc.py:71
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/[^/?#]*[^/?#]*(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2022-39197 Fortra Cobalt Strike exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.header_names; content:"Cookie"; nocase; reference:url,poc.griffinguard.io/cve/CVE-2022-39197; classtype:web-application-attack; sid:9494469; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Fortra Cobalt Strike exploit attempt (CVE-2022-39197)
id: gg-pocmon-cve-2022-39197-9494469
status: experimental
description: Request pattern taken from public PoCs for CVE-2022-39197. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2022-39197
logsource:
category: webserver
detection:
selection:
cs-method: GET
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2022.39197