Improper forgot password implementation
Last updated
Was this helpful?
Last updated
Was this helpful?
Application is not verifying the user by email/otp for forgot password/changing the password.
When Click the forgot password option it will go to the enter your email address or mobile number page and if it redirects directly to the page if changing the password we can easily change the password who ever want to change the password.
Because By Knowing the change password page URL and we can easily change the password.
In the absence of a CAPTCHA on the Forgot Password page, an attacker would be able to initiate a lot of password reset requests with the help of bots thus performing DoS.
A lot of Forgot Password implementations reset the password and send the new password to a user via e-mail. The potential problem in using this approach is that an attacker might be able to sniff the password. instead of the clear text it can be encrypted.
To mail we can send the link of the change password page for eg: random token for each forgot password here by generating random token in the ID parameter.
After click this link from mail that page should ask for the new password and confirm password. Change password link must be expired After changed the new password.
It is recommended to send the through OTP or mail.
After Clicking the forgot password it should ask for the registered mobile number or email address.
To OTP we can generate the OTP to the registered mobile number and can change the password if the OTP is valid. That OTP should have properly expired.
To mail we can generate the random password as a new password through this new password we can say to login and change the new password within some time duration.