The issue arises from incorrect username validation in the registration process, allowing an attacker to take over an arbitrary account if the username is known and emails are enabled. To exploit this, an attacker registers with a username identical to the victim's but with added white space, causing a username collision. This results in the victim's account password being reset when a password reset is initiated for the new account.