This advisory announces vulnerabilities in the following Jenkins deliverables:
mattermost
Mattermost allows the definition of incoming (from the perspective of the service) webhook URLs. These contain what is effectively a secret token as part of the URL.
Mattermost Notification Plugin stored these webhook URLs as part of its global configuration file jenkins.plugins.mattermost.MattermostNotifier.xml
and job config.xml
files on the Jenkins controller.
These URLs could be viewed by users with Extended Read permission (in the case of job config.xml
files) or access to the Jenkins controller file system.
Mattermost Notification Plugin now stores these URLs encrypted. As they combine configuration and secret token, they are still shown on the UI.
bitbucket-oauth
Bitbucket OAuth Plugin stored a credential unencrypted in the global config.xml
configuration file on the Jenkins controller.
This credential could be viewed by users with access to the Jenkins controller file system.
Bitbucket OAuth Plugin now stores this credential encrypted.
zulip
Zulip Plugin stored a credential unencrypted in its global configuration file jenkins.plugins.zulip.ZulipNotifier.xml
, as well as in the legacy configuration file hudson.plugins.humbug.HumbugNotifier.xml
on the Jenkins controller.
This credential could be viewed by users with access to the Jenkins controller file system.
Zulip Plugin now stores this credential encrypted in its global configuration file. The legacy configuration file is deleted when saving the plugin configuration.
dynatrace-dashboard
Dynatrace Application Monitoring Plugin stored a credential unencrypted in its global configuration file com.dynatrace.jenkins.dashboard.TAGlobalConfiguration.xml
on the Jenkins controller.
This credential could be viewed by users with access to the Jenkins controller file system.
Dynatrace Application Monitoring Plugin now stores this credential encrypted.
dynatrace-dashboard
Dynatrace Application Monitoring Plugin did not require POST requests on a method implementing form validation. This CSRF vulnerability allowed attackers to initiate a connection test to an attacker-specified server with attacker-specified username and password.
Dynatrace Application Monitoring Plugin now requires POST requests for this form validation method.
dynatrace-dashboard
Dynatrace Application Monitoring Plugin does not perform permission checks on a method implementing form validation. This allows users with Overall/Read access to Jenkins to initiate a connection test to an attacker-specified server with attacker-specified username and password.
As of publication of this advisory, there is no fix.
weblogic-deployer-plugin
Deploy WebLogic Plugin does not perform permission checks on a method implementing form validation. This allows users with Overall/Read access to Jenkins to send an HTTP HEAD request to a user-specified URL, or confirm the existence of any file or directory on the Jenkins controller.
Additionally, the form validation method does not require POST requests, resulting in a CSRF vulnerability.
As of publication of this advisory, there is no fix.
fireline
360 FireLine Plugin accepts XML for part of its configuration. It does not configure the XML parser to prevent XML external entity (XXE) attacks.
A form validation method that accepts XML does not perform permission checks. This allows users with Overall/Read permission to have Jenkins parse a crafted XML file that uses external entities for extraction of secrets from the Jenkins agent, server-side request forgery, or denial-of-service attacks.
As of publication of this advisory, there is no fix.
sonar-gerrit
Sonar Gerrit Plugin stores a credential unencrypted in job config.xml
files on the Jenkins controller if the 'Override Credentials' option is used.
This credential can be viewed by users with Extended Read permission or access to the Jenkins controller file system.
As of publication of this advisory, there is no fix.
kubernetes-ci
kubernetes-ci Plugin does not perform permission checks on a method implementing form validation. This allows users with Overall/Read access to Jenkins to connect to an attacker-specified URL using attacker-specified credentials IDs obtained through another method, capturing credentials stored in Jenkins.
Additionally, the form validation method does not require POST requests, resulting in a CSRF vulnerability.
As of publication of this advisory, there is no fix.
kubernetes-ci
kubernetes-ci Plugin provides a list of applicable credential IDs to allow users configuring the plugin to select the one to use.
This functionality does not correctly check permissions, allowing any user with Overall/Read permission to get a list of valid credentials IDs. Those can be used as part of an attack to capture the credentials using another vulnerability.
As of publication of this advisory, there is no fix.
libvirt-slave
Libvirt Agents Plugin does not perform permission checks on a method implementing form validation. This allows users with Overall/Read access to Jenkins to connect to an attacker-specified SSH server using attacker-specified credentials IDs obtained through another method, capturing credentials stored in Jenkins.
Additionally, the form validation method does not require POST requests, resulting in a CSRF vulnerability.
As of publication of this advisory, there is no fix.
libvirt-slave
Libvirt Agents Plugin provides a list of applicable credential IDs to allow users configuring the plugin to select the one to use.
This functionality does not correctly check permissions, allowing any user with Overall/Read permission to get a list of valid credentials IDs. Those can be used as part of an attack to capture the credentials using another vulnerability.
As of publication of this advisory, there is no fix.
global-post-script
Global Post Script Plugin does not perform permission checks on a method implementing form validation.
This allows users with Overall/Read permission to list the files contained in $JENKINS_HOME/global-post-script
that can be used by the plugin.
As of publication of this advisory, there is no fix.
build-metrics
build-metrics Plugin does not properly escape the label
query parameter, resulting in a reflected cross-site scripting vulnerability.
As of publication of this advisory, there is no fix.
These versions include fixes to the vulnerabilities described above. All prior versions are considered to be affected by these vulnerabilities unless otherwise indicated.
As of publication of this advisory, no fixes are available for the following plugins:
Learn why we announce these issues.
The Jenkins project would like to thank the reporters for discovering and reporting these vulnerabilities: