2021-01-02 04:56:15 +00:00
id : CVE-2020-16846
2020-11-18 17:21:07 +00:00
info :
2022-04-29 19:58:07 +00:00
name : SaltStack <=3002 - Shell Injection
2020-11-18 17:21:07 +00:00
author : dwisiswant0
severity : critical
2023-03-21 08:39:29 +00:00
description : |
SaltStack Salt through 3002 allows an unauthenticated user with network access to the Salt API to use shell injections to run code on the Salt-API using the SSH client.
2023-09-06 12:22:36 +00:00
remediation : |
Upgrade to a patched version of SaltStack (>=3003) to mitigate this vulnerability.
2021-08-18 11:37:49 +00:00
reference :
2022-04-29 19:58:07 +00:00
- https://saltproject.io/on-november-3-2020-saltstack-publicly-disclosed-three-new-cves/
2020-11-18 17:21:07 +00:00
- https://mp.weixin.qq.com/s/R8qw_lWizGyeJS0jOcYXag
- https://github.com/vulhub/vulhub/tree/master/saltstack/CVE-2020-16846
2022-04-29 19:58:07 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2020-16846
2023-07-11 19:49:27 +00:00
- http://lists.opensuse.org/opensuse-security-announce/2020-11/msg00029.html
2021-09-10 11:26:40 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
2022-04-22 10:38:41 +00:00
cvss-score : 9.8
2021-09-10 11:26:40 +00:00
cve-id : CVE-2020-16846
cwe-id : CWE-78
2023-08-31 11:46:18 +00:00
epss-score : 0.97514
epss-percentile : 0.99971
2023-09-06 12:22:36 +00:00
cpe : cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : saltstack
product : salt
tags : vulhub,cve,cve2020,saltstack,kev
2023-07-20 07:43:09 +00:00
variables :
priv : "{{to_lower(rand_text_alpha(5))}}"
roaster : "{{to_lower(rand_text_alpha(6))}}"
2023-04-27 04:28:59 +00:00
http :
2020-11-18 17:21:07 +00:00
- method : POST
path :
- "{{BaseURL}}/run"
2023-07-11 19:49:27 +00:00
2023-07-20 07:43:09 +00:00
body : "token=1337&client=ssh&tgt=*&fun=a&roster={{roaster}}&ssh_priv={{priv}}"
2023-07-11 19:49:27 +00:00
2020-11-18 17:21:07 +00:00
headers :
Content-Type : application/x-www-form-urlencoded # CherryPy will abort w/o define this header
2023-03-21 08:39:29 +00:00
2020-11-18 17:21:07 +00:00
matchers-condition : and
matchers :
2023-07-11 19:49:27 +00:00
- type : dsl
dsl :
- regex("CherryPy\/([0-9.]+)", header) || regex("CherryPy ([0-9.]+)", body)
2020-11-18 17:21:07 +00:00
- type : word
2023-03-21 08:39:29 +00:00
part : body
2020-11-18 17:21:07 +00:00
words :
2023-03-21 08:39:29 +00:00
- "An unexpected error occurred"
2020-11-18 17:21:07 +00:00
- type : word
2023-03-21 08:39:29 +00:00
part : header
2020-11-18 17:21:07 +00:00
words :
2023-03-21 08:39:29 +00:00
- "application/json"
2022-04-29 19:58:07 +00:00
2023-03-21 08:39:29 +00:00
- type : status
status :
- 500