GHSA-c735-g9f2-2mvp
Cross-Site Request Forgery in Jenkins
Quick fix
GHSA-c735-g9f2-2mvp — org.jenkins-ci.main:jenkins-core: upgrade to the fixed version with the command below.
# pom.xml: bump <version>2.204.6</version> for org.jenkins-ci.main:jenkins-coreDetails
An extension point in Jenkins allows selectively disabling cross-site request forgery (CSRF) protection for specific URLs.
Implementations of that extension point received a different representation of the URL path than the Stapler web framework uses to dispatch requests in Jenkins 2.227 and earlier, LTS 2.204.5 and earlier. This discrepancy allowed attackers to craft URLs that would bypass the CSRF protection of any target URL.
Jenkins now uses the same representation of the URL path to decide whether CSRF protection is needed for a given URL as the Stapler web framework uses.
In case of problems, administrators can disable this security fix by setting the system property `hudson.security.csrf.CrumbFilter.UNPROCESSED_PATHINFO` to `true`.
As an additional safeguard, semicolon (`;`) characters in the path part of a URL are now banned by default. Administrators can disable this protection by setting the system property `jenkins.security.SuspiciousRequestFilter.allowSemicolonsInPath` to `true`.
Are you affected?
Enter the version of the package you're using.
Affected packages
0Fixed in: 2.204.6# pom.xml: bump <version>2.204.6</version> for org.jenkins-ci.main:jenkins-core2.205Fixed in: 2.228# pom.xml: bump <version>2.228</version> for org.jenkins-ci.main:jenkins-coreReferences
- https://nvd.nist.gov/vuln/detail/CVE-2020-2160[ADVISORY]
- https://github.com/jenkinsci/jenkins/commit/f479652171f4ab854747de64b22bf59adb35fb8f[WEB]
- https://github.com/jenkinsci/jenkins/commit/f7cf28355973df1ca6eb19066370bf70b10742f7[WEB]
- https://github.com/jenkinsci/jenkins[PACKAGE]
- https://jenkins.io/security/advisory/2020-03-25/#SECURITY-1774[WEB]
- http://www.openwall.com/lists/oss-security/2020/03/25/2[WEB]