Security issue! Anyone can change user password

Steps to reproduce the issue:

  1. Send request POST /auth/forgot-password with an email registered in the platform

  2. Send request PUT /auth/reset-password with the token retrieved in the previous step and a new password

  3. Login with the new credentials

Suggested solution

The Forgot Password endpoint should return an empty response (even if the user doesn’t exist) and send the token via email.

DomainAuthN-Z
Actionhotfix
DepartmentBackend

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
🛠️

Bug & Fixes

Tags

High Priority

Date

Over 1 year ago

Author

Ivan Ligotino

Subscribe to request

Get notified by email when there are changes.