CVE-2023-35157: XWiki Platform vulnerable to reflected cross-site scripting via delattachment action
Impact It's possible to perform an XSS by forging a request to a delete attachment action with a specific attachment name. Now this XSS can be exploited only if the attacker knows the CSRF token of the user, or if the user ignores the warning about the missing CSRF token.
Patches
The vulnerability has been patched in XWiki 15.1-rc-1 and XWiki 14.10.6.
Workarounds
There's no workaround for this other than upgrading XWiki.
References
Jira ticket: https://jira.xwiki.org/browse/XWIKI-20339 Commit containing the fix: https://github.com/xwiki/xwiki-platform/commit/35e9073ffec567861e0abeea072bd97921a3decf
For more information
If you have any questions or comments about this advisory: Open an issue in Jira XWiki.org Email us at Security Mailing List
Other sources
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. It's possible to perform an XSS by forging a request to a delete attachment action with a specific attachment name. Now this XSS can be exploited only if the attacker knows the CSRF token of the user, or if the user ignores the warning about the missing CSRF token. The vulnerability has been patched in XWiki 15.1-rc-1 and XWiki 14.10.6.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.xwiki.platform:xwiki-platform-oldcoreto a version that resolves this vulnerability.Fixed in 15.1-rc-1 - Upgrade
Upgrade
maven/org.xwiki.platform:xwiki-platform-oldcoreto a version that resolves this vulnerability.Fixed in 14.10.6 - Upgrade
Upgrade
XWiki Platformto a version that resolves this vulnerability.Fixed in 15.1-rc-1 - Upgrade
Upgrade
XWiki Platformto a version that resolves this vulnerability.Fixed in 14.10.6
Event History
Frequently Asked Questions
What is CVE-2023-35157?
CVE-2023-35157 is a vulnerability in XWiki Platform, a generic wiki platform, that allows for cross-site scripting (XSS) attacks by forging a request to delete an attachment with a specific name.
What is the severity of CVE-2023-35157?
CVE-2023-35157 has a severity rating of high (4.8).
How can CVE-2023-35157 be exploited?
CVE-2023-35157 can only be exploited if the attacker knows the CSRF token of the target XWiki Platform instance.
Which versions of XWiki Platform are affected by CVE-2023-35157?
XWiki Platform versions up to 14.10.6 and version 15.0 are affected by CVE-2023-35157.
Is there a fix for CVE-2023-35157?
Yes, a fix for CVE-2023-35157 is available in the XWiki Platform commit 35e9073ffec567861e0abeea072bd97921a3decf.