Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessReach instance bypassing trusted proxy
-
DeliverySend crafted REMOTE_USER and mail headers
-
ExploitAuto-create account, self-promote to admin
-
ExecutionAuthenticate as administrator
-
ImpactExport all 2FA secrets
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires AUTHENTICATION_GUARD=reverse-proxy-guard to be configured (a non-default authentication mode) AND the 2FAuth application to be directly reachable by the attacker without passing through a properly configured trusted proxy - pre-fix code performed no proxy source validation, so any client could supply the REMOTE_USER and mail headers. For unauthenticated administrator creation the instance must additionally be fresh (zero existing users), because the first-created account is auto-promoted to admin; against an instance with existing users the attacker can instead impersonate or hijack the email of any account whose registered name is known or guessed. The Authenticate middleware forces all requests onto reverse-proxy-guard when it is set, so a legitimate user cannot opt out. Limiting factors: the vulnerability does not apply to deployments using other authentication guards, nor to reverse-proxy-guard deployments whose proxy correctly terminates and strips client headers; the admin-takeover variant is additionally limited to fresh instances. The only complete fix per the vendor is upgrading to 8.0.0, which adds trusted-proxy enforcement (isFromTrustedProxy()). |
| Impact | All severity signals point the same direction for the vulnerable configuration: the NVD vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8) describes remote, unauthenticated, low-complexity exploitation with full confidentiality, integrity and availability impact, and the vuln.today decision label is act_now. A published proof-of-concept (curl and Python scripts) appears in the GHSA advisory, and a single HTTP request yields an administrator account on a fresh instance. The critical caveat is environmental rather than technical: exploitation is NOT universal across all 2FAuth deployments - it requires the non-default AUTHENTICATION_GUARD=reverse-proxy-guard mode AND the application being directly reachable without passing through a properly configured trusted proxy. Within that configuration the attack is genuinely trivial and unauthenticated, so the PR:N/AC:L rating is justified there; across the whole 2FAuth install base the real-world exposure is narrower and gated by that configuration. No CISA KEV listing and no EPSS score are present in the supplied data, so there is no confirmation of active in-the-wild exploitation despite the available PoC - treat this as a high-priority, config-dependent flaw rather than a confirmed mass-exploitation event. For any operator actually running reverse-proxy-guard with imperfect proxy isolation, this is a top-priority, act_now fix. |
| Exploit ScenarioDerived | On a fresh 2FAuth instance running reverse-proxy-guard and reachable without a properly fronting trusted proxy, an unauthenticated attacker sends one HTTP request carrying a crafted REMOTE_USER header (and an attacker-controlled mail header); RemoteUserProvider::retrieveById() auto-creates the account, promotes the first-ever user to administrator, and sets its email from the header. The attacker is then authenticated as admin and can list users and export every stored 2FA secret. A published proof-of-concept (curl and Python scripts) demonstrating exactly this is included in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Unauthenticated remote attackers can gain full administrative control of a fresh 2FAuth instance, or impersonate known users and redirect their email, when AUTHENTICATION_GUARD=reverse-proxy-guard is enabled and the application is directly reachable without a trusted proxy. The reverse-proxy guard accepts client-supplied REMOTE_USER and mail headers, auto-creates accounts for unknown names, promotes the first account to administrator, and synchronizes email from the header; the assessed vector is CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8) and the vuln.today decision label is act_now. This is fixed in 8.0.0; no CISA KEV confirmation at time of analysis, and the upstream advisory includes public proof-of-concept request examples that are not independently verified as working exploit code.
RemediationAI
Upgrade to 2FAuth 8.0.0, which the vendor identifies as the only complete fix; it enforces trusted-proxy validation via isFromTrustedProxy() and rejects requests whose source address is not trusted. Until upgrading, change AUTHENTICATION_GUARD away from reverse-proxy-guard if operationally feasible, accepting that this disables header-based SSO login, or ensure the application is never directly reachable and that a trusted reverse proxy terminates and strips client-supplied REMOTE_USER and mail headers before forwarding requests. Because pre-8.0.0 code does not validate the proxy source, network placement and header stripping are compensating controls only and do not fully remove exposure. Consult the upstream advisory at https://github.com/Bubka/2FAuth/security/advisories/GHSA-r9xx-45m8-mw24 and the 8.0.0 release notes at https://github.com/Bubka/2FAuth/releases/tag/v8.0.0.
Affected VersionsENISA
Affected Packages
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 PHP/Laravel web application for managing two-factor authentication accounts and generating codes. The flaw is CWE-287 (Improper Authentication) in the reverse-proxy authentication path. When AUTHENTICATION_GUARD=reverse-proxy-guard is configured, the Authenticate middleware forces requests onto that guard, and RemoteUserProvider::retrieveById() trusts the client-supplied REMOTE_USER and mail header values. Pre-fix code creates a new user for any unrecognized REMOTE_USER value with a random password, promotes the first-ever created account to administrator when User::count() === 1, and overwrites an existing user's email from the configured mail header on login. The guard performed no proxy source validation, so a client that did not pass through a trusted proxy could supply these headers. The 8.0.0 fix adds an isFromTrustedProxy() check in ReverseProxyGuard::user(), logs a warning and returns null when the request does not come from a trusted proxy; tests also expect HTTP 407 when trusted proxies are unconfigured or the remote address is untrusted. CPE data identifies bubka:2fauth all versions before 8.0.0, with package evidence listing <=7.0.1 as vulnerable and 8.0.0 as fixed. The admin-creation variant requires a fresh instance with zero users; against an instance with existing users, the attacker can instead impersonate or hijack the email of an account whose registered name is known or guessed. Deployments using other authentication guards, or reverse-proxy-guard deployments whose proxy correctly terminates and strips client headers, are not exposed.
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
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Within the reverse-proxy-guard configuration an unauthenticated remote attacker gets admin via one header-bearing request, so AV:N/AC:L/PR:N/UI:N with full C/I/A impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Prior to 8.0.0, when AUTHENTICATION_GUARD=reverse-proxy-guard accepts authentication headers from a client that did not pass through a trusted proxy, RemoteUserProvider::retrieveById() creates an account for an unknown REMOTE_USER, promotes the first created account to administrator, and synchronizes the account email from the configured mail header. An unauthenticated remote client can therefore create an administrator on a fresh instance or impersonate and redirect email for a known account, exposing 2FA secrets and administrative functions. This issue is fixed in version 8.0.0.
Technical POC Analysis
CWE-287 Improper Authentication.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A critical authentication bypass in 2FAuth (CVE-2026-63438) allows an unauthenticated remote attacker to seize full administrative control of a freshly deployed instance, or impersonate existing users and redirect their email, whenever the reverse-proxy authentication guard is enabled and the app is exposed without a trusted proxy. Because 2FAuth is itself the system of record for multi-factor credentials, compromise can cascade into downstream account takeovers across the organization, making this a direct threat to identity trust and access governance that security leadership should prioritize.
No vendor-released patch identified at time of analysis. Interim mitigations: disable AUTHENTICATION_GUARD=reverse-proxy-guard until upgrading to 8.0.0, and network-restrict the instance so it is reachable only from the trusted proxy (never directly from the internet).
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Rated high sev
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Rated medium s
2FA is a Web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Rated medium seve
Unauthenticated account takeover of 2FAuth deployments that run the opt-in reverse-proxy-guard mode: any client able to
Blind SSRF in 2FAuth 2FA manager before 6.1.0.
Host header injection in 2FAuth before 9.0.1 lets an unauthenticated attacker poison the password-reset and WebAuthn-rec
Missing per-resource authorization in 2FAuth's share recipients endpoint (all versions prior to 8.0.0) lets any authenti
2FAuth versions up to and including 7.0.1 are exposed to authenticated server-side request forgery through the otpauth i
Server-side request forgery in 2FAuth 6.1.0 through 7.0.1 lets the app's remote-image fetch reach internal IPv4 targets
EUVD-2026-118491
NVD
CVE.org
EPSS
GitHub
Exploit-DB