XWiki does not require right warnings for XClass definitions
xwiki-platform
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-security-requiredrights-default Maven |
|
|
xwiki-platform
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-security-requiredrights-default Maven |
|
|
XWiki is a generic wiki platform. In versions before 15.10.16, 16.0.0-rc-1 through 16.4.6, and 16.5.0-rc-1 through 16.10.1, when an attacker without script or programming right creates an XClass definition in XWiki (requires edit right), and that same document is later edited by a user with script, admin, or programming right, malicious code could be executed with the rights of the editing user without prior warning. In particular, this concerns custom display code, the script of computed properties and queries in database list properties. Note that warnings before editing documents with dangerous properties have only been introduced in XWiki 15.9, before that version, this was a known issue and the advice was simply to be careful. This has been patched in XWiki 16.10.2, 16.4.7 and 15.10.16 by adding an analysis for the respective XClass properties.
From the CVE record · GitHub_M
Affected XWiki versions do not warn a privileged user before they edit a document containing certain dangerous XClass properties. An attacker with edit right but without script or programming right can create an XClass definition that executes malicious code with the editing user's rights if a user with script, admin, or programming right later edits the same document.
Check XWiki installations using Maven package org.xwiki.platform:xwiki-platform-security-requiredrights-default before 15.10.16, from 16.0.0-rc-1 to before 16.4.7, or from 16.5.0-rc-1 to before 16.10.2.