CVE-2024-31464: XWiki Platform: Password hash might be leaked by diff once the xobject holding them is deleted

Published Apr 10, 2024
·
Updated

Impact

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.

Now 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.

Patches

The vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9-rc-1 by performing a better check before dislaying data of a diff, to ensure it's not coming from a password field.

Workarounds

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). Now there's not much workaround possible for a privileged user other than upgrading XWiki.

References

JIRA ticket: https://jira.xwiki.org/browse/XWIKI-19948 Commit: https://github.com/xwiki/xwiki-platform/commit/f1eaec1e512220fabd970d053c627e435a1652cf

For more information

If you have any questions or comments about this advisory: Open an issue in Jira XWiki.org Email us at Security Mailing List

Other sources

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.

MITRE

Affected Software

6 affected componentsFixes available
maven/org.xwiki.platform:xwiki-platform-oldcore>=15.6-rc-1<15.9-rc-1
15.9-rc-1
maven/org.xwiki.platform:xwiki-platform-oldcore>=15.0-rc-1<15.5.4
15.5.4
maven/org.xwiki.platform:xwiki-platform-oldcore>=5.0-rc-1<14.10.19
14.10.19
XWiki xwiki>=5.0<14.10.19
XWiki xwiki>=15.0<15.5.4
XWiki xwiki>=15.6<15.9

Event History

Apr 10, 2024
Advisory Published
via GitHub·05:07 PM
CVE Published
via MITRE·06:14 PM
Data Sourced
via MITRE·06:14 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:15 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2024-31464?

CVE-2024-31464 is considered a medium severity vulnerability due to the potential exposure of hashed passwords.

2

How do I fix CVE-2024-31464?

To fix CVE-2024-31464, you should upgrade to the latest version of the affected software, specifically to 15.9-rc-1, 15.5.4, or 14.10.19 as applicable.

3

What type of attack is possible with CVE-2024-31464?

With CVE-2024-31464, an attacker who has editing rights could exploit the diff feature to access the hash of a password.

4

Which software versions are affected by CVE-2024-31464?

CVE-2024-31464 affects XWiki versions from 15.0-rc-1 to 15.9-rc-1, and other specified versions.

5

What is the impact of CVE-2024-31464 on password security?

The impact of CVE-2024-31464 is significant as it allows unauthorized access to hashed passwords, potentially compromising user accounts.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203