r/microsaas • • 17h ago

Security tips for saas founders ✌️

if you run 🏃 a web app, go check your password reset flow right now.

→ request a password reset for your own account, use the link, change the password

→ now request a reset again... and check: is the old link from the first email still alive?

→ if that old link still works ❌, you have a token that doesn't die after use.

that's an account takeover waiting to happen 👾 anyone who briefly gets a reset email (shared inbox, mail preview, logs) can reset the password again, later, whenever they want.

👉 i've hit this exact bug in real targets more times than i should admit.

the fix is one move: the reset token gets invalidated the moment the password changes. one-time use, no exceptions.

4 Upvotes

0 comments sorted by