XWiki Attachment Metadata Access Vulnerability via Unauthenticated REST API

Vulnerability

A vulnerability exists in XWiki versions 1.8.1 prior to 14.10.22, 15.0-rc-1 prior to 15.10.12, 16.0.0-rc-1 prior to 16.4.3, and 16.5.0-rc-1 prior to 16.7.0. This vulnerability allows unauthenticated users to access the metadata of any attachment within the wiki through the wiki attachment REST endpoint. The issue arises because there is no access control based on user rights, enabling exploitation even in private wikis.

Impact

Exploitation of this vulnerability leads to unauthorized access to attachment metadata, including details such as file names, authors, and other related information, which could be sensitive.

Reproduction

To reproduce this vulnerability, remove the 'view' permission from the 'guest' user on the entire wiki, then log out. Afterward, access the wiki attachment REST endpoint for a space or page. Despite the 'view' permission being revoked, the response will include a list of attachments, contradicting the expected outcome of an empty list.

Remediation

Users can upgrade to XWiki versions 14.10.22, 15.10.12, 16.4.3, or 16.7.0 to address this vulnerability. For those using the XWiki Debian package, it's recommended to replace the 'xwiki-platform-rest-server-15.10.11.jar' file with the latest SNAPSHOT JAR files available on the 'XWiki Nexus Snapshots' repository.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
3.1
impact
0.6
exploitability
9.5
remediation
7.7
relevance
0.0
threat
6.4
urgency
2.9
incentive
10.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.