PT-2022-20407 · Jenkins · Jenkins Pipeline Scm Api For Blue Ocean Plugin+2

Kevin Guerroudj

·

Published

2022-05-17

·

Updated

2023-11-03

·

CVE-2022-30952

CVSS v3.1

5.3

Medium

VectorAV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Jenkins Pipeline SCM API for Blue Ocean Plugin versions 1.25.3 and earlier
Description The issue allows attackers with Job/Configure permission to access credentials with attacker-specified IDs stored in the private per-user credentials stores of any attacker-specified user in Jenkins. This is due to the Blue Ocean Credentials Provider in Pipeline SCM API for Blue Ocean Plugin 1.25.3 and earlier, which enables pipelines to access specific credentials from the per-user credentials store. As a result, attackers can rewrite job configurations to access and capture any attacker-specified credential from any user’s private credentials store.
Recommendations For Jenkins Pipeline SCM API for Blue Ocean Plugin versions 1.25.3 and earlier, administrators should reconfigure affected pipelines to use a credential from the Jenkins credential store or a folder credential store. To mitigate the issue, consider disabling the Blue Ocean Credentials Provider through the UI at Manage Jenkins » Configure Credential Providers . Note that re-enabling the Blue Ocean Credentials Provider by setting the Java system property io.jenkins.blueocean.rest.impl.pipeline.credential.BlueOceanCredentialsProvider.enabled to true is discouraged, as it will restore the unsafe behavior. Updating to Pipeline SCM API for Blue Ocean Plugin 1.25.4 or later is recommended, as it deprecates the Blue Ocean Credentials Provider and disables it by default.

Fix

Insufficiently Protected Credentials

Weakness Enumeration

Related Identifiers

CVE-2022-30952
GHSA-G74W-93CP-5P3P
RHSA-2023:0017
RHSA-2023:0560
RHSA-2023:0777
RHSA-2023:1064

Affected Products

Blue Ocean Credentials Provider
Jenkins
Jenkins Pipeline Scm Api For Blue Ocean Plugin