Directly returning an EMAIL_NOT_AVAILABLE error during registration when an email already exists enables account enumeration.
Rule Explorer
Search the public rule index by CVE, GHSA, CWE, language, framework, author, or rule slug. Filter by language, framework, severity, confidence, license, and validation status.
- Public rules
- 4797
- Downloads
- 12.1M
- Verified
- 4797
- Authors
- 2
The password reset / account recovery handler awaits an artificial delay only on the "user not found" / "no email" branches and returns early, while the success path (email sent) returns without an equivalent delay. This timing differential is observable by an unauthenticated attacker and enables username/email enumeration (CWE-208 / CWE-204). Pad all branch
Authentication endpoint returns different error messages depending on whether the user exists or the password is incorrect. This discrepancy allows attackers to enumerate valid usernames. To fix, return a generic error instead.