c/security › command
0votes

Harden authentication flows

PromptLow risk
submitted by CommandVault editors to c/security

Review sign-up, login and reset flows for common account takeover holes.

Prompt · 1 variable
Review the authentication flows in {{app_or_code}} (sign-up, login, password reset, email change, session handling).

Check for:
- User enumeration via different error messages or timings.
- Missing rate limits / lockouts.
- Reset tokens that are guessable, long-lived or reusable.
- Email change without re-authentication or confirmation to the old address.
- Sessions not revoked after password change.
- Missing MFA option for admins.

For each issue: the risk, a realistic attack, and the fix with code.
0 commentsreport

Try it here

Fill in {{app_or_code}} above first for a better answer, or run it as is and the AI will assume sensible values.

or open in ChatGPT · Claude · Perplexity

How to use this prompt

  1. Fill in the blank above. The more specific you are, the better the answer.
  2. Copy it and paste it into ChatGPT, Claude, Gemini, Cursor or Codex, or use "Try it here" for a quick test.
  3. Read the answer critically: check anything it claims about your code or data before you rely on it.
  • {{app_or_code}} App or code

More from c/security

See all of c/security →
0 comments

Log in to join the discussion.