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

    Threat Intelligence

    Exploit Maturity
    Proof of concept
    EPSS
    0.05% (17th 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 ID SNYK-JAVA-ORGXWIKIPLATFORM-7300154
  • published 21 Jun 2024
  • disclosed 20 Jun 2024
  • credit Unknown

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
Expand this section

Snyk

Recommended
6.3 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    Active
  • Confidentiality (VC)
    None
  • Integrity (VI)
    Low
  • Availability (VA)
    None
  • Confidentiality (SC)
    High
  • Integrity (SI)
    High
  • Availability (SA)
    High