Cross-site Request Forgery (CSRF) Affecting org.xwiki.platform:xwiki-platform-web-war package, versions [1.8,14.10.8) [15.0-rc-1,15.2)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JAVA-ORGXWIKIPLATFORM-5769704
- published 11 Jul 2023
- disclosed 10 Jul 2023
- credit Unknown
Introduced: 10 Jul 2023
CVE-2023-37277 Open this link in a new tabHow to fix?
Upgrade org.xwiki.platform:xwiki-platform-web-war
to version 14.10.8, 15.2 or higher.
Overview
Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF). The REST API allows executing all actions via POST requests and accepts text/plain
, multipart/form-data
or application/www-form-urlencoded
as content types which can be sent via regular HTML forms. With the interaction of a user with programming rights, this allows remote code execution through script macros and thus impacts the integrity, availability and confidentiality of the whole XWiki installation.
Note:
For regular cookie-based authentication, the vulnerability is mitigated by SameSite cookie restrictions but as of March 2023, these are not enabled by default in Firefox and Safari.
Workaround
It is possible to check for the Origin
header in a reverse proxy to protect the REST endpoint from CSRF attacks, see the Jira issue for an example configuration.