Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
4.4
-
Unknown
-
N/A
-
N/A
-
Description
Steps to reproduce:
- Create a comment on the wiki with an image with URL /xwiki/bin/view/Admin/RunShellCommand?command=touch%20/tmp/attacked
- Wait for an admin to view the comment.
Expected result:
No file is created in /tmp
Actual result:
A file "attacked" is created in /tmp.
Note that the same attack vector can also be used for XWiki syntax injection by simply echoing the desired syntax prefixed by
{{/code}}
which may be more useful to executed Groovy code with programming right.
Attachments
Issue Links
- is caused by
-
ADMINTOOL-71 Include the "run shell command" tool in the admin tools
- Closed
- links to