[Forum bug] Email sent to wrong address

Discussion in 'Help & Support / Errors & Bugs' started by 314, May 15, 2018.

  1. 314

    314 Irratioπal President, former ServerAdmin
    Mythic ⚔️ I ⚔️ President ⛰️⛰️ Ex-President ⚒️⚒️ Premium Upgrade

    Joined:
    Apr 1, 2014
    Messages:
    6,963
    Trophy Points:
    87,660
    EcoDollars:
    $2,500,000
    Ratings:
    +4,866
    Brief Description:
    Under specific circumstances, the password reset acknowledgement email is sent to the wrong account.

    Instructions:
    I discovered this by accident when I was experimenting with two different browsers (in this case Firefox and Chrome, but it should work with any) at the same time because I wanted to log in as Pivillean without logging out as 314.

    Color codes: Chrome, Firefox, email.
    1. I was logged in as 314.
    2. I requested a password reset for Pivillean.
    3. I clicked the URL I received via an email to Pivillean's address.
    4. The URL opens here because it's my default browser.
    5. I set a new password for Pivillean.
    6. I am now logged in as Pivillean instead of 314.
    7. Logging in as Pivillean using the new password works.
    8. I receive an email (see "evidence") that confirms my password reset.
    9. Logging in as 314 using my old password for 314 works, it was not changed.
    To summarize:
    • I changed Pivillean's password via the URL (from Piv's email account) while I was logged in as 314.
    • 314 received an email saying that 314's password has been changed.
    • 314's password actually remains unchanged.
    • Pivillean did not receive a password reset email.
    • Pivillean's password was changed as intended.

    How many times did you recreate this?:
    Once, I haven't had enough time to test it again yet.

    Result:
    An email addressing 314 was sent to 314's email address even though Pivillean's password was reset.

    xenForo seems to use the name/email of whoever was logged in when the password was reset instead of using the password's owner.

    Expected Result:
    An email addressing Pivillean should be sent to Pivillean's email address because his password was reset.

    Evidence:
    [​IMG]
    Examining the 314 and Pivillean accounts shows that the .de address is associated with 314, not with Pivillean. It's even addressed to 314 even though Pivillean's password was reset.
     
    • Winner Winner x 1
    • Useful Useful x 1
    • List
    #1 314, May 15, 2018
    Last edited: May 15, 2018
  2. JamieSinn

    JamieSinn Retired Lead Administrator/Developer
    Builder ⛰️ Ex-Tycoon ⚜️⚜️⚜️ Premium Upgrade

    Joined:
    Jun 4, 2011
    Messages:
    5,517
    Trophy Points:
    78,090
    Gender:
    Male
    Ratings:
    +4,588
    Finding yet another xenforo bug, nice job
     
    • Like Like x 1
    • Useful Useful x 1
    • List
  3. andrewkm

    Founder Premium Upgrade

    Joined:
    Apr 5, 2011
    Messages:
    20,375
    Trophy Points:
    102,160
    Ratings:
    +15,066
    I'll forward this to the Xenforo developers.
     
  4. andrewkm

    Founder Premium Upgrade

    Joined:
    Apr 5, 2011
    Messages:
    20,375
    Trophy Points:
    102,160
    Ratings:
    +15,066
    @314 thanks for reporting. Xenforo developers have confirmed the bug and state it will be fixed in a future release. (It’s something they have fixed for the new XF2, just not for XF1.)
     
    • Informative Informative x 1
    • List