CVE-2023-45136
published 2023-10-25CVE-2023-45136: 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…
PriorityP264critical9.6CVSS 3.1
AVNACLPRNUIRSCCHIHAH
EXPLOIT
EPSS
5.17%
91.4th percentile
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. Depending on the rights of the user, this may allow remote code execution and full read and write access to the whole XWiki installation. This has been patched in XWiki 14.10.12 and 15.5-rc-1 by adding appropriate escaping. The vulnerable template file `createinline.vm` is part of XWiki's WAR and can be patched by manually applying the changes from the fix.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| xwiki | xwiki | — | — |
| xwiki | xwiki | >= 12.0 < 14.10.12 | 14.10.12 |
| xwiki | xwiki | >= 15.0 < 15.5 | 15.5 |
| xwiki | xwiki-platform | — | — |
| xwiki | xwiki-platform | — | — |
Detection & IOCsextracted from sources · hover to see the quote
otheralert(document.domain)", "data-xwiki-reference")'
- →Look for reflected XSS payloads in the page creation form, specifically in document name fields validated by a name strategy. The payload pattern includes alert(document.domain) with data-xwiki-reference attribute injection.
- →HTTP response must contain text/html content-type and return status 200 for the XSS to be reflected. Detection should correlate these response characteristics with suspicious input in the page creation endpoint.
- →The vulnerable template file createinline.vm is the injection point; monitor WAR deployments or file integrity of this template for unauthorized modifications or unpatched versions. ↗
- ·The name strategy validation (which enables the vulnerable code path) is disabled by default; exploitation requires it to be explicitly enabled in the XWiki configuration. ↗
- ·The vulnerability affects XWiki versions 12.0-rc-1 through 14.10.11 and 15.0 through 15.4; versions 14.10.12 and 15.5-rc-1 are patched. ↗
CVEs like this are exactly what “Exploited This Week” covers.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
XWiki Platform web templates vulnerable to reflected XSS in the create document form if name validation is enabled
osv·2023-10-25
CVE-2023-45136 [CRITICAL] XWiki Platform web templates vulnerable to reflected XSS in the create document form if name validation is enabled
XWiki Platform web templates vulnerable to reflected XSS in the create document form if name validation is enabled
### Impact
When document names are validated according to a name strategy (disabled by default), XWiki is vulnerable to a reflected XSS attack in the page creation form. To reproduce, make sure that "Validate names before saving" is enabled in the administration under "Editing" -> "Name strategies" and then open `/xwiki/bin/create/Main/%3Cscript%3Ealert%28%27Test%20Test%20Test%20Test%20Test%27%29%3C%2Fscript%3E` where `` is the URL of your XWiki installation. This displays an alert if the installation is vulnerable. This allows an attacker to execute arbitrary actions with the rights of the user opening the malicious link. Depending on the rights of the user, this may allow r
GHSA
XWiki Platform web templates vulnerable to reflected XSS in the create document form if name validation is enabled
ghsa·2023-10-25
CVE-2023-45136 [CRITICAL] CWE-79 XWiki Platform web templates vulnerable to reflected XSS in the create document form if name validation is enabled
XWiki Platform web templates vulnerable to reflected XSS in the create document form if name validation is enabled
### Impact
When document names are validated according to a name strategy (disabled by default), XWiki is vulnerable to a reflected XSS attack in the page creation form. To reproduce, make sure that "Validate names before saving" is enabled in the administration under "Editing" -> "Name strategies" and then open `/xwiki/bin/create/Main/%3Cscript%3Ealert%28%27Test%20Test%20Test%20Test%20Test%27%29%3C%2Fscript%3E` where `` is the URL of your XWiki installation. This displays an alert if the installation is vulnerable. This allows an attacker to execute arbitrary actions with the rights of the user opening the malicious link. Depending on the rights of the user, this may allow r
No detection rules found.
Nuclei
XWiki < 14.10.14 - Cross-Site Scripting
nuclei·CVSS 9.6
CVE-2023-45136 [CRITICAL] XWiki < 14.10.14 - Cross-Site Scripting
XWiki alert(document.domain)", "data-xwiki-reference")'
- 'contains(header, "text/html")'
- 'status_code == 200'
condition: and
# digest: 4a0a00473045022100f490042fa50ade06c32a56db0c462d17577ff032c9d3d8466d748df8cefeccd2022066575b237d281944b527eac51450240c4fa8dddfdfa81953e4a8165da569d7ef:922c64590222798bb761d5b6d8e72950
https://github.com/xwiki/xwiki-platform/commit/ba56fda175156dd35035f2b8c86cbd8ef1f90c2ehttps://github.com/xwiki/xwiki-platform/security/advisories/GHSA-qcj9-gcpg-4w2whttps://jira.xwiki.org/browse/XWIKI-20854https://github.com/xwiki/xwiki-platform/commit/ba56fda175156dd35035f2b8c86cbd8ef1f90c2ehttps://github.com/xwiki/xwiki-platform/security/advisories/GHSA-qcj9-gcpg-4w2whttps://jira.xwiki.org/browse/XWIKI-20854
2023-10-25
Published