[MAVEN:GHSA-44H9-XXVX-PG6X] XWiki App Within Minutes app grants space admin rights that allows cross-site scripting

Severity Moderate
Affected Packages 4
Fixed Packages 4
CVEs 1

Impact

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.

Patches

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.

Workarounds

The patch can be applied by patching the affected wiki documents, the most important one being AppWithinMinutes.LiveTableEditSheet. Further, the attack can be prevented by denying view access to AppWithinMinutes.LiveTableEditSheet. This only impacts creation and editing of App Within Minutes apps.

References

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

ID
MAVEN:GHSA-44H9-XXVX-PG6X
Severity
moderate
URL
https://github.com/advisories/GHSA-44h9-xxvx-pg6x
Published
2023-04-20T21:58:10
(17 months ago)
Modified
2023-11-04T05:08:28
(10 months ago)
Rights
Maven Security Team
Type Package URL Namespace Name / Product Version Distribution / Platform Arch Patch / Fix
Affected pkg:maven/org.xwiki.platform/xwiki-platform-appwithinminutes-ui org.xwiki.platform xwiki-platform-appwithinminutes-ui >= 14.5 < 14.10.1
Fixed pkg:maven/org.xwiki.platform/xwiki-platform-appwithinminutes-ui org.xwiki.platform xwiki-platform-appwithinminutes-ui = 14.10.1
Affected pkg:maven/org.xwiki.platform/xwiki-platform-appwithinminutes-ui org.xwiki.platform xwiki-platform-appwithinminutes-ui >= 14.0-rc-1 < 14.4.8
Fixed pkg:maven/org.xwiki.platform/xwiki-platform-appwithinminutes-ui org.xwiki.platform xwiki-platform-appwithinminutes-ui = 14.4.8
Affected pkg:maven/org.xwiki.platform/xwiki-platform-appwithinminutes-ui org.xwiki.platform xwiki-platform-appwithinminutes-ui >= 4.2-milestone-1 < 13.10.11
Fixed pkg:maven/org.xwiki.platform/xwiki-platform-appwithinminutes-ui org.xwiki.platform xwiki-platform-appwithinminutes-ui = 13.10.11
Affected pkg:maven/org.xwiki.platform/xwiki-platform-appwithinminutes org.xwiki.platform xwiki-platform-appwithinminutes >= 4.0-milestone-2 < 4.2-milestone-1
Fixed pkg:maven/org.xwiki.platform/xwiki-platform-appwithinminutes org.xwiki.platform xwiki-platform-appwithinminutes = 4.2-milestone-1
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories Exploits PoC Pubblication Date Modification Date
# CVE Description CVSS EPSS EPSS Trend (30 days) Affected Products Weaknesses Security Advisories PoC Pubblication Date Modification Date
Loading...