GitHub Advisory Database
GHSA-r38m-cgpg-qj69
XWiki leaks password hashes and other accessible password properties
Details
Impact
Any user with edit right on a page of the wiki can create an XClass with a database list property that references a password property, for example the password hash that is stored for users. When adding an object of that XClass, the content of that password property is displayed. In practice, with a standard rights setup, this means that any user with an account on the wiki can access password hashes of all users, and possibly other password properties (with hashed or plain storage) that are on pages that the user can view.
Patches
This vulnerability has been pached in XWiki 16.4.7, 16.10.5, and 17.2.0 by disallowing the use of password properties in database list properties. Additionally, queries for email properties are disallowed, too, when email obfuscation is enabled.
Workarounds
We're not aware of any workarounds.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-oldcore | From 9.8-rc-1 before 16.4.7 (fixed in 16.4.7) |
| Maven | org.xwiki.platform:xwiki-platform-oldcore | From 16.5.0-rc-1 before 16.10.5 (fixed in 16.10.5) |
| Maven | org.xwiki.platform:xwiki-platform-oldcore | From 17.0.0-rc-1 before 17.2.0-rc-1 (fixed in 17.2.0-rc-1) |
| Maven | org.xwiki.platform:xwiki-platform-legacy-oldcore | From 9.8-rc-1 before 16.4.7 (fixed in 16.4.7) |
| Maven | org.xwiki.platform:xwiki-platform-legacy-oldcore | From 16.5.0-rc-1 before 16.10.5 (fixed in 16.10.5) |
| Maven | org.xwiki.platform:xwiki-platform-legacy-oldcore | From 17.0.0-rc-1 before 17.2.0-rc-1 (fixed in 17.2.0-rc-1) |