The issue is due to insufficient verification on the `phone` parameter of the `firebase sms login` and `firebase sms login v2` functions. This allows unauthenticated attackers to log in as any existing user, such as an administrator, if they have access to the email address or phone number. Additionally, if a new email address is supplied, a new user account is created with the default role, even if registration is disabled.