XWiki allows unregistered users to access private pages information through REST endpoint
xwiki-platform
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-rest-server Maven |
|
|
xwiki-platform
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-rest-server Maven |
|
|
XWiki Platform is a generic wiki platform. Prior to 15.10.14, 16.4.6, and 16.10.0-rc-1, protected pages are listed when requesting the REST endpoints /rest/wikis/[wikiName]/pages even if the user doesn't have view rights on them. It's particularly true if the entire wiki is protected with "Prevent unregistered user to view pages": the endpoint would still list the pages of the wiki, though only for the main wiki. The problem has been patched in XWiki 15.10.14, 16.4.6, 16.10.0RC1. In those versions the endpoint can still be requested but the result is filtered out based on pages rights.
From the CVE record · GitHub_M
The XWiki Platform REST endpoint /rest/wikis/[wikiName]/pages lists protected pages even when the requester lacks view rights. A remote requester can see those pages listed without user interaction; this also affects unregistered users when the main wiki is configured to prevent them from viewing pages.
Operators of Maven package org.xwiki.platform:xwiki-platform-rest-server should check versions >=1.9M1 and <15.10.14, >=16.0.0-rc-1 and <16.4.6, or >=16.5.0-rc-1 and <16.10.0-rc-1.