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

"Simple" users can reset the password for Admins

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 6.2-milestone-2, 5.4.6
    • 5.4.5, 6.1
    • Administration
    • None
    • Chrome 35, Firefox 30
    • Unknown
    • N/A
    • N/A

    Description

      Steps to reproduce:

      • Create a simple user
      • Go on the reset password script and copy paste the code (hide the line numbers): http://<server>/xwiki/bin/view/XWiki/ResetPassword?viewer=code
      • Go on the Blog application and edit a post with document author an Admin user (e.g. http:/<server>/xwiki/bin/view/Blog/BlogIntroduction)
      • insert the velocity macro in the post content, next paste the code from the reset script
      • modify the code to print the $passwordResetURL variable:
              #set ($passwordResetURL = $xwiki.getDocument('XWiki.ResetPasswordComplete').getExternalURL('view', "u=${userName}&v=${verifStr}")) $passwordResetURL
        
      • save the post
      • on the input with label "USERNAME" type "XWiki.Admin" and click "Reset"
      • Next, click on the link which completes the password reset for Admin

      Result: the form to complete the password reset for Admin will be displayed and the operation will succeed.

      Attachments

        Activity

          People

            softec Denis Gervalle
            oana.tabaranu Elena-Oana Florea
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: