Bug 2215089 (CVE-2023-35146)

Summary: CVE-2023-35146 jenkins-2-plugins: template-workflows: Stored XSS vulnerability in Template Workflows Plugin
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: aazores, abenaiss, chazlett, dfreiber, eaguilar, ebaron, ellin, jburrell, jkang, jpallich, pjindal, rogbas, scorneli, sfroberg, shbose, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Jenkins Template Workflows Plugin, where it is vulnerable to Cross-site scripting caused by the improper validation of user-supplied input. This flaw allows a remote, authenticated attacker to inject malicious script into a Web page, which would be executed in a victim's Web browser within the security context of the hosting Web site once the page is viewed, and steal the victim's cookie-based authentication credentials.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-04 05:10:52 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2215113    

Description Guilherme de Almeida Suckevicz 2023-06-14 17:43:15 UTC
Jenkins Template Workflows Plugin 41.v32d86a_313b_4a and earlier does not escape names of jobs used as buildings blocks for Template Workflow Job, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to create jobs.

References:
https://www.jenkins.io/security/advisory/2023-06-14/#SECURITY-3166
http://www.openwall.com/lists/oss-security/2023/06/14/5