Skip to main content

2FAuth CVE-2026-127088

| EUVDEUVD-2026-125094 HIGH
Weak Password Recovery Mechanism for Forgotten Password (CWE-640)
2026-11-13 VulnCheck GHSA-8gqf-76mr-8wvc
8.6
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Enumerate valid email via forgot-password oracle
  2. Delivery
    Send reset request with forged Host header
  3. Exploit
    2FAuth emails victim poisoned reset link
  4. Execution
    Victim clicks, token leaks to attacker server
  5. Persist
    Attacker replays token to reset password
  6. Impact
    Full account takeover, TOTP/HOTP secrets exposed

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Password recovery security
Exploitation Conditions

Exploitation requires that the 2FAuth deployment accepts arbitrary HTTP Host headers - the default state in versions before 9.0.1, since the TrustHosts middleware is shipped commented out in app/Http/Kernel.php and the app never pins the URL root to APP_URL. The official Docker image is directly vulnerable because its bundled nginx has no server_name and serves on any Host, passing the forged header straight to PHP. The attacker needs no authentication (PR:N) but DOES need the victim to click the poisoned reset/WebAuthn-recovery link (UI:P), and needs a valid target email - aided by the forgot-password endpoint's enumeration oracle (200 = exists, 422 = unknown). Limiting factors: success depends on victim interaction and on the instance not sitting behind a reverse proxy that validates/pins the Host header or sets a strict server_name; a front-end proxy enforcing an allowed host neutralizes the attack. Complete fix is upgrading to 9.0.1, which roots reset and WebAuthn-recovery links on config('app.url').

Impact

Signals are largely consistent and point to a genuine priority rather than CVSS inflation. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P, VC:H/VI:H, score 8.6) describes a network-reachable, low-complexity, unauthenticated flaw whose only gating factor is that the victim must click the poisoned reset link (UI:P). This is corroborated by the mechanism: the forgot-password endpoint is unauthenticated and the host allow-list (TrustHosts) ships commented out, so the attack is reproducible against default configurations - the researcher verified a live install emitting reset links on the forged Host. A detailed, author-verified proof-of-concept is embedded directly in the GHSA advisory and the VulnCheck advisory, so this is well beyond theoretical. Tempering signals: the CVE is NOT listed in CISA KEV and no EPSS score is provided in the input, so there is no evidence of active, widespread exploitation yet; the vuln.today decision label is 'this_week' (not act_now/emergency), and exploitation still depends on social engineering the victim into clicking. Net: credible, practically exploitable account-takeover with a public PoC and a vendor patch, warranting prompt (this-week) remediation, but not currently confirmed as exploited in the wild.

Exploit ScenarioDerived

An unauthenticated attacker sends a 'forgot password' (or WebAuthn recovery) request for a known 2FAuth user - for example the admin - while forging the HTTP Host header to an attacker-controlled domain; the victim receives a legitimately-sent email whose 'Reset Password' button points at the attacker's host but carries a valid token. When the victim clicks, their browser hands the live token to the attacker, who replays it against the real instance to reset the password and seize the account, exposing all stored TOTP/HOTP seeds. A full working PoC (including an email-enumeration oracle to select valid targets) is published in the vendor's GHSA advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 13, 2026

Host header injection in 2FAuth before 9.0.1 lets an unauthenticated attacker poison the password-reset and WebAuthn-recovery emails so the victim's valid reset token is delivered to an attacker-controlled domain, enabling full account takeover - including the admin account - and exposing every stored TOTP/HOTP seed. The forgot-password endpoint also acts as an email enumeration oracle (200 for registered addresses, 422 for unknown), helping attackers pick targets. Successful exploitation requires the victim to click the poisoned link (UI:P); publicly available PoC code exists and default installs, notably the official Docker image whose nginx has no server_name, pass forged Host headers straight to PHP. Rated 8.6 (CVSS 4.0) and triaged as this_week priority; patched in 9.0.1.

RemediationAI

Vendor-released patch: 9.0.1 (tag https://github.com/Bubka/2FAuth/releases/tag/v9.0.1, fix commit 35ce085b69f9f5044dfb94017c3f27c1dc2668f3); upgrade all instances running 9.0.0 or earlier, as this is the complete fix per the vendor advisory (GHSA-v9qw-r94g-95qv). If upgrading is not immediately possible, the effective compensating control is to terminate traffic behind a reverse proxy that validates and pins the Host header (or sets a strict server_name) and rejects requests with unexpected Host values - a deployment whose front end enforces an allowed host neutralizes the attack, at the cost of requiring that proxy configuration to be complete for all vhosts. Re-enabling the shipped-but-commented TrustHosts middleware in app/Http/Kernel.php, and pinning the URL root to APP_URL (ResetPassword::createUrlUsing plus config('app.url')-rooted WebAuthn links, as the fix commit does), replicate the upstream correction locally, but these are code modifications that must be maintained across updates.

Affected VersionsENISA

2FAuth 0 <9.0.1

Affected Packages

euvd 2fauth fix: 9.0.1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

2FAuth is a Laravel-based PHP application acting as a TOTP/HOTP vault. The flaw is CWE-640 (weak password recovery) compounded by CWE-348 (use of less trusted source) and CWE-20. Laravel's stock ResetPassword notification builds its link with the url() helper, which derives scheme and host from the active request rather than from configuration. Two safeguards would prevent this: registering the TrustHosts middleware allow-list, or forcing the URL root via URL::forceRootUrl / ResetPassword::createUrlUsing. 2FAuth does neither - app/Http/Kernel.php ships TrustHosts commented out at line 47, and app/Notifications/ResetPassword.php only customizes wording while passing the framework-supplied $url straight to the mail button. The WebAuthn recovery notification in app/Notifications/WebauthnRecoveryNotification.php (lines 62-64) uses the identical url(route(..., false)) pattern. The vendor fix roots both link builders on config('app.url') via rtrim(...) . route(..., false) and adds a ResetPassword::createUrlUsing callback in AuthServiceProvider, with regression tests asserting the forged Host does not appear in rendered mail. Deployment detail matters: the official Docker image's bundled nginx declares no server_name, so any Host reaches PHP, but a front-end reverse proxy that validates or pins Host neutralizes the attack.

Know when 2fauth gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.6 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
vuln.today AI 8.1 HIGH

Network-reachable unauthenticated request (AV:N/PR:N) with low complexity, but requires the victim to click the poisoned link (UI:R); account takeover plus seed exposure gives C:H/I:H, no availability impact.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

2FAuth before 9.0.1 contains a weak password recovery vulnerability that allows unauthenticated attackers to poison reset links by forging the HTTP Host header. Attackers can request password or WebAuthn recovery emails with an attacker-controlled host, capture the victim's token, and take over accounts exposing stored TOTP/HOTP secrets.

Technical POC Analysis

Primary weakness CWE-640 (weak password recovery mechanism); the advisory also tags CWE-348 (use of a less trusted source) and CWE-20.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

The 2FAuth application, used for multi-factor authentication, has a high-severity vulnerability that allows unauthenticated attackers to hijack password reset emails and take over accounts, including administrators. This could lead to the compromise of all stored TOTP/HOTP seeds, severely undermining the security of protected systems. Leadership should prioritize immediate remediation to prevent potential widespread unauthorized access.

Business Impact: High
Compensating Controls

Apply vendor patch (version 9.0.1).

Threat Intelligence Overview

EPSS Score
0.5%
Top 54% exploitable
Prevalence
Low
niche self-hosted open-source 2FA vault, mainly self-hosters, no enterprise footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +43
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy