Miggo Logo

CVE-2021-21669: XXE vulnerability in Jenkins Generic Webhook Trigger Plugin

9.8

CVSS Score
3.1

Basic Information

EPSS Score
0.73825%
Published
5/24/2022
Updated
12/15/2023
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package NameEcosystemVulnerable VersionsFirst Patched Version
org.jenkins-ci.plugins:generic-webhook-triggermaven<= 1.721.74

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stems from insecure XML parsing in the XPath processing function. The commit diff shows the fix added 'factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true)' to disable DTD processing. This indicates the vulnerable code path was in XML parsing logic handling webhook payloads, specifically in the XPath resolver that lacked proper XXE protections prior to the patch.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

J*nkins **n*ri* W***ook Tri***r Plu*in *.** *n* **rli*r *o*s not *on*i*ur* its XML p*rs*r to pr*v*nt XML *xt*rn*l *ntity (XX*) *tt**ks. T*is *llows *tt**k*rs wit* t** **ility to **ll w***ooks *on*i*ur** to *xtr**t p*r*m*t*rs usin* XP*t* to **v* J*nk

Reasoning

T** vuln*r**ility st*ms *rom ins**ur* XML p*rsin* in t** XP*t* pro**ssin* *un*tion. T** *ommit *i** s*ows t** *ix ***** '***tory.s*t***tur*("*ttp://*p****.or*/xml/***tur*s/*is*llow-*o*typ*-***l", tru*)' to *is**l* *T* pro**ssin*. T*is in*i**t*s t** v