Lucene search

K
osvGoogleOSV:GHSA-44H9-XXVX-PG6X
HistoryApr 20, 2023 - 9:58 p.m.

XWiki App Within Minutes app grants space admin rights that allows cross-site scripting

2023-04-2021:58:10
Google
osv.dev
11
xwiki
app within minutes
vulnerability
admin rights
javascript injection
patch
workaround
cross-site scripting

7.7 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

NONE

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

0.001 Low

EPSS

Percentile

29.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:

7.7 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

CHANGED

Confidentiality Impact

NONE

Integrity Impact

HIGH

Availability Impact

NONE

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

0.001 Low

EPSS

Percentile

29.1%

Related for OSV:GHSA-44H9-XXVX-PG6X