Eval Injection Affecting org.xwiki.platform:xwiki-platform-search-solr-ui package, versions [7.2-rc-1,14.10.20)[15.0-rc-1,15.5.4)[15.6-rc-1,15.10-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.25% (65th 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 Eval Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGXWIKIPLATFORM-6595901
  • published11 Apr 2024
  • disclosed10 Apr 2024
  • creditUnknown

Introduced: 10 Apr 2024

CVE-2024-31984  (opens in a new tab)
CWE-95  (opens in a new tab)

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-search-solr-ui to version 14.10.20, 15.5.4, 15.10-rc-1 or higher.

Overview

Affected versions of this package are vulnerable to Eval Injection via the manipulation of the space title and Solr space facet. An attacker can execute arbitrary Groovy code on the XWiki installation, compromising its confidentiality, integrity, and availability by creating a document with a specially crafted title and using the search UI.

Workaround

This vulnerability can be mitigated by modifying the Main.SolrSpaceFacet page following this patch.

PoC

  1. Create a document with title {{/html}}{{async}}{{groovy}}println("Hello from Groovy Title!"){{/groovy}}{{/async}} and content Test Document;

  2. Using the search UI, search for "Test Document";

  3. Deploy the Location facet on the right of the screen, next to the search results.

The installation is vulnerable if you see an item such as:

Hello from Groovy Title!
</a>
<div class="itemCount">1</div>
</li>
</ul>
{{/html}}

CVSS Scores

version 3.1