Skip to content

Password reset email sends raw token instead of hash #677

Description

@nanaf6203-bit

File: src/auth/auth.service.ts (requestPasswordReset)

The raw reset token is stored in the DB and also sent in the email link. Mail provider compromise yields live reset tokens.

Fix: Generate token → hash it → store hash → email raw token. Lookup on hash only.

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programarea/authAuthentication & authorizationbugSomething isn't workingpriority/highHigh prioritysecuritySecurity related

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions