NetSight
high8.8

CVE-2022-25207

CSRF vulnerability in Jenkins Chef Sinatra Plugin allow XXE

Impact

Jenkins Chef Sinatra Plugin 1.20 and earlier does not perform a permission check in a method implementing form validation. This allows attackers with Overall/Read permission to have Jenkins send an HTTP request to an attacker-controlled URL and have it parse the response as XML. As the plugin does not configure its XML parser to prevent XML external entity (XXE) attacks, attackers can have Jenkins parse a crafted XML response that uses external entities for extraction of secrets from the Jenkins controller or server-side request forgery. Additionally, this form validation method does not require POST requests, resulting in a cross-site request forgery (CSRF) vulnerability.

Affected packages

EcosystemPackageAffectedFixed in
mavenorg.jenkins-ci.plugins:sinatra-chef-builder<= 1.20none recorded

Affected products

VendorProductAffected versions
JenkinsChef Sinatra
through 1.20

Weakness classification

References