Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with ordinary 2FAuth account
-
DeliverySubmit otpauth URI with attacker-controlled image= host
-
ExploitValidator resolves public IP, passes deny-list
-
ExecutionDNS rebinds to internal/metadata IP
-
PersistServer fetches internal endpoint via SSRF
-
ImpactReach cloud metadata, exfiltrate IAM credentials
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Requires (1) an authenticated 2FAuth account - any ordinary non-admin user or personal access token, which matters because registration is commonly left open; (2) external otpauth image fetching left at its default-enabled state (config 'blockOtpauthImagelinkFetching' off); (3) the attacker operating authoritative DNS for a domain they place in image=, served with TTL 0 so the validator's resolve returns a public IP while the subsequent Guzzle fetch resolve returns an internal IP (127.0.0.1, RFC1918, link-local, or 169.254.169.254). The exploit succeeds only by winning the TOCTOU window between the two independent resolutions (reflected as AC:H); a TTL-0 rebind makes this reliable in practice. allow_redirects=>false does not block it. Limiting factors for defenders: the authentication requirement, the need for attacker-controlled low-TTL DNS, and that it is blocked outright if blockOtpauthImagelinkFetching is enabled. Affected versions are <= 7.0.1; 8.0.0 pins the validated IP via CURLOPT_RESOLVE. |
| Impact | This is a genuine but moderate-priority issue, not a drop-everything emergency, and the signals are internally consistent. The CVSS 3.1 vector (AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N, base 5.9) correctly reflects a network-reachable but authentication-gated flaw whose exploitation depends on winning a time-of-check/time-of-use DNS race (AC:H) - the attacker must operate authoritative DNS for their own domain with TTL 0 and flip answers between the validator's resolve and the fetcher's resolve. The vuln.today Decision label is 'this_month' (not act_now/emergency), which aligns with a serious-but-conditioned SSRF. No CISA KEV listing and no EPSS score were supplied in the input, so there is no evidence of active exploitation or a quantitative exploitation-probability signal; absence of these is not proof of safety but does argue against widespread opportunistic attack. The advisory ships a complete, self-contained proof-of-concept harness that reproduces the validate-then-fetch bypass on loopback, so the technique is public and demonstrated. The main factors that temper real-world urgency are the authenticated precondition (PR:L) and the AC:H timing/DNS-control requirement; the main factor that raises it is the High confidentiality impact - a successful rebind lets the server reach cloud metadata (169.254.169.254) and loopback/RFC1918 internal services, which can yield cloud IAM credentials. Net: a real priority for internet-exposed 2FAuth instances with open registration, but gated enough that it is not a mass-exploitation candidate. |
| Exploit ScenarioDerived | An authenticated low-privilege user on an internet-exposed 2FAuth instance submits an otpauth:// URI whose image= parameter points at a domain they control via authoritative DNS served with TTL 0. The validator (isExternalHost/dns_get_record) resolves the name to a public IP and approves it, but milliseconds later Guzzle re-resolves the same name to 127.0.0.1 or 169.254.169.254, so the server issues the HTTP GET to an internal target. A complete PoC demonstrating this validate-then-fetch TOCTOU is published verbatim in the GHSA advisory, making the technique reliably reproducible with a TTL-0 rebinding resolver. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
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.
RemediationAI
Vendor-released patch: 2FAuth 8.0.0 (release tag v8.0.0, commit 52e9db94f2da2a6231d77c49537d6d88ce948ee1) - upgrade from any version at or below 7.0.1 as described in advisory GHSA-22mh-gmrh-gpwg. The patched code resolves the host once and pins the validated IP through CURLOPT_RESOLVE; note that if the PHP/cURL build does not expose CURLOPT_RESOLVE, 8.0.0 refuses the remote icon fetch entirely rather than connecting unpinned, so verify remote icon fetching still behaves as expected after upgrading. If an immediate upgrade is not possible, the configuration switch 2fauth.config.blockOtpauthImagelinkFetching set to its blocking state defeats the attack outright, with the trade-off that users can no longer import icons from remote otpauth image links and such fetches are logged and skipped. Because the vulnerability requires only an ordinary authenticated account and registration is frequently left open on 2FAuth instances, restricting who can register or hold a personal access token reduces exposure, though it does not remove the flaw for existing low-privileged users.
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
The flaw is a classic validate-then-fetch time-of-check/time-of-use race (CWE-367, alongside CWE-918) in 2FAuth's remote icon pipeline. When an otpauth:// URI supplied by a user carries an image=<url> parameter, TwoFAccount.php passes it to Icons::buildFromRemoteImage(), which calls isPublicRemoteUrl() from the ValidatesUrls trait; that validator resolves the hostname with dns_get_record(DNS_A|DNS_AAAA) and rejects records pointing at private, reserved, loopback, link-local, CGNAT, multicast, or metadata addresses. On approval, IconService::storeRemoteImage() issues Http::get($url) through Guzzle/cURL using proxy, allow_redirects=>false, connect_timeout 5 and timeout 10 - and cURL resolves the same name again at connect time. Because isExternalHost() validates a name and never returns or pins the address, and no CURLOPT_RESOLVE exists anywhere in the 7.0.1 codebase, an attacker-controlled TTL-0 authoritative zone can flip the answer from a public IP to an internal one in the interval between the two lookups; allow_redirects=>false blocks the redirect-based bypass but not rebinding. The upstream fix (commit 52e9db94f2da2a6231d77c49537d6d88ce948ee1) replaces the boolean check with getPublicRemoteTarget(), which returns the resolved public IPs and port and emits curlResolveEntries ('host:port:ip') that are passed to the HTTP client as CURLOPT_RESOLVE, pinning the connection to the address that was actually validated; if CURLOPT_RESOLVE is not exposed by the PHP build, the patched code logs an error and refuses to fetch rather than falling back to an unpinned request. This is the third iteration of the same SSRF surface, after GHSA-8qp3-x2mp-j6f8 (fixed in 6.1.0) and GHSA-xwxc-w7v3-2p4j, which added pre-fetch validation but not address pinning.
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:H/PR:L/UI:N/S:U/C:H/I:L/A:N
Network-reachable (AV:N) but gated by an authenticated account (PR:L) and a DNS-rebinding race needing attacker-controlled low-TTL DNS (AC:H); High confidentiality from reachable internal/metadata responses, minor integrity from stored fetched body, no availability impact.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
2FAuth is a web app to manage Two-Factor Authentication (2FA) accounts and generate their security codes. Prior to 8.0.0, the otpauth image-fetch path validates a hostname through ValidatesUrls::isExternalHost() and then lets IconService::storeRemoteImage() resolve the same hostname again for the HTTP request. When external otpauth image fetching is enabled, an authenticated user controlling low-TTL authoritative DNS can return a public address during validation and an internal address during the later connection, bypassing the private-address deny list to reach loopback, private-network, link-local, or cloud metadata endpoints. This issue is fixed in version 8.0.0.
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
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 remote attackers can gain full administrative control of a fresh 2FAuth instance, or impersonate known u
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
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-118490
NVD
CVE.org
EPSS
GitHub
Exploit-DB