Password reset flaws

From zakirkun/ice-tea · View interactive version

Password reset flaws is an AI agent skill from the GitHub repository zakirkun/ice-tea. Detects insecure password reset implementations including predictable tokens, missing expiration, and host header injection in reset links.

How to use this skill

Skill file

Password Reset Vulnerabilities

Overview

Password reset flows contain numerous potential vulnerabilities:

  1. Predictable tokens: Reset tokens generated with Math.random() instead of CSPRNG
  2. No expiration: Tokens valid indefinitely, allowing long-lived account takeover
  3. Host header injection: Reset URL generated from Host header (phishing)
  4. Token reuse: Token remains valid after use
  5. User enumeration: Different responses for valid vs invalid email

Remediation

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.