FreeBSD : salt -- multiple vulnerabilities (a1e03a3d-7be0-11eb-b392-20cf30e32f6d)

critical Nessus Plugin ID 146985

Synopsis

The remote FreeBSD host is missing one or more security-related updates.

Description

SaltStack reports multiple security vulnerabilities in Salt

- CVE-2021-3197: The Salt-API.s SSH client is vulnerable to a shell injection by including ProxyCommand in an argument, or via ssh_options provided in an API request.

- CVE-2021-25281: The Salt-API does not have eAuth credentials for the wheel_async client.

- CVE-2021-25282: The salt.wheel.pillar_roots.write method is vulnerable to directory traversal.

- CVE-2021-25283: The jinja renderer does not protect against server-side template injection attacks.

- CVE-2021-25284: webutils write passwords in cleartext to /var/log/salt/minion

- CVE-2021-3148: command injection in salt.utils.thin.gen_thin()

- CVE-2020-35662: Several places where Salt was not verifying the SSL cert by default.

- CVE-2021-3144: eauth Token can be used once after expiration.

- CVE-2020-28972: Code base not validating SSL/TLS certificate of the server, which might allow attackers to obtain sensitive information via a man-in-the-middle attack

- CVE-2020-28243: Local Privilege Escalation in the Minion.

Solution

Update the affected packages.

See Also

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

http://www.nessus.org/u?7ac11567

Plugin Details

Severity: Critical

ID: 146985

File Name: freebsd_pkg_a1e03a3d7be011ebb39220cf30e32f6d.nasl

Version: 1.8

Type: local

Published: 3/3/2021

Updated: 11/9/2021

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.2

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

CVSS Score Source: CVE-2021-3197

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: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:freebsd:freebsd:py36-salt, p-cpe:/a:freebsd:freebsd:py36-salt-2019, p-cpe:/a:freebsd:freebsd:py37-salt, p-cpe:/a:freebsd:freebsd:py37-salt-2019, p-cpe:/a:freebsd:freebsd:py38-salt, p-cpe:/a:freebsd:freebsd:py38-salt-2019, p-cpe:/a:freebsd:freebsd:py39-salt, cpe:/o:freebsd:freebsd

Required KB Items: Host/local_checks_enabled, Host/FreeBSD/release, Host/FreeBSD/pkg_info

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 3/3/2021

Vulnerability Publication Date: 2/25/2021

Exploitable With

Metasploit (SaltStack Salt API Unauthenticated RCE through wheel_async client)

Reference Information

CVE: CVE-2020-28243, CVE-2020-28972, CVE-2020-35662, CVE-2021-25281, CVE-2021-25282, CVE-2021-25283, CVE-2021-25284, CVE-2021-3144, CVE-2021-3148, CVE-2021-3197

IAVA: 2021-A-0112-S