SaltStack < 2019.2.4 / 3000.x < 3000.2 Multiple Vulnerabilities

critical Nessus Plugin ID 136402
New! Plugin Severity Now Using CVSS v3

The calculated severity for Plugins has been updated to use CVSS v3 by default. Plugins that do not have a CVSS v3 score will fall back to CVSS v2 for calculating severity. Severity display preferences can be toggled in the settings dropdown.

Synopsis

The version of SaltStack running on the remote server is affected by multiple vulnerabilities.

Description

According to its self-reported version number, the instance of SaltStack hosted on the remote server is prior to 2019.2.4, 3000.x prior to 3000.2. It is, therefore, affected by multiple vulnerabilities:

- An authentication bypass vulnerabilities exists in the ClearFuncs class due to improper validation of method calls. An unauthenticated, remote attacker can exploit this by accessing exposed methods to trigger minions to run arbitrary commands as root, or to retrieve the root key to authenticate commands from the local root user on the master server. (CVE-2020-11651)

- A directory traversal vulnerabilities exists in the ClearFuncs class due to improper path sanitization. An authenticated, remote attacker can exploit this by accessing the exposed get_token() method which allows the insertion of double periods in the filename parameter to read files outside of the intended directory.
The only restriction is that the file has to be deserializable by salt.payload.Serial.loads().
(CVE-2020-11652)

Solution

Upgrade to SaltStack version 2019.2.4, 3000.2 or later.

See Also

http://www.nessus.org/u?4df67f57

Plugin Details

Severity: Critical

ID: 136402

File Name: saltstack_3000_2_multiple_vulnerabilities.nasl

Version: 1.6

Type: local

Agent: unix

Family: Misc.

Published: 5/7/2020

Updated: 4/16/2021

Dependencies: saltstack_salt_linux_installed.nbin

Risk Information

CVSS Score Source: CVE-2020-11651

VPR

Risk Factor: Critical

Score: 9.5

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P

Temporal Vector: E:F/RL:OF/RC:C

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 9.1

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

Temporal Vector: E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:saltstack:salt

Required KB Items: installed_sw/SaltStack Salt Master

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 4/30/2020

Vulnerability Publication Date: 3/24/2020

Exploitable With

Metasploit (SaltStack Salt Master/Minion Unauthenticated RCE)

Reference Information

CVE: CVE-2020-11651, CVE-2020-11652

IAVA: 2020-A-0195-S

EDB-ID: 48421