CVE-2023-46244
XWiki Platform privilege escalation from script right to programming right through title displayer
Description
Impact
In XWiki Platform, it's possible for a user to write a script in which any velocity content is executed with the right of any other document content author.
To reproduce:
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}}
Since this API require programming right and the user does not have it, the expected result is $doc.document.authors.contentAuthor (not executed script), unfortunately with the security vulnerability we get XWiki.superadmin which shows that the title was executed with the right of the unmodified document.
Patches
This has been patched in XWiki 14.10.7 and 15.2-RC-1.
Workarounds
There are no known workarounds for it.
References
- https://jira.xwiki.org/browse/XWIKI-20624
- https://github.com/xwiki/xwiki-platform/commit/11a9170dfe63e59f4066db67f84dbfce4ed619c6
- https://jira.xwiki.org/browse/XWIKI-20625
- https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3
For more information
If you have any questions or comments about this advisory:
- Open an issue in Jira XWiki.org
- Email us at Security Mailing List
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.xwiki.platform » xwiki-platform-display-api | >= 3.2-milestone-3, < 14.10.7>= 15.0, < 15.2-rc-1 | 14.10.7, 15.2-rc-1 |
Blast radius
61% of the dependent artifacts (618) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 2,143 |
| 2 hops | 40,194 |
| 3 hops | 34,278 |
| 4 hops | 7,888 |
| 5 hops | 330 |
| 6 hops | 4 |
Most used dependents
- org.xwiki.platform » xwiki-platform-oldcore449 usages
- org.xwiki.platform » xwiki-platform-test-docker101 usages
- org.xwiki.platform » xwiki-platform-rest-server85 usages
- org.xwiki.platform » xwiki-platform-tool-packager-plugin77 usages
- org.xwiki.platform » xwiki-platform-administration-ui75 usages
- org.xwiki.platform » xwiki-platform-rendering-macro-include74 usages
- org.xwiki.platform » xwiki-platform-test-page72 usages
- org.xwiki.platform » xwiki-platform-test-oldcore71 usages
- org.xwiki.platform » xwiki-platform-panels-ui62 usages
- org.xwiki.platform » xwiki-platform-configuration-default57 usages
- org.phenotips » patient-data-api52 usages
- com.xwiki.licensing » application-licensing-licensor-api51 usages
- org.xwiki.platform » xwiki-platform-skin-skinx49 usages
- org.xwiki.platform » xwiki-platform-livetable-ui48 usages
- org.xwiki.platform » xwiki-platform-rendering-wikimacro-store47 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-46244 | nvd.nist.gov |
| Package | xwiki/xwiki-platform | github.com |
| Web | xwiki/xwiki-platform advisory GHSA-rmxw-c48h-2vf5 | github.com |
| Web | xwiki/xwiki-platform commit 11a9170 | github.com |
| Web | xwiki/xwiki-platform commit 41d7dca | github.com |
| Web | browse/XWIKI-20624 | jira.xwiki.org |
| Web | browse/XWIKI-20625 | jira.xwiki.org |
