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

Remote code execution through space title and Solr space facet

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      1. As a user without script or programming right, create a document named "TestSpace" with titleĀ 
        {{/html}}{{async}}{{groovy}}println("Hello from Groovy Title!"){{/groovy}}{{/async}} 

        and content "Test content".

      2. Search for "Test" using the search UI and click on the "Location" box title in the facets that are next to the search results.

      Expected result:

      An item named

      {{/html}}{{async}}{{groovy}}println("Hello from Groovy Title!"){{/groovy}}{{/async}} 

      is displayed.

      Actual result:

      An item named

      Hello from Groovy Title!
      </a>
      <div class="itemCount">1</div>
      </li>
      </ul>
      {{/html}}

      is displayed, showing that the Groovy code has been executed.

      The affected code has been introduced in XWIKI-12175 so this affects all versions since XWiki 7.2 RC1.

      Attachments

        Issue Links

          Activity

            People

              pjeanjean Pierre Jeanjean
              MichaelHamann Michael Hamann
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: