oss-sec mailing list archives

Jenkins stored cross-site scripting vulnerability


From: Daniel Beck <ml () beckweb net>
Date: Tue, 5 Dec 2017 11:09:33 +0100

Jenkins is an open source automation server which enables developers around
the world to reliably build, test, and deploy their software.

The Jenkins project released a security advisory today. A description of the
vulnerability is below. More details, severity, and attribution can be found
here:
https://jenkins.io/security/advisory/2017-12-05/

We provide advance notification for security updates on this mailing list:
https://groups.google.com/d/forum/jenkinsci-advisories

If you discover security vulnerabilities in Jenkins, please report them as
described here:
https://jenkins.io/security/#reporting-vulnerabilities

---

SECURITY-624
Jenkins administrators can configure tools, such as JDK, Maven, or Ant,
that will be available in job configurations for use by build scripts. Some
tool names are not properly escaped on job configuration forms, resulting
in a stored cross-site scripting vulnerability.

Tools confirmed to be affected are:
- JDK (provided by Jenkins core)
- Ant (provided by Ant plugin)

Others may also be affected by this.

This vulnerability can only be exploited by Jenkins administrators, as
they’re the only ones able to define tools. In the vast majority of Jenkins
configurations, administrators are able to run any code and install any
plugin. Therefore this vulnerability only really affects installations that
don’t grant administrators the Run Scripts, Configure Update Sites, and
Install Plugins permissions.

The Jenkins project has prepared a plugin preventing the configuration of
unsafe tool names at https://github.com/jenkinsci-cert/security624 as a
workaround. If you’re affected by this issue, we recommend installing this
plugin.


Current thread: