VDB
KO
MEDIUM

GHSA-vgwr-23fq-pr7g

XWiki Platform vulnerable to potential arbitrary file writing using path traversal from (subwiki) admin

Details

### Impact A potential path traversal vulnerability allow an attacker who manages to get a malicious WebJar extension installed on the wiki to write arbitrary files. While the consequences could be severe like overriding configuration files and setting the superadmin password, the attack first requires that the attacker already has admin access to at least a subwiki to be able to install a malicious extension. Further, the attacker needs to publish a malicious extension in an extension repository that is configured in the instance.

### Patches This vulnerability has been patched in XWiki 16.10.17, 17.4.9, 17.10.3, and 18.0.0RC1.

### Workarounds XWiki is not aware of any workarounds except for being careful whom developers grant script and admin rights to.

### Resources * https://jira.xwiki.org/browse/XWIKI-23902 * https://github.com/xwiki/xwiki-platform/commit/9f747fcd3200259a1de51957d3f5f6acc8e3816c

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven / org.xwiki.platform:xwiki-platform-webjars-api
Introduced in: 9.6-rc-1 Fixed in: 16.10.17
Fix # pom.xml: bump <version>16.10.17</version> for org.xwiki.platform:xwiki-platform-webjars-api
Maven / org.xwiki.platform:xwiki-platform-webjars-api
Introduced in: 17.0.0-rc-1 Fixed in: 17.4.9
Fix # pom.xml: bump <version>17.4.9</version> for org.xwiki.platform:xwiki-platform-webjars-api
Maven / org.xwiki.platform:xwiki-platform-webjars-api
Introduced in: 17.5.0-rc-1 Fixed in: 17.10.3
Fix # pom.xml: bump <version>17.10.3</version> for org.xwiki.platform:xwiki-platform-webjars-api

References