Miggo Logo

CVE-2015-1812: Jenkins Cross-site Scripting vulnerability

4.3

CVSS Score

Basic Information

EPSS Score
0.40712%
Published
5/17/2022
Updated
3/22/2024
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
AV:N/AC:M/Au:N/C:N/I:P/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.jenkins-ci.main:jenkins-coremaven< 1.596.21.596.2
org.jenkins-ci.main:jenkins-coremaven>= 1.600, < 1.6061.606

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The commit diff shows the vulnerability was fixed by wrapping Functions.printThrowable() with Util.escape(). This indicates the original code rendered raw exception details into HTML without sanitization, creating an XSS vector. The test case added in FormValidationTest.java explicitly checks for HTML sanitization, confirming the vulnerability's location and mechanism.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

*ross-sit* s*riptin* (XSS) vuln*r**ility in J*nkins ***or* *.*** *n* LTS ***or* *.***.* *llows r*mot* *tt**k*rs to inj**t *r*itr*ry w** s*ript or *TML vi* unsp**i*i** v**tors, * *i***r*nt vuln*r**ility t**n *V*-****-****.

Reasoning

T** *ommit *i** s*ows t** vuln*r**ility w*s *ix** *y wr*ppin* `*un*tions.printT*row**l*()` wit* `Util.*s**p*()`. T*is in*i**t*s t** ori*in*l *o** r*n**r** r*w *x**ption **t*ils into `*TML` wit*out s*nitiz*tion, *r**tin* *n `XSS` v**tor. T** t*st **s*