Description Preview
Jenkins Matrix Project Plugin 1.16 and earlier contains a stored cross-site scripting (XSS) vulnerability. The plugin fails to properly escape axis names displayed in tooltips on the overview page of builds with multiple axes. This allows attackers with the ability to configure jobs to inject malicious JavaScript code that executes in victims' browsers when they hover over these tooltips.
Overview
This vulnerability (CVE-2020-2225) affects the Jenkins Matrix Project Plugin versions 1.16 and earlier. The issue is classified as CWE-79: Cross-site Scripting. The vulnerability occurs because the plugin does not properly sanitize axis names when displaying them in tooltips on the build overview page. An attacker with job configuration permissions could create a matrix project with maliciously crafted axis names containing JavaScript code. When other users view the build overview page and hover over elements with these tooltips, the injected JavaScript would execute in their browsers within the Jenkins domain context. This could lead to session hijacking, credential theft, or other client-side attacks.
Remediation
To remediate this vulnerability:
- Update the Jenkins Matrix Project Plugin to version 1.17 or later, which contains the fix for this issue.
- If immediate updating is not possible, consider:
- Restricting who can configure jobs in your Jenkins instance
- Implementing Content Security Policy (CSP) headers to mitigate XSS attacks
- Regularly reviewing job configurations for suspicious axis names
- Monitor the Jenkins security advisories for any additional information or updates related to this vulnerability.
- Consider conducting a security review of other plugins that may have similar vulnerabilities.
References
- Jenkins Security Advisory (2020-07-15): https://jenkins.io/security/advisory/2020-07-15/#SECURITY-1925
- OSS Security Mailing List Discussion: http://www.openwall.com/lists/oss-security/2020/07/15/5
- Common Weakness Enumeration (CWE-79): https://cwe.mitre.org/data/definitions/79.html
- Jenkins Matrix Project Plugin: https://plugins.jenkins.io/matrix-project/
Industry ExposureMost to leastThis section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.
- ManufacturingManufacturing
- Management of Companies & EnterprisesManagement of Companies & Enterprises
- Educational ServicesEducational Services
- Professional, Scientific, & Technical ServicesProfessional, Scientific, & Technical Services
- Retail TradeRetail Trade
- Accommodation & Food ServicesAccommodation & Food Services
- Administrative, Support, Waste Management & Remediation ServicesAdministrative, Support, Waste Management & Remediation Services
- Agriculture, Forestry Fishing & HuntingAgriculture, Forestry Fishing & Hunting
- Arts, Entertainment & RecreationArts, Entertainment & Recreation
- ConstructionConstruction
- Finance and InsuranceFinance and Insurance
- Health Care & Social AssistanceHealth Care & Social Assistance
- InformationInformation
- MiningMining
- Other Services (except Public Administration)Other Services (except Public Administration)
- Public AdministrationPublic Administration
- Real Estate Rental & LeasingReal Estate Rental & Leasing
- Transportation & WarehousingTransportation & Warehousing
- UtilitiesUtilities
- Wholesale TradeWholesale Trade