Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') Affecting org.xwiki.platform:xwiki-platform-search-ui package, versions [4.5-rc-1,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.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 Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGXWIKIPLATFORM-6129512
  • published17 Dec 2023
  • disclosed15 Dec 2023
  • creditUnknown

Introduced: 15 Dec 2023

CVE-2023-50721  (opens in a new tab)
CWE-95  (opens in a new tab)

How to fix?

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

Overview

org.xwiki.platform:xwiki-platform-search-ui is a Platform Search UI which allows searching on the full wiki using wildcards, searching by space, getting search result RSS feeds and more. By default provides a Database-backed search but allows pluging other engines (such as Lucene, Solr and more)

Affected versions of this package are vulnerable to Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') due to improper escaping of the id and label of search user interface extensions. An attacker can execute arbitrary code by injecting XWiki syntax containing script macros, including Groovy macros, which can compromise the confidentiality, integrity, and availability of the entire XWiki instance. This attack can be executed by any user who can edit a wiki page, such as a user's profile, which is editable by default.

Workaround

This vulnerability can be mitigated by manually applying a patch to the page XWiki.SearchAdmin.

CVSS Scores

version 3.1