2fauth
Monthly
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.
Unauthenticated account takeover of 2FAuth deployments that run the opt-in reverse-proxy-guard mode: any client able to reach the application directly can forge the identity header (REMOTE_USER by default, or the header named by AUTH_PROXY_HEADER_FOR_USER) and be authenticated as an existing user - including an administrator - in a single request, with full read access to stored TOTP/HOTP secrets and to account and application management functions. The issue affects 2FAuth up to and including 7.0.1 and is fixed in 8.0.0; instances using any other authentication guard are not affected, and the exposure requires that the backend be reachable without passing through a trusted proxy. The vendor advisory GHSA-mh8r-74x2-r457 includes a detailed public PoC reference (curl steps and a Python script) that has not been independently verified as working exploit code, and the issue is not listed in CISA KEV; the vendor's fix and the priority label of act_now reflect the complete loss of confidentiality, integrity and availability once the two deployment preconditions are met.
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.
Blind SSRF in 2FAuth 2FA manager before 6.1.0.
2FAuth versions up to and including 7.0.1 are exposed to authenticated server-side request forgery through the otpauth image= icon fetch: the hostname is validated once by ValidatesUrls::isExternalHost() and then resolved a second time by Guzzle/cURL in IconService::storeRemoteImage(), with no IP pinning between the two lookups. Any ordinary authenticated user (including a personal access token; registration is commonly left open) who controls authoritative DNS for the host in image= can serve a public address with TTL 0 for the validation resolve and an internal address for the fetch resolve, reaching loopback, RFC1918, link-local, or the cloud metadata endpoint at 169.254.169.254 and having the response stored as the account icon. A public proof-of-concept harness accompanies the vendor advisory but is not confirmed as working exploit code against a deployed instance, and no active exploitation has been reported; the vendor fixed the issue in 8.0.0 by pinning the validated IP via CURLOPT_RESOLVE.
Server-side request forgery in 2FAuth 6.1.0 through 7.0.1 lets the app's remote-image fetch reach internal IPv4 targets - including cloud metadata at 169.254.169.254 - through IPv6 NAT64 addresses that the application's hand-rolled SSRF guard does not recognize. The guard checks only literal private/reserved ranges and the literal metadata IP, so a crafted otpauth:// image= parameter (IPv6 literal or DNS64-synthesized hostname) passes validation and IconService::buildFromRemoteImage() issues an HTTP GET that a NAT64 gateway translates to the internal address. Exploitation stacks three conditions: BLOCK_OPTAUTH_IMAGELINK_FETCHING must be set to false (it defaults to true, so fetching is off by default), a NAT64/DNS64 gateway must exist on the path, and the actor must be an authenticated account holder or induce a victim to import a crafted URI/migration payload; no public exploit code or active exploitation has been identified, and the vendor fixed the flaw in 8.0.0.
Missing per-resource authorization in 2FAuth's share recipients endpoint (all versions prior to 8.0.0) lets any authenticated user holding a valid API token request GET /api/v1/twofaccounts/{victimId}/recipients for accounts they do not own, because recipients() omits the $this->authorize('manageShares', $twofaccount) check that its five sibling methods perform and Laravel's implicit model binding resolves accounts by sequential integer ID. Iterating IDs (the total is disclosed by /api/v1/twofaccounts/count) returns every registered user's ID and display name along with each account's is_shared_with sharing state, and the filter[nameOrEmail] parameter allows exact-email confirmation of registered accounts. Impact is information disclosure only (C:H/I:N/A:N, 6.5) and is gated on the non-default account sharing feature being enabled plus a multi-user deployment; the advisory publishes a curl-based reproduction procedure, but no verified working exploit code or CISA KEV entry is associated with this CVE, and it is triaged as this-month priority rather than emergency.
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
2FA is a Web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
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.
Unauthenticated account takeover of 2FAuth deployments that run the opt-in reverse-proxy-guard mode: any client able to reach the application directly can forge the identity header (REMOTE_USER by default, or the header named by AUTH_PROXY_HEADER_FOR_USER) and be authenticated as an existing user - including an administrator - in a single request, with full read access to stored TOTP/HOTP secrets and to account and application management functions. The issue affects 2FAuth up to and including 7.0.1 and is fixed in 8.0.0; instances using any other authentication guard are not affected, and the exposure requires that the backend be reachable without passing through a trusted proxy. The vendor advisory GHSA-mh8r-74x2-r457 includes a detailed public PoC reference (curl steps and a Python script) that has not been independently verified as working exploit code, and the issue is not listed in CISA KEV; the vendor's fix and the priority label of act_now reflect the complete loss of confidentiality, integrity and availability once the two deployment preconditions are met.
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.
Blind SSRF in 2FAuth 2FA manager before 6.1.0.
2FAuth versions up to and including 7.0.1 are exposed to authenticated server-side request forgery through the otpauth image= icon fetch: the hostname is validated once by ValidatesUrls::isExternalHost() and then resolved a second time by Guzzle/cURL in IconService::storeRemoteImage(), with no IP pinning between the two lookups. Any ordinary authenticated user (including a personal access token; registration is commonly left open) who controls authoritative DNS for the host in image= can serve a public address with TTL 0 for the validation resolve and an internal address for the fetch resolve, reaching loopback, RFC1918, link-local, or the cloud metadata endpoint at 169.254.169.254 and having the response stored as the account icon. A public proof-of-concept harness accompanies the vendor advisory but is not confirmed as working exploit code against a deployed instance, and no active exploitation has been reported; the vendor fixed the issue in 8.0.0 by pinning the validated IP via CURLOPT_RESOLVE.
Server-side request forgery in 2FAuth 6.1.0 through 7.0.1 lets the app's remote-image fetch reach internal IPv4 targets - including cloud metadata at 169.254.169.254 - through IPv6 NAT64 addresses that the application's hand-rolled SSRF guard does not recognize. The guard checks only literal private/reserved ranges and the literal metadata IP, so a crafted otpauth:// image= parameter (IPv6 literal or DNS64-synthesized hostname) passes validation and IconService::buildFromRemoteImage() issues an HTTP GET that a NAT64 gateway translates to the internal address. Exploitation stacks three conditions: BLOCK_OPTAUTH_IMAGELINK_FETCHING must be set to false (it defaults to true, so fetching is off by default), a NAT64/DNS64 gateway must exist on the path, and the actor must be an authenticated account holder or induce a victim to import a crafted URI/migration payload; no public exploit code or active exploitation has been identified, and the vendor fixed the flaw in 8.0.0.
Missing per-resource authorization in 2FAuth's share recipients endpoint (all versions prior to 8.0.0) lets any authenticated user holding a valid API token request GET /api/v1/twofaccounts/{victimId}/recipients for accounts they do not own, because recipients() omits the $this->authorize('manageShares', $twofaccount) check that its five sibling methods perform and Laravel's implicit model binding resolves accounts by sequential integer ID. Iterating IDs (the total is disclosed by /api/v1/twofaccounts/count) returns every registered user's ID and display name along with each account's is_shared_with sharing state, and the filter[nameOrEmail] parameter allows exact-email confirmation of registered accounts. Impact is information disclosure only (C:H/I:N/A:N, 6.5) and is gated on the non-default account sharing feature being enabled plus a multi-user deployment; the advisory publishes a curl-based reproduction procedure, but no verified working exploit code or CISA KEV entry is associated with this CVE, and it is triaged as this-month priority rather than emergency.
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Rated high severity (CVSS 7.5), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available.
2FA is a Web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Rated medium severity (CVSS 6.1), this vulnerability is remotely exploitable, no authentication required, low attack complexity. Public exploit code available and no vendor patch available.