Stored cross-site scripting in JUnit - CVE-2022-34176

 

Stored cross-site scripting in JUnit - CVE-2022-34176

Published: June 23, 2022


Vulnerability identifier: #VU64607
CSH Severity: Low
CVSS v4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N]
CVE-ID: CVE-2022-34176
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to the affected plugin does not escape descriptions of test results. A remote user can inject and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.


Affected software

JUnit
Red Hat OpenShift Container Platform
jenkins (Red Hat package)
jenkins-2-plugins (Red Hat package)
openshift (Red Hat package)
openshift-clients (Red Hat package)
python-kubernetes (Red Hat package)

How to mitigate CVE-2022-34176

Install updates from vendor's website.

JUnit - update to 1119.1121.vc43d0fc45561
Red Hat OpenShift Container Platform - addressed in versions 4.8.56, 4.9.52
jenkins (Red Hat package) - addressed in versions 2.346.1.1667459710-1.el8, 2.361.1.1672840472-1.el8
jenkins-2-plugins (Red Hat package) - addressed in versions 4.8.1672842762-1.el8, 4.9.1667460322-1.el8
openshift (Red Hat package) - addressed in versions 4.9.0-202210242129.p0.g9e95cb9.assembly.stream.el7, 4.9.0-202210242129.p0.g9e95cb9.assembly.stream.el8
openshift-clients (Red Hat package) - addressed in versions 4.9.0-202210242129.p0.gb49c285.assembly.stream.el7, 4.9.0-202210242129.p0.gb49c285.assembly.stream.el8
python-kubernetes (Red Hat package) - update to 22.6.0-1.el8

External References

Related Security Bulletins