CVE-2022-39197
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).
Summary dbcve.org
Cobalt Strike versions through 4.7 contain a stored XSS vulnerability in the teamserver's payload processing. Attackers can inject malicious HTML/JavaScript by modifying the username field in a Cobalt Strike payload. The teamserver renders this field without proper sanitization, allowing arbitrary script execution when the payload is processed or viewed.
Mitigation
Upgrade Cobalt Strike to a version beyond 4.7. If immediate patching is not possible, implement network segmentation and restrict access to the teamserver interface to minimize exposure.