Cross-Site Request Forgery (CSRF) Affecting org.xwiki.platform:xwiki-platform-realtime-ui package, versions [,14.10.19)[15.0-rc-1,15.5.4)[15.6-rc-1,15.9)


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.04% (12th 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-6595839
  • published11 Apr 2024
  • disclosed10 Apr 2024
  • creditUnknown

Introduced: 10 Apr 2024

CVE-2024-31988  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-realtime-ui to version 14.10.19, 15.5.4, 15.9 or higher.

Overview

org.xwiki.platform:xwiki-platform-realtime-ui is a variety of wiki pages providing configuration and services for real-time editors.

Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) via the realtime HTML Converter API. An attacker can execute arbitrary code with the interaction of an admin user that has programming rights by getting an admin user to either visit a crafted URL or to view an image with this URL that could be in a comment. This compromises the confidentiality, integrity, and availability of the whole installation.

Workaround

This vulnerability can be mitigated by updating RTFrontend.ConvertHTML following this patch. However, this may break some synchronization processes in the realtime editor, so upgrading should be the preferred method on installations where this editor is used.

PoC

<xwiki-host>/xwiki/bin/get/RTFrontend/ConvertHTML?wiki=xwiki&space=Main&page=WebHome&text=%7B%7Bvelocity%7D%7D%24logtool.error%28%22Hello%20from%20Velocity%20%21%22%29%7B%7B%2Fvelocity%7D%7D

CVSS Scores

version 3.1