Debian DSA-4676-1 : salt - security update - Nessus
Critical Plugin ID: 136372This page contains detailed information about the Debian DSA-4676-1 : salt - security update Nessus plugin including available exploits and PoCs found on GitHub, in Metasploit or Exploit-DB for verifying of this vulnerability.
Plugin Overview
ID: 136372
Name: Debian DSA-4676-1 : salt - security update
Filename: debian_DSA-4676.nasl
Vulnerability Published: 2020-01-17
This Plugin Published: 2020-05-07
Last Modification Time: 2022-01-25
Plugin Version: 1.9
Plugin Type: local
Plugin Family: Debian Local Security Checks
Dependencies:
ssh_get_info.nasl
Required KB Items [?]: Host/Debian/dpkg-l, Host/Debian/release, Host/local_checks_enabled
Vulnerability Information
Severity: Critical
Vulnerability Published: 2020-01-17
Patch Published: 2020-05-06
CVE [?]: CVE-2019-17361, CVE-2020-11651, CVE-2020-11652
CPE [?]: cpe:/o:debian:debian_linux:9.0, cpe:/o:debian:debian_linux:10.0, p-cpe:/a:debian:debian_linux:salt
Synopsis
The remote Debian host is missing a security-related update.
Description
Several vulnerabilities were discovered in salt, a powerful remote execution manager, which could result in retrieve of user tokens from the salt master, execution of arbitrary commands on salt minions, arbitrary directory access to authenticated users or arbitrary code execution on salt-api hosts.
Solution
Upgrade the salt packages.
For the oldstable distribution (stretch), these problems have been fixed in version 2016.11.2+ds-1+deb9u3.
For the stable distribution (buster), these problems have been fixed in version 2018.3.4+dfsg1-6+deb10u1.
Public Exploits
Target Network Port(s): N/A
Target Asset(s): N/A
Exploit Available: True (Metasploit Framework, Exploit-DB, GitHub)
Exploit Ease: Exploits are available
Here's the list of publicly known exploits and PoCs for verifying the Debian DSA-4676-1 : salt - security update vulnerability:
- Metasploit: exploit/linux/misc/saltstack_salt_unauth_rce
[SaltStack Salt Master/Minion Unauthenticated RCE] - Metasploit: auxiliary/gather/saltstack_salt_root_key
[SaltStack Salt Master Server Root Key Disclosure] - Exploit-DB: exploits/multiple/remote/48421.txt
[EDB-48421: Saltstack 3000.1 - Remote Code Execution] - GitHub: https://github.com/FDlucifer/firece-fish
[CVE-2020-11651] - GitHub: https://github.com/Mr-xn/Penetration_Testing_POC
[CVE-2020-11651] - GitHub: https://github.com/SexyBeast233/SecBooks
[CVE-2020-11651] - GitHub: https://github.com/TesterCC/exp_poc_library
[CVE-2020-11651] - GitHub: https://github.com/appcheck-ng/salt-rce-scanner-CVE-2020-11651-CVE-2020-11652
[CVE-2020-11651: Scanning tool to test for SaltStack vulnerabilities CVE-2020-11651 & CVE-2020-11652. ...] - GitHub: https://github.com/dozernz/cve-2020-11651
[CVE-2020-11651] - GitHub: https://github.com/dwoz/salt-rekey
[CVE-2020-11651] - GitHub: https://github.com/fanjq99/CVE-2020-11652
[CVE-2020-11651] - GitHub: https://github.com/fofapro/vulfocus
[CVE-2020-11651] - GitHub: https://github.com/gobysec/Goby
[CVE-2020-11651] - GitHub: https://github.com/kasini3000/kasini3000
[CVE-2020-11651] - GitHub: https://github.com/lovechinacoco/https-github.com-mai-lang-chai-Middleware-Vulnerability-detection
[CVE-2020-11651] - GitHub: https://github.com/lovelyjuice/cve-2020-11651-exp-plus
[CVE-2020-11651] - GitHub: https://github.com/merlinxcy/ToolBox
[CVE-2020-11651] - GitHub: https://github.com/puckiestyle/cve-2020-11651
[CVE-2020-11651] - GitHub: https://github.com/rapyuta-robotics/clean-script
[CVE-2020-11651] - GitHub: https://github.com/tdtc7/qps
[CVE-2020-11651] - GitHub: https://github.com/whoadmin/pocs
[CVE-2020-11651] - GitHub: https://github.com/0xc0d/CVE-2020-11651
[CVE-2020-11652] - GitHub: https://github.com/Mr-xn/Penetration_Testing_POC
[CVE-2020-11652] - GitHub: https://github.com/appcheck-ng/salt-rce-scanner-CVE-2020-11651-CVE-2020-11652
[CVE-2020-11652: Scanning tool to test for SaltStack vulnerabilities CVE-2020-11651 & CVE-2020-11652. ...] - GitHub: https://github.com/dwoz/salt-rekey
[CVE-2020-11652] - GitHub: https://github.com/fofapro/vulfocus
[CVE-2020-11652] - GitHub: https://github.com/kasini3000/kasini3000
[CVE-2020-11652] - GitHub: https://github.com/lovechinacoco/https-github.com-mai-lang-chai-Middleware-Vulnerability-detection
[CVE-2020-11652] - GitHub: https://github.com/rapyuta-robotics/clean-script
[CVE-2020-11652] - GitHub: https://github.com/tdtc7/qps
[CVE-2020-11652] - GitHub: https://github.com/0xc0d/CVE-2020-11651
[CVE-2020-11651: CVE-2020-11651: Proof of Concept] - GitHub: https://github.com/Al1ex/CVE-2020-11652
[CVE-2020-11651: CVE-2020-11652 & CVE-2020-11651] - GitHub: https://github.com/bravery9/SaltStack-Exp
[CVE-2020-11651: CVE-2020-11651&&CVE-2020-11652 EXP] - GitHub: https://github.com/chef-cft/salt-vulnerabilities
[CVE-2020-11651: Checks for CVE-2020-11651 and CVE-2020-11652] - GitHub: https://github.com/heikanet/CVE-2020-11651-CVE-2020-11652-EXP
[CVE-2020-11651: CVE-2020-11651&&CVE-2020-11652 EXP] - GitHub: https://github.com/Imanfeng/SaltStack-Exp
[CVE-2020-11651: CVE-2020-11651&&CVE-2020-11652 EXP] - GitHub: https://github.com/jasperla/CVE-2020-11651-poc
[CVE-2020-11651: PoC exploit of CVE-2020-11651 and CVE-2020-11652] - GitHub: https://github.com/kevthehermit/CVE-2020-11651
[CVE-2020-11651: PoC for CVE-2020-11651] - GitHub: https://github.com/RakhithJK/CVE-2020-11651
[CVE-2020-11651: PoC for CVE-2020-11651] - GitHub: https://github.com/rossengeorgiev/salt-security-backports
[CVE-2020-11651: Salt security backports for CVE-2020-11651 & CVE-2020-11652] - GitHub: https://github.com/Al1ex/CVE-2020-11652
[CVE-2020-11652: CVE-2020-11652 & CVE-2020-11651] - GitHub: https://github.com/bravery9/SaltStack-Exp
[CVE-2020-11652: CVE-2020-11651&&CVE-2020-11652 EXP] - GitHub: https://github.com/chef-cft/salt-vulnerabilities
[CVE-2020-11652: Checks for CVE-2020-11651 and CVE-2020-11652] - GitHub: https://github.com/heikanet/CVE-2020-11651-CVE-2020-11652-EXP
[CVE-2020-11652: CVE-2020-11651&&CVE-2020-11652 EXP] - GitHub: https://github.com/Imanfeng/SaltStack-Exp
[CVE-2020-11652: CVE-2020-11651&&CVE-2020-11652 EXP] - GitHub: https://github.com/jasperla/CVE-2020-11651-poc
[CVE-2020-11652: PoC exploit of CVE-2020-11651 and CVE-2020-11652] - GitHub: https://github.com/rossengeorgiev/salt-security-backports
[CVE-2020-11652: Salt security backports for CVE-2020-11651 & CVE-2020-11652] - GitHub: https://github.com/fanjq99/CVE-2020-11652
[CVE-2020-11652: Saltstack CVE-2020-11652]
Before running any exploit against any system, make sure you are authorized by the owner of the target system(s) to perform such activity. In any other case, this would be considered as an illegal activity.
WARNING: Beware of using unverified exploits from sources such as GitHub or Exploit-DB. These exploits and PoCs could contain malware. For more information, see how to use exploits safely.
Risk Information
CVSS Score Source [?]: CVE-2020-11651
CVSS V2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P/E:H/RL:OF/RC:C
CVSS Base Score: | 7.5 (High) |
Impact Subscore: | 6.4 |
Exploitability Subscore: | 10.0 |
CVSS Temporal Score: | 6.5 (Medium) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 6.5 (Medium) |
CVSS Base Score: | 9.8 (Critical) |
Impact Subscore: | 5.9 |
Exploitability Subscore: | 3.9 |
CVSS Temporal Score: | 9.4 (Critical) |
CVSS Environmental Score: | NA (None) |
Modified Impact Subscore: | NA |
Overall CVSS Score: | 9.4 (Critical) |
STIG Risk Rating: Medium
Go back to menu.
Plugin Source
This is the debian_DSA-4676.nasl nessus plugin source code. This script is Copyright (C) 2020-2022 and is owned by Tenable, Inc. or an Affiliate thereof.
#
# (C) Tenable Network Security, Inc.
#
# The descriptive text and package checks in this plugin were
# extracted from Debian Security Advisory DSA-4676. The text
# itself is copyright (C) Software in the Public Interest, Inc.
#
include("compat.inc");
if (description)
{
script_id(136372);
script_version("1.9");
script_set_attribute(attribute:"plugin_modification_date", value:"2022/01/25");
script_cve_id("CVE-2019-17361", "CVE-2020-11651", "CVE-2020-11652");
script_xref(name:"DSA", value:"4676");
script_xref(name:"IAVA", value:"2020-A-0195-S");
script_xref(name:"CISA-KNOWN-EXPLOITED", value:"2022/05/03");
script_name(english:"Debian DSA-4676-1 : salt - security update");
script_summary(english:"Checks dpkg output for the updated package");
script_set_attribute(
attribute:"synopsis",
value:"The remote Debian host is missing a security-related update."
);
script_set_attribute(
attribute:"description",
value:
"Several vulnerabilities were discovered in salt, a powerful remote
execution manager, which could result in retrieve of user tokens from
the salt master, execution of arbitrary commands on salt minions,
arbitrary directory access to authenticated users or arbitrary code
execution on salt-api hosts."
);
script_set_attribute(
attribute:"see_also",
value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949222"
);
script_set_attribute(
attribute:"see_also",
value:"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959684"
);
script_set_attribute(
attribute:"see_also",
value:"https://security-tracker.debian.org/tracker/source-package/salt"
);
script_set_attribute(
attribute:"see_also",
value:"https://packages.debian.org/source/stretch/salt"
);
script_set_attribute(
attribute:"see_also",
value:"https://packages.debian.org/source/buster/salt"
);
script_set_attribute(
attribute:"see_also",
value:"https://www.debian.org/security/2020/dsa-4676"
);
script_set_attribute(
attribute:"solution",
value:
"Upgrade the salt packages.
For the oldstable distribution (stretch), these problems have been
fixed in version 2016.11.2+ds-1+deb9u3.
For the stable distribution (buster), these problems have been fixed
in version 2018.3.4+dfsg1-6+deb10u1."
);
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:H/RL:OF/RC:C");
script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H");
script_set_cvss3_temporal_vector("CVSS:3.0/E:H/RL:O/RC:C");
script_set_attribute(attribute:"cvss_score_source", value:"CVE-2020-11651");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'SaltStack Salt Master/Minion Unauthenticated RCE');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"p-cpe:/a:debian:debian_linux:salt");
script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:10.0");
script_set_attribute(attribute:"cpe", value:"cpe:/o:debian:debian_linux:9.0");
script_set_attribute(attribute:"vuln_publication_date", value:"2020/01/17");
script_set_attribute(attribute:"patch_publication_date", value:"2020/05/06");
script_set_attribute(attribute:"plugin_publication_date", value:"2020/05/07");
script_set_attribute(attribute:"generated_plugin", value:"current");
script_set_attribute(attribute:"stig_severity", value:"II");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2020-2022 and is owned by Tenable, Inc. or an Affiliate thereof.");
script_family(english:"Debian Local Security Checks");
script_dependencies("ssh_get_info.nasl");
script_require_keys("Host/local_checks_enabled", "Host/Debian/release", "Host/Debian/dpkg-l");
exit(0);
}
include("audit.inc");
include("debian_package.inc");
if (!get_kb_item("Host/local_checks_enabled")) audit(AUDIT_LOCAL_CHECKS_NOT_ENABLED);
if (!get_kb_item("Host/Debian/release")) audit(AUDIT_OS_NOT, "Debian");
if (!get_kb_item("Host/Debian/dpkg-l")) audit(AUDIT_PACKAGE_LIST_MISSING);
flag = 0;
if (deb_check(release:"10.0", prefix:"salt-api", reference:"2018.3.4+dfsg1-6+deb10u1")) flag++;
if (deb_check(release:"10.0", prefix:"salt-cloud", reference:"2018.3.4+dfsg1-6+deb10u1")) flag++;
if (deb_check(release:"10.0", prefix:"salt-common", reference:"2018.3.4+dfsg1-6+deb10u1")) flag++;
if (deb_check(release:"10.0", prefix:"salt-doc", reference:"2018.3.4+dfsg1-6+deb10u1")) flag++;
if (deb_check(release:"10.0", prefix:"salt-master", reference:"2018.3.4+dfsg1-6+deb10u1")) flag++;
if (deb_check(release:"10.0", prefix:"salt-minion", reference:"2018.3.4+dfsg1-6+deb10u1")) flag++;
if (deb_check(release:"10.0", prefix:"salt-proxy", reference:"2018.3.4+dfsg1-6+deb10u1")) flag++;
if (deb_check(release:"10.0", prefix:"salt-ssh", reference:"2018.3.4+dfsg1-6+deb10u1")) flag++;
if (deb_check(release:"10.0", prefix:"salt-syndic", reference:"2018.3.4+dfsg1-6+deb10u1")) flag++;
if (deb_check(release:"9.0", prefix:"salt-api", reference:"2016.11.2+ds-1+deb9u3")) flag++;
if (deb_check(release:"9.0", prefix:"salt-cloud", reference:"2016.11.2+ds-1+deb9u3")) flag++;
if (deb_check(release:"9.0", prefix:"salt-common", reference:"2016.11.2+ds-1+deb9u3")) flag++;
if (deb_check(release:"9.0", prefix:"salt-doc", reference:"2016.11.2+ds-1+deb9u3")) flag++;
if (deb_check(release:"9.0", prefix:"salt-master", reference:"2016.11.2+ds-1+deb9u3")) flag++;
if (deb_check(release:"9.0", prefix:"salt-minion", reference:"2016.11.2+ds-1+deb9u3")) flag++;
if (deb_check(release:"9.0", prefix:"salt-proxy", reference:"2016.11.2+ds-1+deb9u3")) flag++;
if (deb_check(release:"9.0", prefix:"salt-ssh", reference:"2016.11.2+ds-1+deb9u3")) flag++;
if (deb_check(release:"9.0", prefix:"salt-syndic", reference:"2016.11.2+ds-1+deb9u3")) flag++;
if (flag)
{
if (report_verbosity > 0) security_hole(port:0, extra:deb_report_get());
else security_hole(0);
exit(0);
}
else audit(AUDIT_HOST_NOT, "affected");
The latest version of this script can be found in these locations depending on your platform:
- Linux / Unix:
/opt/nessus/lib/nessus/plugins/debian_DSA-4676.nasl
- Windows:
C:\ProgramData\Tenable\Nessus\nessus\plugins\debian_DSA-4676.nasl
- Mac OS X:
/Library/Nessus/run/lib/nessus/plugins/debian_DSA-4676.nasl
Go back to menu.
How to Run
Here is how to run the Debian DSA-4676-1 : salt - security update as a standalone plugin via the Nessus web user interface (https://localhost:8834/):
- Click to start a New Scan.
- Select Advanced Scan.
- Navigate to the Plugins tab.
- On the top right corner click to Disable All plugins.
- On the left side table select Debian Local Security Checks plugin family.
- On the right side table select Debian DSA-4676-1 : salt - security update plugin ID 136372.
- Specify the target on the Settings tab and click to Save the scan.
- Run the scan.
Here are a few examples of how to run the plugin in the command line. Note that the examples below demonstrate the usage on the Linux / Unix platform.
Basic usage:
/opt/nessus/bin/nasl debian_DSA-4676.nasl -t <IP/HOST>
Run the plugin with audit trail message on the console:
/opt/nessus/bin/nasl -a debian_DSA-4676.nasl -t <IP/HOST>
Run the plugin with trace script execution written to the console (useful for debugging):
/opt/nessus/bin/nasl -T - debian_DSA-4676.nasl -t <IP/HOST>
Run the plugin with using a state file for the target and updating it (useful for running multiple plugins on the target):
/opt/nessus/bin/nasl -K /tmp/state debian_DSA-4676.nasl -t <IP/HOST>
Go back to menu.
References
IAVA | Information Assurance Vulnerability Alert:
- 2020-A-0195-S
- https://www.tenable.com/plugins/nessus/136372
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=949222
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959684
- https://packages.debian.org/source/buster/salt
- https://packages.debian.org/source/stretch/salt
- https://security-tracker.debian.org/tracker/source-package/salt
- https://www.debian.org/security/2020/dsa-4676
- https://vulners.com/nessus/DEBIAN_DSA-4676.NASL
- 136979 - Debian DLA-2223-1 : salt security update
- 136687 - FreeBSD : salt -- multiple vulnerabilities in salt-master process (6bf55af9-973b-11ea-9f2c-38d547003487)
- 139012 - openSUSE Security Update : salt (openSUSE-2020-1074)
- 136306 - openSUSE Security Update : salt (openSUSE-2020-564)
- 151732 - openSUSE 15 Security Update : salt (openSUSE-SU-2021:2106-1)
- 151062 - openSUSE 15 Security Update : salt (openSUSE-SU-2021:0899-1)
- 136695 - Photon OS 1.0: Salt3 PHSA-2020-1.0-0294
- 136694 - Photon OS 1.0: Salt PHSA-2020-1.0-0294
- 136699 - Photon OS 3.0: Salt3 PHSA-2020-3.0-0091
- 136402 - SaltStack < 2019.2.4 / 3000.x < 3000.2 Multiple Vulnerabilities
- 136423 - SaltStack < 2019.2.4 / 3000.x < 3000.2 Authentication Bypass (CVE-2020-11651)
- 136169 - SUSE SLED15 / SLES15 Security Update : salt (SUSE-SU-2020:1150-1)
- 136170 - SUSE SLES15 Security Update : salt (SUSE-SU-2020:1151-1)
- 138794 - SUSE SLES15 Security Update : Salt (SUSE-SU-2020:1973-1)
- 138795 - SUSE SLED15 / SLES15 Security Update : salt (SUSE-SU-2020:1974-1)
- 139659 - Ubuntu 16.04 LTS / 18.04 LTS : Salt vulnerabilities (USN-4459-1)
Version
This page has been produced using Nessus Professional 10.1.2 (#68) LINUX, Plugin set 202205072148.
Plugin file debian_DSA-4676.nasl version 1.9. For more plugins, visit the Nessus Plugin Library.
Go back to menu.