Jenkins < (2.204.6 / 2.222.1) LTS / 2.228 Multiple Vulnerabilities

high Nessus Plugin ID 135178

Synopsis

A job scheduling and management system hosted on the remote web server is affected by multiple vulnerabilities.

Description

The version of Jenkins running on the remote web server is prior to 2.228 or is a version of Jenkins LTS prior to 2.204.6 or 2.222.1. It is, therefore, affected by multiple vulnerabilities:

- An authentication bypass vulnerability exists in Jenkins' CSRF prevention component. An unauthenticated, remote attacker can exploit this, by sending specially crafted requests to a vulnerable Jenkins instance, to bypass authentication and conduct a CSRF attack (CVE-2020-2160).

- A stored cross-site scripting (XSS) vulnerability exists in Jenkins' label expression validation component due to improper validation of user-supplied input before returning it to users. An authenticated, remote attacker can exploit this, by convincing a user to click a specially crafted URL, to execute arbitrary script code in a user's browser session (CVE-2020-2161).

- A stored cross-site scripting (XSS) vulnerability exists in Jenkins' file parameter component due to improper validation of user-supplied input before returning it to users. An authenticated, remote attacker can exploit this, by convincing a user to click a specially crafted URL, to execute arbitrary script code in a user's browser session (CVE-2020-2162).

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade Jenkins to version 2.228 or later. Upgrade Jenkins LTS to version 2.204.6, 2.222.1 or later.

See Also

http://www.nessus.org/u?edd15de3

Plugin Details

Severity: High

ID: 135178

File Name: jenkins_security_advisory_2020-03-25.nasl

Version: 1.6

Type: combined

Agent: windows, macosx, unix

Family: CGI abuses

Published: 4/2/2020

Updated: 6/5/2024

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Continuous Assessment, Nessus

Enable CGI Scanning: true

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2020-2160

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:cloudbees:jenkins

Required KB Items: installed_sw/Jenkins

Exploit Ease: No known exploits are available

Patch Publication Date: 3/25/2020

Vulnerability Publication Date: 3/25/2020

Reference Information

CVE: CVE-2020-2160, CVE-2020-2161, CVE-2020-2162, CVE-2020-2163

IAVA: 2020-A-0126-S