XWiki Platform: Password hash might be leaked by diff once the xobject holding them is deleted
xwiki-platform
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-oldcore Maven |
|
|
xwiki-platform
| Product | Affected | Fixed in |
|---|---|---|
| org.xwiki.platform:xwiki-platform-oldcore Maven |
|
|
XWiki Platform is a generic wiki platform. Starting in version 5.0-rc-1 and prior to versions 14.10.19, 15.5.4, and 15.9-rc-1, it is possible to access the hash of a password by using the diff feature of the history whenever the object storing the password is deleted. Using that vulnerability it's possible for an attacker to have access to the hash password of a user if they have rights to edit the users' page. With the default right scheme in XWiki this vulnerability is normally prevented on user profiles, except by users with Admin rights. Note that this vulnerability also impacts any extensions that might use passwords stored in xobjects: for those usecases it depends on the right of those pages. There is currently no way to be 100% sure that this vulnerability has been exploited, as an attacker with enough privilege could have deleted the revision where the xobject was deleted after rolling-back the deletion. But again, this operation requires high privileges on the target page (Admin right). A page with a user password xobject which have in its history a revision where the object has been deleted should be considered at risk and the password should be changed there. a diff, to ensure it's not coming from a password field. As another mitigation, admins should ensure that the user pages are properly protected: the edit right shouldn't be allowed for other users than Admin and owner of the profile (which is the default right). There is not much workaround possible for a privileged user other than upgrading XWiki.
From the CVE record · GitHub_M
XWiki Platform can expose a password hash in a history diff when the object storing the password has been deleted. An attacker with edit rights on the affected page can access the hash; under default permissions, access to user profiles is normally limited to admins and profile owners. Extensions that store passwords in xobjects may also be affected, depending on page permissions.
Operators using Maven package org.xwiki.platform:xwiki-platform-oldcore from 5.0-rc-1 to before 14.10.19, from 15.0-rc-1 to before 15.5.4, or from 15.6-rc-1 to before 15.9-rc-1 should check their installations.