Details
-
Bug
-
Resolution: Fixed
-
Major
-
3.2 M2
-
rights space admin escalation
-
Integration
-
Unknown
-
N/A
-
N/A
-
Description
A normal user with only edit rights on a wiki can access or create a WebPreferences page for a space and an an XWikiRights object, thus becoming a space admin.
For the current space, methods like:
- api.XWiki.hasAccessLevel("admin")
- $hasAdmin from xwikivars.vm that uses the above
- XWikiRightService.hasAccessLevel("admin", user, docname, context), where docname == currentModifiedSpace.PageName
- api.Api.hasAdminRights() with all its subclasses
- XWikiRightService.hasAdminRights() for any plugin/service that is using it being called from the current space
will all return true.
An example usecase where this might cause problems is the method api.XWiki.setReadOnly(true) which will set the entire wiki in read only mode.
Attachments
Issue Links
- is duplicated by
-
XWIKI-6987 Rights management bug in user with edit rights
-
- Closed
-
-
XWIKI-7906 Non-admin users are able to 'Restore' deleted WebPreferences
-
- Closed
-