PT-2022-20418 · Jenkins · Jenkins Global Variable String Parameter Plugin+1
Daniel Beck
+2
·
Published
2022-05-17
·
Updated
2023-11-02
·
CVE-2022-30962
CVSS v3.1
5.4
Medium
| Vector | AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Jenkins Global Variable String Parameter Plugin versions 1.2 and earlier
Description
The issue results in a stored cross-site scripting (XSS) vulnerability, which is exploitable by attackers with Item/Configure permission. This occurs because the plugin does not escape the name and description of Global Variable String parameters on views displaying parameters. Exploitation requires that parameters are listed on another page and that those pages are not hardened to prevent exploitation. It is noted that Jenkins (core) has prevented exploitation of vulnerabilities of this kind on certain pages since version 2.44 and LTS 2.32.2.
Recommendations
For Jenkins Global Variable String Parameter Plugin versions 1.2 and earlier, consider updating to a version that escapes the name and description of Global Variable String parameters to prevent stored cross-site scripting (XSS) vulnerabilities. As a temporary workaround, restrict access to views displaying parameters to minimize the risk of exploitation. Additionally, ensure that any pages listing parameters, such as the "Build With Parameters" and "Parameters" pages provided by Jenkins (core), are hardened to prevent exploitation, ideally by using Jenkins (core) version 2.44 or LTS 2.32.2, or later.
Fix
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Jenkins
Jenkins Global Variable String Parameter Plugin