CVE-2026-126731 — Drupal Authenticator Login Plus (2FA) (1.0.3) — CWE-288
Authentication Bypass Using an Alternate Path or Channel vulnerability in Drupal Authenticator Login Plus (2FA) allows Authentication Bypass. This issue affects Authenticator Login Plus (2FA) versions: from 0.0.0 to 1.0.3.
Authentication Bypass Using an Alternate Path or Channel vulnerability in Drupal Authenticator Login Plus (2FA) allows Authentication Bypass. This issue affects Authenticator Login Plus (2FA) versions: from 0.0.0 to 1.0.3.
🎯 What is this vulnerability?
CWE‑288 – Improper Authorization
The Authenticator Login Plus (2FA) module for Drupal implements a secondary authentication channel (the 2‑factor step) that is intended to be invoked only after a user has successfully completed the primary login.
In versions 0.0.0‑1.0.3 the module registers an alternate route (e.g. /authenticator/2fa/verify or /authenticator/login) that is not protected by Drupal’s core authentication middleware. The code that processes the request performs the 2‑factor check but omits the mandatory check that the user is already authenticated. As a result, an unauthenticated HTTP request to that alternate path can be used to obtain a valid session cookie and become fully authenticated on the site.
Because the flaw is purely an authorization bypass, there is no remote code execution, privilege escalation, or data‑exfiltration vector in the module itself. The impact is that an attacker who can reach the alternate path can log in as any user (including administrators) without knowing the 2‑factor code.
⚡ Attack Chain
1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| Identify Drupal | HTTP GET / → look for Drupal in X-Generator header or meta name="Generator" content="Drupal" | Confirms Drupal is running |
| Locate the module | GET /admin/modules (or /core/modules) → parse the JSON/HTML for “Authenticator Login Plus” | Confirms the vulnerable module is installed |
| Determine version | GET /admin/modules → read the version string next to the module name | Must be ≤ 1.0.3 to be vulnerable |
Note: The exact URI for the alternate path is not published in the CVE. The following PoC uses a common pattern (/authenticator/2fa/verify) that is typical for 2FA modules. If the site uses a different path, the same logic applies.2. Exploitation
Goal: Obtain a valid session cookie without providing a 2‑factor code.a. Craft the request
# Illustrative example – the exact path may differ
curl -v -X POST \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin&password=admin_password" \
http://target.example.com/authenticator/2fa/verifyWhat happens?
- The module receives the POST, checks the
usernameandpasswordagainst Drupal’s user table. - It skips the check that the user is already logged in (i.e., it does not verify that a session exists).
- Because the 2‑factor code is optional on this path, the request succeeds.
- Drupal’s session cookie (
SESS…) is set in the response headers.
b. Verify authentication
curl -b "SESSxxxxxxxxxxxxxx" http://target.example.com/adminIf the response is the admin dashboard, the bypass worked.
c. PHP illustration of the flaw
// authenticator_login_plus/src/Controller/TwoFactorController.php
public function verify(Request $request) {
$username = $request->request->get('username');
$password = $request->request->get('password');
// Core Drupal authentication
$account = user_authenticate($username, $password);
if (!$account) {
return new JsonResponse(['error' => 'Invalid credentials'], 403);
}
// **Missing**: check that $account->isAuthenticated() is true
// 2‑factor check (simplified)
$code = $request->request->get('code');
if ($code && !verify_2fa_code($account, $code)) {
return new JsonResponse(['error' => 'Invalid 2FA code'], 403);
}
// Log the user in
user_login_finalize($account);
return new JsonResponse(['status' => 'ok']);
}The omission of the isAuthenticated() check is the root cause.
3. Post‑exploitation
Once the attacker has a session cookie:1. Full site access – The attacker can navigate to any authenticated page, including /admin, /admin/config, etc.
2. Privilege escalation – If the attacker logs in as a user with administrative rights, they can:
- Install additional modules (including malicious ones).
- Create new admin accounts.
- Upload web shells via the file upload interface.
3. Data exfiltration – The attacker can read any content, download files, or dump the database via the admin UI.
4. Persistence – The attacker can add a backdoor user or modify the .htaccess to allow future access.
🌍 Real World Impact
| Impact | Assessment |
|---|---|
| Confidentiality | High – attacker can read any protected content. |
| Integrity | High – attacker can modify content, configuration, or code. |
| Availability | Low – the vulnerability does not directly affect service availability. |
Practical consequences:
• Unauthorized users can gain full administrative control.
• Sensitive data (user credentials, financial records, etc.) can be stolen.
• The site can be used as a pivot point for further attacks (e.g., phishing, malware distribution).
🛡️ Remediation & Mitigation
Affected Versions
Upgrade Recommendation
Workarounds
| Mitigation | How to implement |
|---|---|
| Disable the module | drush pm-disable authenticator_login_plus or via the UI. |
| Restrict the alternate path | Add a WAF/ModSecurity rule that blocks unauthenticated requests to /authenticator/* routes. Example ModSecurity rule: |
| ```modsecurity |
| | SecRule REQUEST_URI "@beginsWith /authenticator/" \
| "phase:2,block,log,id:12345,msg:'Block unauthenticated Authenticator paths'" | |
|---|---|
`` | |
| Force authentication on the path | Patch the module locally: add a guard that checks \Drupal::currentUser()->isAuthenticated()` before proceeding. |
| Use .htaccess | Add a rule to deny all except authenticated IPs (if you control the network). |
| Enable 2FA enforcement | Ensure that the core 2FA module is configured to require the second factor for all logins, not just for specific roles. |
Detection
| Indicator | Log pattern | How to spot it |
|---|---|---|
| Unauthenticated POST to alternate path | POST /authenticator/2fa/verify → 200 OK | Look for 200 responses without a Cookie header in the request. |
| Session cookie set after alternate path | Set-Cookie: SESS… | Correlate the Set-Cookie header with the preceding request. |
| Repeated attempts | Multiple 200s within short time | Flag as suspicious activity. |
| Admin access after bypass | GET /admin → 200 OK with SESS… cookie | Indicates successful authentication. |
⚠️ Urgency
| Metric | Value | Interpretation |
|---|---|---|
| CVSS score | 0/10 (NONE) | The CVSS calculation omitted the impact because the flaw is purely an authorization bypass. |
| CISA KEV | No | Not listed as a known exploit kit. |
| Exploit complexity | Low | Requires only a crafted HTTP request. |
| Impact | High | Full administrative access. |
Patch priority: Critical.
Even though the CVSS score is 0, the vulnerability allows an attacker to gain unrestricted control over the site. Organizations should treat this as a high‑priority patch and apply the fix or a suitable workaround immediately.
[🤖 CVE Professor AI Security Engine]
FOFA Query