Re:Is Your Site Leaking Password Reset Links?
by oneeyedpigeon on Monday October 24, 2016 @09:24AM
(#12778512)
That should definitely happen anyway but, as the article points out, that leaves a window of time between the user clicking the link in their email and them completing the form. It might be a very brief window, but it's still exploitable (and it won't always be brief - consider a user clicking the link in their email, leaving their desk for 5 minutes or going to make a cup of tea...)
I think you should invalidate a token whenever a user enters a new password and submits a form (hence POST).