DRUPAL-CONTRIB-2026-322: Composer/drupal/auth_login_plus vulnerability
This module enables you to require a second authentication factor (a time-based one-time password from an authenticator app) when users log in.
Under certain circumstances, an attacker can make the module treat a login as having passed the password check when it did not, or reach the two-factor setup page of another account. Depending on the site's configuration, this can allow the attacker to take over an account that has 2FA enabled without knowing its password or its second factor.
This vulnerability is mitigated by the fact that the attacker must have an account of their own on the site, must already control the victim's email address or know the victim's password, and must win a timing-dependent race.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/drupal/auth_login_plusto a version that resolves this vulnerability.Fixed in 1.0.3
Event History
Frequently Asked Questions
Who is realistically exposed to account takeover?
Sites using composer/drupal/auth_login_plus may be exposed where the affected login and two-factor setup flow is enabled. Exploitation targets accounts with 2FA enabled, but the attacker must also have an account on the same site, control the victim's email address or know the victim's password, and win a timing-dependent race.
Can an unauthenticated internet attacker exploit this directly?
No. The attacker must first have an account of their own on the site; additional prerequisites include control of the victim's email address or knowledge of the victim's password, plus successful timing of the race condition.
Does the issue require stealing the victim's second factor?
No. Under the described conditions, the flaw can allow takeover of an account with 2FA enabled without the attacker knowing the victim's password or second factor. However, the attacker still needs either control of the victim's email address or knowledge of the victim's password.