CVE-2022-46686 in Build Properties Plugininfo

Summary

by MITRE • 12/12/2022

Jenkins Custom Build Properties Plugin 2.79.vc095ccc85094 and earlier does not escape property values and build display names on the Custom Build Properties and Build Summary pages, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to set or change these values.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 01/02/2023

The vulnerability identified as CVE-2022-46686 affects the Jenkins Custom Build Properties Plugin version 2.79.vc095ccc85094 and earlier, representing a critical stored cross-site scripting flaw that undermines the security posture of Jenkins environments. This issue stems from inadequate input sanitization within the plugin's handling of property values and build display names, creating an attack vector that allows malicious actors to inject persistent malicious scripts into the web interface.

The technical flaw manifests when the plugin fails to properly escape user-controllable data before rendering it on the Custom Build Properties and Build Summary pages. This omission creates a stored XSS vulnerability because the malicious scripts are not only executed in the context of the victim's browser but are also persisted within the application's data store. Attackers who can manipulate build properties or display names can leverage this weakness to inject malicious JavaScript code that executes whenever other users view the affected pages.

The operational impact of this vulnerability extends beyond simple script execution, as it can enable attackers to perform various malicious activities including session hijacking, data exfiltration, and privilege escalation within the Jenkins environment. The stored nature of the vulnerability means that once an attacker successfully injects malicious code, it will persistently affect all users who access the affected build pages until the malicious content is removed or the plugin is updated. This persistent threat amplifies the risk to organizations relying on Jenkins for continuous integration and deployment operations.

Organizations utilizing the affected Jenkins plugin should immediately implement mitigations including updating to version 2.80 or later, which contains the necessary patches to address the XSS vulnerability. Additionally, administrators should consider implementing web application firewalls and input validation controls to further reduce the attack surface. The vulnerability aligns with CWE-79 which specifically addresses cross-site scripting flaws, and follows ATT&CK technique T1566.001 for initial access through spearphishing attachments or links, as attackers may exploit this vulnerability to gain unauthorized access to Jenkins environments. Security teams should also conduct thorough audits of Jenkins configurations and implement proper access controls to limit the ability of unauthorized users to modify build properties and display names, thereby reducing the likelihood of successful exploitation.

Reservation

12/06/2022

Disclosure

12/12/2022

Moderation

accepted

CPE

ready

EPSS

0.00456

KEV

no

Activities

very low

Sources

Want to know what is going to be exploited?

We predict KEV entries!