saisilinus / node-express-mongoose-typescript-boilerplate

A boilerplate for making production-ready RESTful APIs using Node.js, TypeScript, Express, and Mongoose
MIT License
325 stars 93 forks source link

Add security measure for forgot-password request #23

Closed HJassar closed 1 year ago

HJassar commented 1 year ago

The requestor could be an attacker who is targeting a specific email or collecting a list of users of the website. If they receive a message explicitly disclosing whether an account exists or not, the information can be used by the attacker.

21

HJassar commented 1 year ago

I seem to have messed up something with the initial installation. Created a new branch from "master" and re-implemented the fix there: #25 Thank you so much.