Cross-site Request Forgery (CSRF) Affecting org.xwiki.platform:xwiki-platform-rest-server package, versions [1.8,14.10.8)[15.0-rc-1,15.2)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.26% (66th percentile)

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 Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGXWIKIPLATFORM-5769705
  • published11 Jul 2023
  • disclosed10 Jul 2023
  • creditUnknown

Introduced: 10 Jul 2023

CVE-2023-37277  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-rest-server 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.

CVSS Scores

version 3.1