Skip to content

CWE-204: Observable response discrepancy (user enumeration) #265

Description

@DogukanUrker

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

  1. Use identical error messages for all authentication failures
  2. Example: 'Invalid email or password' for both cases
  3. Apply same approach to password reset endpoint

References

  • CWE-204: Observable response discrepancy

Metadata

Metadata

Assignees

No one assigned

    Labels

    securitySecurity-related issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions