Code injection in icon themes of XWiki Platform
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 14.10.6, 15.2-rc-1
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: poc
- Automatable: no
- Technical impact: total
Summary
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. By either creating a new or editing an existing document with an icon set, an attacker can inject XWiki syntax and Velocity code that is executed with programming rights and thus allows remote code execution. There are different attack vectors, the simplest is the Velocity code in the icon set's HTML or XWiki syntax definition. The icon picker can be used to trigger the rendering of any icon set. The XWiki syntax variant of the icon set is also used without any escaping in some documents, allowing to inject XWiki syntax including script macros into a document that might have programming right, for this the currently used icon theme needs to be edited. Further, the HTML output of the icon set is output as JSON in the icon picker and this JSON is interpreted as XWiki syntax, allowing again the injection of script macros into a document with programming right and thus allowing remote code execution. This impacts the confidentiality, integrity and availability of the whole XWiki instance. This issue has been patched in XWiki 14.10.6 and 15.1. Icon themes now require script right and the code in the icon theme is executed within the context of the icon theme, preventing any rights escalation. A macro for displaying icons has been introduced to avoid injecting the raw wiki syntax of an icon set into another document. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: poc · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- xwiki xwiki-platform
From 6.2-milestone-1 · fixed in 14.10.6
- org.xwiki.platform:xwiki-platform-icon-defaultMaven
From 6.2-milestone-1 · fixed in 14.10.6
- org.xwiki.platform:xwiki-platform-icon-scriptMaven
From 6.2-milestone-1 · fixed in 14.10.6
- org.xwiki.platform:xwiki-platform-icon-scriptMaven
From 15.0-rc-1 · fixed in 15.2-rc-1
- org.xwiki.platform:xwiki-platform-icon-defaultMaven
From 15.0-rc-1 · fixed in 15.2-rc-1
- org.xwiki.platform:xwiki-platform-icon-uiMaven
From 6.2-milestone-1 · fixed in 14.10.6
- org.xwiki.platform:xwiki-platform-icon-uiMaven
From 15.0-rc-1 · fixed in 15.2-rc-1