VDB
Sign up
CRITICAL9.3

GHSA-qrvh-r3f2-9h4r

XWiki Platform has an Unauthenticated XAR Import via REST /wikis/{wikiName}

Quick fix

GHSA-qrvh-r3f2-9h4r — org.xwiki.platform:xwiki-platform-rest-server: upgrade to the fixed version with the command below.

# pom.xml: bump <version>16.10.17</version> for org.xwiki.platform:xwiki-platform-rest-server

Details

### Impact

`POST /wikis/{wikiName}` executes a XAR import without performing any authentication or authorization checks, allowing an unauthenticated attacker to create or update documents in the target wiki

### Patches

This vulnerability has been patched in XWiki 16.10.17, 17.4.9, 17.10.3, 18.0.1 and 18.1.0-rc-1.

### Workarounds

XWiki is not aware of any workarounds other than adding a rule into an HTTP proxy to prevent access POST request in the `/wikis/{wikiName}[/]` endpoint.

### Resources

* https://jira.xwiki.org/browse/XWIKI-23953 * https://github.com/xwiki/xwiki-platform/commit/4b7b95b79256374d487e9ece1dc48f527966990f

### For more information

If there are any questions or comments about this advisory: * Open an issue in [Jira XWiki.org](https://jira.xwiki.org/) * Send an email to the [Security Mailing List](mailto:security@xwiki.org)

### Attribution

Reported by Sho Odagiri (GMO Cybersecurity by Ierae, Inc.).

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.xwiki.platform:xwiki-platform-rest-server
Introduced in: 15.10.6Fixed in: 16.10.17
Fix# pom.xml: bump <version>16.10.17</version> for org.xwiki.platform:xwiki-platform-rest-server
Maven/org.xwiki.platform:xwiki-platform-rest-server
Introduced in: 17.0.0-rc-1Fixed in: 17.4.9
Fix# pom.xml: bump <version>17.4.9</version> for org.xwiki.platform:xwiki-platform-rest-server
Maven/org.xwiki.platform:xwiki-platform-rest-server
Introduced in: 17.5.0Fixed in: 17.10.3
Fix# pom.xml: bump <version>17.10.3</version> for org.xwiki.platform:xwiki-platform-rest-server
Maven/org.xwiki.platform:xwiki-platform-rest-server
Introduced in: 18.0.0-rc-1Fixed in: 18.1.0-rc-1
Fix# pom.xml: bump <version>18.1.0-rc-1</version> for org.xwiki.platform:xwiki-platform-rest-server

References

Check it before you install it

One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.

curl -s https://vdb.ai.kr/v1/ai/check-packages \
  -H 'Content-Type: application/json' \
  -d '{"packages":["pkg:maven/org.xwiki.platform/xwiki-platform-rest-server"]}'