GHSA-c885-89fw-55qr

Suggest an improvement
Source
https://github.com/advisories/GHSA-c885-89fw-55qr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/04/GHSA-c885-89fw-55qr/GHSA-c885-89fw-55qr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c885-89fw-55qr
Aliases
Published
2023-04-12T20:38:37Z
Modified
2023-11-08T04:12:17.392995Z
Severity
  • 9.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
Summary
org.xwiki.platform:xwiki-platform-rendering-macro-rss Cross-site Scripting vulnerability
Details

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

  • https://github.com/xwiki/xwiki-platform/commit/5c7ebe47c2897e92d8f04fe2e15027e84dc3ec03
  • https://jira.xwiki.org/browse/XWIKI-19671

For more information

If you have any questions or comments about this advisory: * Open an issue in Jira XWiki.org * Email us at Security Mailing List

Database specific
{
    "nvd_published_at": "2023-04-15T15:15:00Z",
    "github_reviewed_at": "2023-04-12T20:38:37Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-79"
    ]
}
References

Affected packages

Maven / org.xwiki.platform:xwiki-core-rendering-macro-rss

Package

Name
org.xwiki.platform:xwiki-core-rendering-macro-rss
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-core-rendering-macro-rss

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.8
Last affected
3.0.1

Maven / org.xwiki.platform:xwiki-platform-rendering-macro-rss

Package

Name
org.xwiki.platform:xwiki-platform-rendering-macro-rss
View open source insights on deps.dev
Purl
pkg:maven/org.xwiki.platform/xwiki-platform-rendering-macro-rss

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
14.6-rc-1