Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Password Reset Link Not Expiring After Multiple Requests #1914

Open
sravani-dot opened this issue Dec 9, 2024 · 0 comments
Open

Password Reset Link Not Expiring After Multiple Requests #1914

sravani-dot opened this issue Dec 9, 2024 · 0 comments
Labels

Comments

@sravani-dot
Copy link

Password reset links generated after multiple requests do not expire as expected.

Description:
When a user requests a password reset multiple times, the first password reset link remains valid and can still be used, even though subsequent links are generated. This creates a security vulnerability, as older reset links should be invalidated upon the generation of a new link.

Steps to Reproduce:
Navigate to the application login page.
Click on the First Login
I t Will Give Default Password LInk
Click On Multiple Time s Or Do Some Rate Limit
Enter a valid email address and request a password reset link(Link 1).
Without using Link 1, request another password reset link (Link 2).
Attempt to reset the password using Link 1 after Link 2 has been generated.

Expected Result:
Link 1 should expire and become invalid after Link 2 is generated.

Actual Result:
Link 1 remains valid and can still be used to reset the password, despite subsequent links being generated.

Impact:
Security Risk: Older reset links can be exploited if intercepted, compromising user accounts.
User Experience: This behavior may confuse users who assume older links are invalidated.

Proposed Fix:
Ensure all previously generated password reset links are invalidated when a new reset link is generated for the same user
Add a validation check in the backend to reject any older links automatically.

POC Attached
I hope I Will Get Response As Soon As Possible

bandicam.2024-12-08.11-53-13-349.mp4
@sravani-dot sravani-dot added the bug label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant