GitHub Advisoryadvisory · Maven
GHSA-6fg4-36v7-xv32 Stored Cross-site Scripting vulnerability in Jenkins Dashboard View Plugin
MEDIUM
Official page ↗
- Aliases
- CVE-2022-27197
- Ecosystem
- Maven
- Packages
- org.jenkins-ci.plugins:dashboard-view
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2022-11-30
Affected packages
• Maven org.jenkins-ci.plugins:dashboard-view: < 2.18.1 → fixed in 2.18.1
Description
Jenkins Dashboard View Plugin 2.18 and earlier does not perform URL validation for the Iframe Portlet's Iframe source URL, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to configure views.
Dashboard View Plugin 2.18.1 performs URL validation for the Iframe Portlet’s Iframe source URL.
Additionally, Dashboard View Plugin 2.18.1 sets the sandbox attribute for the iframe to restrict the included page.
In case of problems, the Java system property `hudson.plugins.view.dashboard.core.IframePortlet.sandboxAttributeValue` can be used to customize the sandbox attribute value. The Java system property `hudson.plugins.view.dashboard.core.IframePortlet.doNotUseSandbox` can be used to disable the sandbox completely.
Related
Alias · CVE (1)
- CVE-2022-27197 Jenkins Dashboard View Plugin 2.18 and earlier does not perform URL validation for the Iframe Portlet's Iframe source URL, resulting in a… vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2022-27197 advisory
- https://github.com/jenkinsci/dashboard-view-plugin/commit/942c5c78fa834a6be242f144adc2b7f045ccdbc3 web
- https://github.com/jenkinsci/dashboard-view-plugin package
- https://www.jenkins.io/security/advisory/2022-03-15/#SECURITY-2559 web
- http://www.openwall.com/lists/oss-security/2022/03/15/2 web