Incorrect Privilege Assignment Affecting org.xwiki.platform:xwiki-platform-oldcore package, versions [13.4.7,13.5)[13.10.3,14.10.21)[15.0-rc-1,15.5.5)[15.6-rc-1,15.10.6)[16.0.0-rc-1,16.0.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.05% (18th 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 Incorrect Privilege Assignment vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGXWIKIPLATFORM-7300154
  • published21 Jun 2024
  • disclosed20 Jun 2024
  • creditUnknown

Introduced: 20 Jun 2024

CVE-2024-37899  (opens in a new tab)
CWE-266  (opens in a new tab)

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-oldcore to version 13.5, 14.10.21, 15.5.5, 15.10.6, 16.0.0 or higher.

Overview

org.xwiki.platform:xwiki-platform-oldcore is a generic wiki platform offering runtime services for applications built on top of it.

Affected versions of this package are vulnerable to Incorrect Privilege Assignment. An attacker can execute arbitrary code by embedding malicious scripts in their own user profile, which are then executed with elevated privileges when an admin attempts to disable the account.

PoC

As a user without script nor programming rights, edit the about section of your user profile and add

{{groovy}}services.logging.getLogger("attacker").error("Hello from Groovy!"){{/groovy}}.

As an admin, go to the user profile and click the "Disable this account" button.

Then, reload the page. If the logs show attacker - Hello from Groovy! then the instance is vulnerable.

CVSS Scores

version 4.0
version 3.1