HexBrain

Nextcloud · Report #145896

Password reset link remains valid after email change

Validstatus
7upvotes
13 Dec 2016disclosed

How it was found

Hey! I found a token miss configuration flaw in Nextcloud 9.0.50 [Latest version], When we reset password for a user a link is sent to the registered email address but incase it remain unused and email is updated by user from control panel then too that old token [reset link] sent at old email address remains valid.

A better explanation

1- User use reset feature to get reset link [Email : [email protected]] 2- User came to know about his old password so remain the link unused and the token not expires 3- Now User changes his email from control panel [New email : [email protected]] 4- But the old reset still remains valid after email change

In-case an attacker able to get access to user's old email account he can hack his Nextcloud account too via that link, so expiring the token at email change will be a better practice

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original