XWiki Platform: Privilege escalation from edit to script right through Live Data editing
xwiki-platform
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-livedata-livetable Maven |
|
|
xwiki-platform
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-livedata-livetable Maven |
|
|
18.1.0-rc-1XWiki Platform is a generic wiki platform. From 13.4-rc-1 until 16.10.17, 17.4.10, 17.10.4, and 18.1.0-rc-1, the Live Data edit REST API allows a user who can edit a page to change that page's rights without executing the normal document-saving authorization checks. The user can grant script right and then execute potentially dangerous Velocity scripts or send unfiltered HTML and JavaScript to clients. The same missing checks can circumvent extension security controls implemented as listeners for UserUpdatingDocumentEvent and related user document events. This issue is fixed in versions 16.10.17, 17.4.10, 17.10.4, and 18.1.0-rc-1.
From the CVE record · GitHub_M
The Live Data edit REST API skips normal document-saving authorization checks when a user with page-edit permission changes that page’s rights. That user can grant script rights, execute potentially dangerous Velocity scripts, or send unfiltered HTML and JavaScript to clients. The missing checks can also bypass extension security controls tied to user document events.
Check deployments using Maven package org.xwiki.platform:xwiki-platform-livedata-livetable in the affected ranges: >=13.4-rc-1 <16.10.17, >=17.0.0-rc-1 <17.4.10, >=17.5.0-rc-1 <17.10.4, or >=18.0.0-rc-1 <18.1.0-rc-1.