Cross-Site Request Forgery (CSRF) Affecting org.xwiki.platform:xwiki-platform-administration-ui package, versions [2.3,14.10.15)[15.0-rc-1,15.5.2)[15.6-rc-1,15.7-rc-1)


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.21% (60th 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-6129508
  • published17 Dec 2023
  • disclosed16 Dec 2023
  • creditUnknown

Introduced: 16 Dec 2023

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

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-administration-ui to version 14.10.15, 15.5.2, 15.7-rc-1 or higher.

Overview

Affected versions of this package are vulnerable to Cross-Site Request Forgery (CSRF) via the XWiki.ConfigurableClass. Exploiting this vulnerability allows complete remote code execution with programming rights, thus compromising the confidentiality, integrity, and availability of the entire XWiki installation by tricking an admin user into visiting a crafted URL or embedding the URL as an image source in wiki content. This is only exploitable if the user visiting the crafted URL has edit rights on at least one configuration section.

Workaround

The vulnerability can be mitigated by manually applying the patch to the document XWiki.ConfigurableClass.

PoC


<xwiki-host>/xwiki/bin/view/%22%3E%7B%7B%2Fhtml%7D%7D%7B%7Basync%20context%3D%22request/parameters%22%7D%7D%7B%7Bvelocity%7D%7D%23evaluate(%24request/eval)/?sheet=XWiki.ConfigurableClass&xpage=view&eval=$services.logging.getLogger(%22attacker%22).error(%22Attack%20success%20$hasProgramming%22)

Where <xwiki-host> is the URL of your XWiki installation.

CVSS Scores

version 3.1