Incorrect Authorization Affecting org.xwiki.platform:xwiki-platform-repository-server-ui package, versions [,15.10.9)[16.0.0-rc-1,16.3.0)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

Exploit Maturity
Proof of concept

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 Authorization vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGXWIKIPLATFORM-8501332
  • published13 Dec 2024
  • disclosed12 Dec 2024
  • creditUnknown

Introduced: 12 Dec 2024

NewCVE-2024-55662  (opens in a new tab)
CWE-863  (opens in a new tab)

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-repository-server-ui to version 15.10.9, 16.3.0 or higher.

Overview

org.xwiki.platform:xwiki-platform-repository-server-ui is an application for managing extensions in a repository based on XWiki.

Affected versions of this package are vulnerable to Incorrect Authorization through the ExtensionCode.ExtensionClass object. An authenticated attacker without script nor programming rights can execute arbitrary code on the server by manipulating the description field to execute Groovy scripts.

Workaround

This vulnerability can be mitigated by disabling the Extension Repository Application if it is not needed, or by manually applying this patch to the page ExtensionCode.ExtensionSheet, as well as this patch to the page ExtensionCode.ExtensionAuthorsDisplayer.

PoC

As a normal user without script nor programming rights, go to your profile and add an object of type ExtensionCode.ExtensionClass. Set the description to {{async}}{{groovy}}println("Hello from Description"){{/groovy}}{{/async}} and press Save and View. If the description displays as Hello from Description without any error, then the instance is vulnerable.

CVSS Scores

version 4.0
version 3.1