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

CSRF vulnerability in the tag rename and delete actions

    XMLWordPrintable

Details

    • Medium
    • Unknown
    • N/A

    Description

      Steps to reproduce:

      1. Tag a page with "hello" and "world"
      2. Go to <server>/xwiki/bin/view/Main/Tags?do=deleteTag&tag=hello
      3. Go to <server>/xwiki/bin/view/Main/Tags?do=renameTag&tag=world&renameTo=bye

      Expected result:

      No tags are deleted or renamed, CSRF errors are displayed in both cases.

      Actual result:

      Both actions are executed, the tag "hello" has been deleted and "world" has been renamed to "bye".

      This demonstrates a CSRF attack, the two URLs could also be called by embedding images with the respective URLs into the content of a page (or another website) and then getting an admin user to visit this page. While both the form for deleting and renaming tags contain the CSRF token, there is no code for verifying the token.

      Attachments

        Activity

          People

            surli Simon Urli
            MichaelHamann Michael Hamann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: