Security Issue: CWE-204 - Observable Response Discrepancy
Severity: Medium
CVSS: 5.3
Description
Login and password reset endpoints return different error messages for 'user not found' vs 'wrong password', enabling user enumeration attacks.
Attack Vector
An attacker can determine if an email address is registered by observing the different error responses.
Fix Required
- Use identical error messages for all authentication failures
- Example: 'Invalid email or password' for both cases
- Apply same approach to password reset endpoint
References
- CWE-204: Observable response discrepancy
Security Issue: CWE-204 - Observable Response Discrepancy
Severity: Medium
CVSS: 5.3
Description
Login and password reset endpoints return different error messages for 'user not found' vs 'wrong password', enabling user enumeration attacks.
Attack Vector
An attacker can determine if an email address is registered by observing the different error responses.
Fix Required
References