Insecure Inherited Permissions Affecting org.xwiki.platform:xwiki-platform-uiextension-api package, versions [,14.10.19)[15.6-rc-1,15.9-rc-1)[15.0-rc-1,15.5.4)


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.13% (50th 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 IDSNYK-JAVA-ORGXWIKIPLATFORM-6595838
  • published11 Apr 2024
  • disclosed10 Apr 2024
  • creditUnknown

Introduced: 10 Apr 2024

CVE-2024-31997  (opens in a new tab)
CWE-277  (opens in a new tab)

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-uiextension-api to version 14.10.19, 15.9-rc-1, 15.5.4 or higher.

Overview

org.xwiki.platform:xwiki-platform-uiextension-api is a Java API for the User Interface extensions

Affected versions of this package are vulnerable to Insecure Inherited Permissions due to the improper handling of UIExtension parameters. An attacker can execute arbitrary code on the system by creating a UIExtension object with malicious parameters and adding it to a document, such as the user's profile. This exploitation allows unauthorized access to the system's programming rights, leading to a compromise of confidentiality, integrity, and availability of the XWiki installation.

PoC

Extension Point ID: org.xwiki.platform.panels.Applications
Extension ID: platform.panels.myFakeApplication
Extension parameters: 
label=I got programming right: $services.security.authorization.hasAccess('programming')
target=Main.WebHome
targetQueryString=
icon=icon:bomb
Extension Scope: "Current User".

CVSS Scores

version 3.1