CVE-2024-28232: Username Enumeration Distinct Errors

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.

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Go
greprules fetch cve-2024-28232-username-enumeration-distinct-errors --engine opengrep

Description

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.