XWiki Commons are technical libraries common to several other top level XWiki projects. The RSS macro that is bundled in XWiki included the content of the feed items without any cleaning in the HTML output when the parameter `content` was set to `true`. This allowed arbitrary HTML and in particular also JavaScript injection and thus cross-site scripting (XSS) by specifying an RSS feed with malicious content. With the interaction of a user with programming rights, this could be used to execute arbitrary actions in the wiki, including privilege escalation, remote code execution, information disclosure, modifying or deleting content and sabotaging the wiki. The issue has been patched in XWiki 14.6 RC1, the content of the feed is now properly cleaned before being displayed. As a workaround, if the RSS macro isn't used in the wiki, the macro can be uninstalled by deleting `WEB-INF/lib/xwiki-platform-rendering-macro-rss-XX.jar`, where `XX` is XWiki's version, in the web application's directory.
Summary
AIThe XWiki RSS macro includes unsanitized feed content in HTML output when `content` is set to `true`, allowing a malicious RSS feed to inject JavaScript. If a user with programming rights interacts with the malicious content, an attacker could execute arbitrary wiki actions, including privilege escalation or remote code execution. The input does not specify whether authentication is required to supply the feed.
Who should check
Check installations using Maven package `org.xwiki.platform:xwiki-platform-rendering-macro-rss` before 14.6-rc-1 or `org.xwiki.platform:xwiki-core-rendering-macro-rss` from 1.8 through 3.0.1.
What to do
- 1Update `org.xwiki.platform:xwiki-platform-rendering-macro-rss` to 14.6-rc-1 or later.
- 2If the RSS macro is unused, uninstall it by deleting `WEB-INF/lib/xwiki-platform-rendering-macro-rss-XX.jar` from the web application's directory.