.. / CVE-2023-37462

Exploit for XWiki Platform - Remote Code Execution (CVE-2023-37462)

Description:

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Improper escaping in the document SkinsCode.XWikiSkinsSheet leads to an injection vector from view right on that document to programming rights, or in other words, it is possible to execute arbitrary script macros including Groovy and Python macros that allow remote code execution including unrestricted read and write access to all wiki contents. The attack works by opening a non-existing page with a name crafted to contain a dangerous payload. It is possible to check if an existing installation is vulnerable

Nuclei Template

View the template here CVE-2023-37462.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2023/CVE-2023-37462.yaml
Copy

References:

https://nvd.nist.gov/vuln/detail/CVE-2023-37462
https://github.com/xwiki/xwiki-platform/commit/d9c88ddc4c0c78fa534bd33237e95dea66003d29
https://jira.xwiki.org/browse/XWIKI-20457
https://github.com/fkie-cad/nvd-json-data-feeds
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-h4vp-69r8-gvjg