CVE-2024-37898: XWiki Platform vulnerable to document deletion and overwrite from edit
When a user has edit but not view right on a page in XWiki, that user can delete the page and replace it by a page with new content without having delete right. The previous version of the page is moved into the recycle bin and can be restored from there by an admin. As the user is recorded as deleter, the user would in theory also be able to view the deleted content, but this is not directly possible as rights of the previous version are transferred to the new page and thus the user still doesn’t have view right on the page. From all we examined, it therefore doesn’t seem to be possible to exploit this to gain any rights.
To reproduce, just replace view
by edit
in the URL of a page that you cannot view but edit and save. This should send the page to the recycle bin and replace it by an empty one if the XWiki installation is vulnerable. After the fix, an error is displayed when saving.
References
- github.com/advisories/GHSA-33gp-gmg3-hfpq
- github.com/xwiki/xwiki-platform
- github.com/xwiki/xwiki-platform/commit/0bc27d6ec63c8a505ff950e2d1792cb4f773c22e
- github.com/xwiki/xwiki-platform/commit/56f5d8aab7371d5ba891168f73890806551322c5
- github.com/xwiki/xwiki-platform/commit/c5efc1e519e710afdf3c5f40c0fcc300ad77149f
- github.com/xwiki/xwiki-platform/commit/e4968fe268e5644ffd9bfa4ef6257d2796446009
- github.com/xwiki/xwiki-platform/security/advisories/GHSA-33gp-gmg3-hfpq
- jira.xwiki.org/browse/XWIKI-21553
- nvd.nist.gov/vuln/detail/CVE-2024-37898
Detect and mitigate CVE-2024-37898 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →