Skip to content
OpenAdvisories
Critical · 10.0 Scanner template CVE-2023-37462 EUVD-2023-2070GHSA-h4vp-69r8-gvjg

Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in org.xwiki.platform:xwiki-platform-skin-ui

Published Jul 14, 2023 · Updated Oct 30, 2024 · Assigned by GitHub_M

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. See the linked GHSA for instructions on testing an installation. This issue has been patched in XWiki 14.4.8, 14.10.4 and 15.0-rc-1. Users are advised to upgrade. The fix commit `d9c88ddc` can also be applied manually to the impacted document `SkinsCode.XWikiSkinsSheet` and users unable to upgrade are advised to manually patch their installations.

Affected products

VendorProductAffectedFixed
xwiki xwiki-platform >= 7.0-rc-1, < 14.4.8, >= 14.5, < 14.10.4 —

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.xwiki.platform:xwiki-platform-skin-ui >= 7.0-rc-1, < 14.4.8 14.4.8 GHSA-h4vp-69r8-gvjg
Maven org.xwiki.platform:xwiki-platform-skin-ui >= 14.5, < 14.10.4 14.10.4 GHSA-h4vp-69r8-gvjg

References