Security Issue: CWE-307 - Weak Password Reset Mechanism
Severity: High
CVSS: 7.5
Description
The password reset functionality uses a 4-digit numeric code (1000-9999), providing only 9000 possible combinations. There is no rate limiting on password reset attempts.
Attack Vector
An attacker can brute-force the password reset code in real-time with no account lockout or rate limiting.
Fix Required
- Increase code length to at least 6 digits (1,000,000 possibilities)
- Implement rate limiting (e.g., max 3 attempts per 15 minutes)
- Add exponential backoff after failed attempts
- Consider implementing password reset via secure link instead of numeric code
References
- CWE-307: Improper restriction of unlimited authentication attempts
Security Issue: CWE-307 - Weak Password Reset Mechanism
Severity: High
CVSS: 7.5
Description
The password reset functionality uses a 4-digit numeric code (1000-9999), providing only 9000 possible combinations. There is no rate limiting on password reset attempts.
Attack Vector
An attacker can brute-force the password reset code in real-time with no account lockout or rate limiting.
Fix Required
References