Miggo Logo

CVE-2021-21618: Stored XSS vulnerability in Jenkins Repository Connector Plugin

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.75852%
Published
5/24/2022
Updated
10/27/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.jenkins-ci.plugins:repository-connectormaven<= 2.0.22.0.3

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from unescaped parameter names/descriptions in build history views. Jenkins plugins typically use Jelly templates for UI rendering and Java classes for parameter handling. The advisory specifically mentions escaping was added when 'creating new parameters', indicating the rendering path for existing parameters (in build history) lacked proper escaping. The ParameterDefinition class and associated Jelly views would be the logical locations where parameter data is displayed without sanitization, as these are standard components for parameter handling in Jenkins plugins.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

J*nkins R*pository *onn**tor Plu*in *.*.* *n* **rli*r *o*s not *s**p* p*r*m*t*r n*m*s *n* **s*riptions *or p*st *uil*s. T*is r*sults in * stor** *ross-sit* s*riptin* (XSS) vuln*r**ility *xploit**l* *y *tt**k*rs wit* It*m/*on*i*ur* p*rmission. J*nki

Reasoning

T** vuln*r**ility st*ms *rom un*s**p** p*r*m*t*r n*m*s/**s*riptions in *uil* *istory vi*ws. J*nkins plu*ins typi**lly us* J*lly t*mpl*t*s *or UI r*n**rin* *n* J*v* *l*ss*s *or p*r*m*t*r **n*lin*. T** **visory sp**i*i**lly m*ntions *s**pin* w*s *****