CVE-2023-29515 Cross-site scripting (XSS) in xwiki-platform

High 7.7 Published Updated

Attackers can inject JavaScript and gain admin rights by exploiting App Within Minutes, requiring an upgrade to XWiki.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-29515?

CVE-2023-29515 is a high-severity cross-site scripting vulnerability in Xwiki Xwiki, published on 18 Apr 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any user who can create a space can become admin of that space through App Within Minutes. The admin right implies the script right and thus allows JavaScript injection. The vulnerability can be exploited by creating an app in App Within Minutes. If the button should be disabled because the user doesn't have global edit right, the app can also be created by directly opening `/xwiki/bin/view/AppWithinMinutes/CreateApplication?wizard=true` on the XWiki installation. This has been patched in XWiki 13.10.11, 14.4.8, 14.10.1 and 15.0 RC1 by not granting the space admin right if the user doesn't have script right on the space where the app is created. Error message are displayed to warn the user that the app will be broken in this case. Users who became space admin through this vulnerability won't loose the space admin right due to the fix, so it is advised to check if all users who created AWM apps should keep their space admin rights. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2023-29515?

8 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-appwithinminutes-ui and org.xwiki.platform:xwiki-platform-appwithinminutes. It affects 1 product.

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 14.0-rc-114.4.8
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 14.0-rc-114.4.8
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 14.514.10.1
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 14.514.10.1
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 4.2-milestone-113.10.11
org.xwiki.platform:xwiki-platform-appwithinminutes-ui MavenFrom 4.2-milestone-113.10.11
2 more packages
org.xwiki.platform:xwiki-platform-appwithinminutes MavenFrom 4.0-milestone-24.2-milestone-1
org.xwiki.platform:xwiki-platform-appwithinminutes MavenFrom 4.0-milestone-24.2-milestone-1

Products include Xwiki Xwiki.

How do I fix CVE-2023-29515?

Upgrade org.xwiki.platform:xwiki-platform-appwithinminutes-ui to a fixed version for your release line: 14.4.8, 14.10.1 or 13.10.11.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2023-29515 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-29515 exists.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-44h9-xxvx-pg6x.

Is CVE-2023-29515 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free