Details
-
Bug
-
Resolution: Fixed
-
Blocker
-
1.1 M1
-
Unit
-
High
-
Unknown
-
N/A
-
Description
Steps to reproduce:
- Create a file "><img src=1 onerror=alert(1)>.jpg locally (any image will do).
- Attach it to a wiki page.
- Click on the attachments button at the bottom of the page.
- Click on the version number next to the filename to display the history.
Expected result:
- The history is displayed and the full filename is displayed in the title.
Actual result:
- An alert is displayed again and the filename in the title of the history isn't fully displayed.
This demonstrates a persistent XSS vulnerability in the attachment history displayer (i.e., viewattachrev.vm) which should be exploitable with just write access to the user profile. As always, this can be used for privilege escalation when a user with, e.g., programming rights visits the attachment history by modifying the user profile through the injected JavaScript with the rights of the visiting user.
Attachments
Issue Links
- is caused by
-
XWIKI-9000 Error when clicking on "View attachment history" for an attachment when not using legacy oldcore
- Closed
- relates to
-
XWIKI-19667 The move attachment form is missing escaping and some translations
- Closed
- links to