Loading...
Skip to main content

CVE-2023-36469 — Vulnerability in...

CRITICAL

XWiki Platform vulnerable to Code injection through NotificationRSSService

Published June 30, 2023Updated November 8, 2023Source: osv

Summary

### Impact Any user who can edit their own user profile and notification settings can execute arbitrary script macros including Groovy and Python macros that allow remote code execution including unrestricted read and write access to all wiki contents. This can be reproduced with the following steps: 1. Login as a user without script or programming right. 2. Go to the notifications preferences in your user profile. 3. Disable the "Own Events Filter" and enable notifications in the notification menu for "Like". 4. Set your first name to `{{cache id="security" timeToLive="1"}}{{groovy}}println("Hello from groovy!"){{/groovy}}{{/cache}}` 5. Click on the like button at the bottom left of the user profile. 6. Click on the notifications bell in the top bar and then on "RSS Feed". If the text "Profile of Hello from groovy!" and/or "liked by Hello from groovy!" is displayed, the attack succeeded. The expected result would have been that the entered first name is displayed as-is in the description of the feed. ### Patches This has been patched in XWiki 14.10.6 and 15.2RC1. ### Workarounds The main security fix can be manually applied by patching the affected document `XWiki.Notifications.Code.NotificationRSSService` as shown in the [patch](https://github.com/xwiki/xwiki-platform/commit/217e5bb7a657f2991b154a16ef4d5ae9c29ad39c#diff-7221a548809fa2ba34348556f4b5bd436463c559ebdf691197932ee7ce4478ca). This will break the link to the differences, though as this requires additional changes to Velocity templates as shown in the patch. While the [default](https://github.com/xwiki/xwiki-platform/commit/217e5bb7a657f2991b154a16ef4d5ae9c29ad39c#diff-b261c6eac3108c3e6e734054c28a78f59d3439ab72fe8582dadf87670a0d15a4) template is available in the instance and can be easily patched, the template for mentions is contained in a `.jar`-file and thus cannot be fixed without replacing that jar. ### References * https://jira.xwiki.org/browse/XWIKI-20610 * https://github.com/xwiki/xwiki-platform/commit/217e5bb7a657f2991b154a16ef4d5ae9c29ad39c

Advisory Timeline

  • First published June 30, 2023 (1200 days ago).
  • Last revised November 8, 2023 — 130 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Maven
Update org.xwiki.platform:xwiki-platform-notifications-ui to 14.10.6 or later
<!-- Update pom.xml dependency version to 14.10.6 for org.xwiki.platform:xwiki-platform-notifications-ui -->
Maven
Update org.xwiki.platform:xwiki-platform-notifications-ui to 15.2-rc-1 or later
<!-- Update pom.xml dependency version to 15.2-rc-1 for org.xwiki.platform:xwiki-platform-notifications-ui -->

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: maven (1).

PackageEcosystemAffectedFixed In
org.xwiki.platform:xwiki-platform-notifications-ui
maven
All versions14.10.6
org.xwiki.platform:xwiki-platform-notifications-ui
maven
All versions15.2-rc-1

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Frequently Asked Questions

What is CVE-2023-36469?
XWiki Platform vulnerable to Code injection through NotificationRSSService This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
How do I check if my project is affected by CVE-2023-36469?
CVE-2023-36469 affects org.xwiki.platform:xwiki-platform-notifications-ui. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-36469 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-94pf-92hw-2hjc

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies