XXE vulnerability in Jenkins Generic Webhook Trigger Plugin
Date: 2022-05
Affected: maven/org.jenkins-ci.plugins:generic-webhook-trigger
Attack vector: ssrf
Category: vulnerability-disclosure
Severity: Critical
CVE: CVE-2021-21669
CWE: CWE-611
CVSS: 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)

Jenkins Generic Webhook Trigger Plugin 1.72 and earlier does not configure its XML parser to prevent XML external entity (XXE) attacks. This allows attackers with the ability to call webhooks configured to extract parameters using XPath to have Jenkins parse a crafted XML request body that uses external entities for extraction of secrets from the Jenkins controller or server-side request forgery. Jenkins Generic Webhook Trigger Plugin 1.74 disables external entity resolution for its XML parser.


Mitigations:

Architectural layers (MAESTRO):