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

Disabling a user account changes its author, allowing RCE from user account

    XMLWordPrintable

Details

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

    Description

      Steps to reproduce:

      1. As a user without script or programming right, put a Groovy macro with content

      {{groovy}}services.logging.getLogger("attacker").error("Hello from Groovy!"){{/groovy}}

      in the about section of the user profile.
      2. As admin, notice the malicious code and disable the user profile to prevent further actions by the user. Reload the user profile.

      Expected result:

      No Groovy code is executed.

      Actual result:

      A log message Hello from Groovy! is displayed, showing that the Groovy macro has been executed.

      This seems to be a regression introduced by XWIKI-17591, there considered as a feature.

      CVSS 9.0 (Critical): https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H (but not that trivially exploitable)

      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: