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

Cache corruption allows seizing of administrator account.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.5 M2
    • 2.5 M1
    • {Unused} Core
    • None
    • Trivial

    Description

      under some circumstances, Document#get(String) will return a BaseObject from the underlying XWikiDocument.

      $xwiki.getDocument('XWiki.Admin').get('XWiki.XWikiUsers').safeget('password').setValue('pwnd')
      

      No need to save, just log in quick before the cache expires.

      Other methods which should be reviewed (do not clone the document which might lead to cache poisining)
      Document#getComments(boolean)
      Document#getxWikiClass()
      Document#getxWikiClasses()

      Attachments

        Activity

          People

            calebjamesdelisle CalebJamesDeLisle
            calebjamesdelisle CalebJamesDeLisle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: