Privilege Escalation Affecting org.xwiki.platform:xwiki-platform-display-api package, versions [,14.10.7)[15.0-rc-1,15.2-rc-1)


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.14% (51st 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-6050284
  • published8 Nov 2023
  • disclosed7 Nov 2023
  • creditUnknown

Introduced: 7 Nov 2023

CVE-2023-46244  (opens in a new tab)
CWE-264  (opens in a new tab)

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-display-api to version 14.10.7, 15.2-rc-1 or higher.

Overview

Affected versions of this package are vulnerable to Privilege Escalation due to insecure logic for displaying document titles in the AbstractDocumentTitleDisplayer.java file. This allows an attacker with script right to gain programming right through the title displayer, and access the API.

PoC

As a user with script but not programming right, create a document with the following content:

{{velocity}}
#set($main = $xwiki.getDocument('AppWithinMinutes.DynamicMessageTool'))
$main.setTitle('$doc.getDocument().getContentAuthor()')
$main.getPlainTitle()
{{/velocity}}

CVSS Scores

version 3.1