This vulnerability occurs when a system checks access based on a resource or user name, but fails to account for all the different names or aliases that could refer to the same entity, allowing attackers to bypass authentication.
This flaw often appears in systems that rely on simple string matching for access control. For example, a file server might block access to 'admin.txt' but overlook 'ADMIN.TXT', 'Admin.Txt', or a symlink pointing to the same file. Similarly, a user authentication system might verify 'administrator' but not check for 'admin', 'root', or other common aliases for privileged accounts. Attackers exploit this by simply using an alternate name the system doesn't recognize as restricted. To prevent this, developers must implement canonicalization, where all names are resolved to a single, standard form before the security check. This means normalizing file paths, converting usernames to a consistent case, and resolving symbolic links. Access control logic should never rely on raw, unvalidated input strings. Instead, it should compare the canonical identity of the resource or user against a policy that is enforced consistently for all access attempts.
Impact: Bypass Protection Mechanism
Strategy: Input Validation
Strategy: Input Validation
Strategy: Input Validation