CVE Professor
/
All CVEs
CVE-2026-126731

CVE-2026-126731 — Drupal Authenticator Login Plus (2FA) (1.0.3) — CWE-288

MEDIUM CVSS 5 NVD

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
Attack Vector Network AV:N
Attack Complexity High AC:H
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality Low C:L
Integrity Low I:L
Availability Low A:L
AI Security Analysis & Remediation

🎯 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

StepTechniqueWhat to look for
Identify DrupalHTTP GET / → look for Drupal in X-Generator header or meta name="Generator" content="Drupal"Confirms Drupal is running
Locate the moduleGET /admin/modules (or /core/modules) → parse the JSON/HTML for “Authenticator Login Plus”Confirms the vulnerable module is installed
Determine versionGET /admin/modules → read the version string next to the module nameMust 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/verify

What happens?

  • The module receives the POST, checks the username and password against 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/admin

    If 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

    ImpactAssessment
    ConfidentialityHigh – attacker can read any protected content.
    IntegrityHigh – attacker can modify content, configuration, or code.
    AvailabilityLow – 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

  • 0.0.0 – 1.0.3 (inclusive)
  • Upgrade Recommendation

  • Upgrade to any release > 1.0.3 (the fix is included in the next minor release).
  • If an upgrade is not immediately possible, apply the following workarounds.

Workarounds

MitigationHow to implement
Disable the moduledrush pm-disable authenticator_login_plus or via the UI.
Restrict the alternate pathAdd 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 pathPatch the module locally: add a guard that checks \Drupal::currentUser()->isAuthenticated()` before proceeding.
Use .htaccessAdd a rule to deny all except authenticated IPs (if you control the network).
Enable 2FA enforcementEnsure that the core 2FA module is configured to require the second factor for all logins, not just for specific roles.

Detection

IndicatorLog patternHow to spot it
Unauthenticated POST to alternate pathPOST /authenticator/2fa/verify → 200 OKLook for 200 responses without a Cookie header in the request.
Session cookie set after alternate pathSet-Cookie: SESS…Correlate the Set-Cookie header with the preceding request.
Repeated attemptsMultiple 200s within short timeFlag as suspicious activity.
Admin access after bypassGET /admin → 200 OK with SESS… cookieIndicates successful authentication.

⚠️ Urgency

MetricValueInterpretation
CVSS score0/10 (NONE)The CVSS calculation omitted the impact because the flaw is purely an authorization bypass.
CISA KEVNoNot listed as a known exploit kit.
Exploit complexityLowRequires only a crafted HTTP request.
ImpactHighFull 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]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Drupal"
CVSS Score
5 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-288
Affected Products (1)
Drupal:Authenticator Login Plus (2FA) (1.0.3)
References & Advisories (1)
Related CVEs
0.0
CVE-2026-142163
Improper Restriction of Excessive Authentication Attempts vulnerability in Drupal E-mail OTP Login allows Brut
0.0
CVE-2026-142395
Deserialization of Untrusted Data vulnerability in Drupal Mail Safety allows Object Injection. This issue affe
0.0
CVE-2026-142396
Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal M
0.0
CVE-2026-142397
Improper Neutralization of Input During Web Page Generation ("Cross-site Scripting") vulnerability in Drupal M
7.4
CVE-2026-145240
### Summary Istio TPROXY mode: mTLS/AuthorizationPolicy bypass via conntrack ESTABLISHED fast path on ephemer
6.9
CVE-2026-145178
Members plugin for WordPress 0.2 before 3.3.5 contains an authentication bypass vulnerability that allows unau
6.9
CVE-2026-126094
An authentication bypass in the request filters of dotCMS through 26.11.03-01 allows unauthenticated users to