CVE-2022-39197 Fortra Cobalt Strike Teamserver Cross-Site Scripting (XSS)

Exploited in the wild Medium 6.1 Published Updated

Remote attackers can execute HTML on the Cobalt Strike teamserver by modifying the username field in a payload, potentially compromising the server.

Exploited in the wild
Since 30 Mar 2023
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2022-39197?

CVE-2022-39197 is a medium-severity cross-site scripting vulnerability in n/a, published on 22 Sep 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

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).

Weakness: CWE-79

Which versions are affected by CVE-2022-39197?

It affects 1 product.

Products include Helpsystems Cobalt Strike.

How do I fix CVE-2022-39197?

No fix has been published for CVE-2022-39197 yet. Limit exposure of the affected software until one is available. US federal agencies must fix it by 20 Apr 2023.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2022-39197 being exploited?

Yes. Attackers have exploited CVE-2022-39197 in the wild since at least 30 Mar 2023.

Public exploit code: 15 proofs of concept on GitHub.

Sources

Also known as GHSA-9jq3-pg7g-c4wc.

Is CVE-2022-39197 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free