Miggo Logo

CVE-2020-2162: Improper Neutralization of Input During Web Page Generation in Jenkins

5.4

CVSS Score
3.1

Basic Information

EPSS Score
0.61471%
Published
5/24/2022
Updated
12/13/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.main:jenkins-coremaven<= 2.204.52.228
org.jenkins-ci.main:jenkins-coremaven>= 2.204.6, <= 2.2272.228

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The commit diff shows the vulnerability was addressed by adding CSP header handling directly in FileParameterValue.java's doDynamic method. This method handles file parameter serving and previously lacked security headers. The test cases verify CSP header behavior specifically for this endpoint, confirming this is the execution path for serving vulnerable file parameters. The advisory explicitly states file parameters weren't covered by existing CSP protections that applied to other file-serving mechanisms.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

J*nkins *.*** *n* **rli*r, LTS *.***.* *n* **rli*r s*rv** *il*s uplo**** *s *il* p*r*m*t*rs to * *uil* wit*out sp**i*yin* *ppropri*t* `*ont*nt-S**urity-Poli*y *TTP` *****rs. T*is r*sult** in * stor** *ross-sit* s*riptin* (XSS) vuln*r**ility *xploit**

Reasoning

T** *ommit *i** s*ows t** vuln*r**ility w*s ***r*ss** *y ***in* *SP *****r **n*lin* *ir**tly in `*il*P*r*m*t*rV*lu*.j*v*`'s `*o*yn*mi*` m*t*o*. T*is m*t*o* **n*l*s *il* p*r*m*t*r s*rvin* *n* pr*viously l**k** s**urity *****rs. T** t*st **s*s v*ri*y *