I find the paragraph where the author described the exploit hard to read.
Basically, he triggered the "Password Reset" process and then guessed the reset token?
Basically, he triggered the "Password Reset" process and then guessed the reset token?
So this endpoint simply allowed setting up a new password with a POST request for the specified email address and he was able to guess the email .. ¯\_(ツ)_/¯
SetPassword and the parameters to the function are just username and newPassword.
I guess they assumed there was authentication happening before the request would even be served (pre-existing session).