42 lines
1.3 KiB
YAML
42 lines
1.3 KiB
YAML
id: CVE-2020-16846
|
|
|
|
info:
|
|
name: SaltStack <=3002 - Shell Injection
|
|
author: dwisiswant0
|
|
severity: critical
|
|
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.
|
|
reference:
|
|
- https://saltproject.io/on-november-3-2020-saltstack-publicly-disclosed-three-new-cves/
|
|
- https://mp.weixin.qq.com/s/R8qw_lWizGyeJS0jOcYXag
|
|
- https://github.com/vulhub/vulhub/tree/master/saltstack/CVE-2020-16846
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2020-16846
|
|
classification:
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
|
cvss-score: 9.8
|
|
cve-id: CVE-2020-16846
|
|
cwe-id: CWE-78
|
|
tags: cve,cve2020,saltstack,kev
|
|
|
|
requests:
|
|
- method: POST
|
|
path:
|
|
- "{{BaseURL}}/run"
|
|
body: "token=1337&client=ssh&tgt=*&fun=a&roster=projectdiscovery&ssh_priv=nuclei"
|
|
headers:
|
|
Content-Type: application/x-www-form-urlencoded # CherryPy will abort w/o define this header
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: status
|
|
status:
|
|
- 500
|
|
- type: word
|
|
words:
|
|
- "application/json"
|
|
part: header
|
|
- type: word
|
|
words:
|
|
- "An unexpected error occurred"
|
|
part: body
|
|
|
|
# Enhanced by mp on 2022/04/27
|