Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: GSA_kwCzR0hTQS1jODg1LTg5ZnctNTVxcs4AAyu1

org.xwiki.platform:xwiki-platform-rendering-macro-rss Cross-site Scripting vulnerability

Impact

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 can be reproduced by inserting the following XWiki syntax in any wiki page like the user account:

{{rss feed="https://xssrss.blogspot.com/feeds/posts/default?alt=rss" content="true" /}}

If an alert is displayed when viewing the page, the wiki is vulnerable.

Patches

The issue has been patched in XWiki 14.6 RC1, the content of the feed is now properly cleaned before being displayed.

Workarounds

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.

References

For more information

If you have any questions or comments about this advisory:

Permalink: https://github.com/advisories/GHSA-c885-89fw-55qr
JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1jODg1LTg5ZnctNTVxcs4AAyu1
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: about 1 year ago
Updated: about 1 year ago


CVSS Score: 9.1
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Identifiers: GHSA-c885-89fw-55qr, CVE-2023-29202
References: Repository: https://github.com/xwiki/xwiki-platform
Blast Radius: 1.0

Affected Packages

maven:org.xwiki.platform:xwiki-platform-rendering-macro-rss
Affected Version Ranges: < 14.6-rc-1
Fixed in: 14.6-rc-1
maven:org.xwiki.platform:xwiki-core-rendering-macro-rss
Affected Version Ranges: >= 1.8, <= 3.0.1
No known fixed version