Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with low-privilege API token
-
DeliveryRead /twofaccounts/count to learn ID range
-
ExploitCall recipients endpoint for others' account IDs
-
ExecutionHarvest user IDs and display names
-
ImpactConfirm target emails via nameOrEmail filter
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Object-level authorization, IDOR prevention
|
| Exploitation Conditions | Exploitation requires (1) the account sharing feature to be enabled - the route sits behind the rejectIfShareDisabled middleware, so instances with sharing disabled are not exposed, and (2) a valid authenticated API token for any user account (PR:L). The specific trigger is that recipients() in TwoFAccountShareController.php omits the $this->authorize('manageShares', $twofaccount) call that its five sibling methods perform, so Laravel implicit model binding resolves any TwoFAccount by its sequential integer primary key regardless of owner. Practical impact is limited to multi-user/team deployments: a single-user instance has no other users or foreign accounts to enumerate. Limiting factors are therefore the authentication requirement, the non-default dependence on sharing being enabled, and multi-user deployment; no user interaction or elevated privileges are needed. |
| Impact | This is a genuine but moderate-priority authorization flaw (CWE-639/CWE-862 IDOR), not a critical remote-code issue. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N, base 6.5) is internally consistent with the description: the endpoint is reachable over the network, requires only a low-privilege authenticated session (PR:L), needs no user interaction, and impacts confidentiality only (I:N/A:N) - no data is altered or destroyed. The signals align rather than conflict: there is no CISA KEV listing and no EPSS score supplied, consistent with a recently disclosed authorization bug in niche self-hosted software rather than mass-exploited infrastructure. The vuln.today decision label is 'this_month' (not act_now/emergency), matching the picture of a real issue that warrants timely patching but is not an active-exploitation fire drill. A public PoC reference exists in the GHSA advisory (working curl/jq commands), which lowers the practical barrier to abuse, but it is not verified as packaged working exploit code and does not indicate exploitation in the wild. The main caveat on severity: C:H reflects disclosure of the entire user directory plus email-existence confirmation across a multi-user instance, which is defensible, but the leaked data is metadata (user IDs, display names, email confirmation, sharing relationships) rather than secrets or 2FA codes - some analysts would rate confidentiality lower for a pure enumeration primitive. Real priority depends on deployment: single-user 2FAuth instances have essentially nothing to enumerate, while multi-user/team instances with sharing enabled face a meaningful information-disclosure and targeted-phishing enabler. |
| Exploit ScenarioDerived | In a multi-user 2FAuth instance with account sharing enabled, a low-trust or compromised authenticated user queries GET /api/v1/twofaccounts/{id}/recipients for account IDs they do not own, iterating over the sequential IDs revealed by /api/v1/twofaccounts/count to harvest every registered user's ID and display name. Because CVSS is PR:L the attacker only needs a valid API token, and AC:L/UI:N means the enumeration is trivial and fully scriptable; a public PoC reference exists but is not verified as working exploit code. They then use filter[nameOrEmail] to confirm whether specific email addresses are registered, building a target list for phishing or credential attacks. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
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.
RemediationAI
Upgrade to 2FAuth 8.0.0 (release tag v8.0.0), which adds the missing $this->authorize('manageShares', $twofaccount) call in TwoFAccountShareController::recipients(); the upstream commit is https://github.com/Bubka/2FAuth/commit/08753afbd847da8fa285e2ad857693ff88e46b84 and the fix sets the non-owner recipients test to expect 403. If upgrading cannot happen immediately, the exposure disappears when account sharing is switched off, because the route sits behind the rejectIfShareDisabled middleware - the trade-off is that shared-account workflows and all five legitimate share-management endpoints stop working for everyone on the instance. Restricting the deployment to a single trusted user also removes the enumeration value, since there would be no other registered users or foreign accounts to list. Because a valid API token for any account is sufficient, review and rotate API tokens for low-trust or potentially compromised accounts and audit API access logs for repeated GET /api/v1/twofaccounts/{id}/recipients calls across sequential IDs as a detection signal. No vendor-supported code-level workaround short of the 8.0.0 patch is documented in the available sources.
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 that stores TOTP/HOTP account secrets behind a REST API (api/v1) guarded by the auth:api-guard middleware, with a second middleware, rejectIfShareDisabled, gating the account-sharing routes. The flaw is an authorization-bypass-through-user-controlled-key problem (CWE-639) that also manifests as missing authorization (CWE-862): TwoFAccountShareController declares index, store, destroy, destroyAll, shareAll and recipients, and every one except recipients() opens with $this->authorize('manageShares', $twofaccount) against the existing TwoFAccountPolicy. Without that call, Laravel's implicit route-model binding fetches any TwoFAccount by its integer primary key irrespective of owner, and the method then runs a QueryBuilder over User::whereNot('id', $request->user()->id) with user-supplied allowedFilters, returning UserShareRecipientResource objects (user id, display name, is_shared_with). The fix upstream is a single policy invocation plus a test flipped from expecting 200 to expecting 403 for a non-owner; note the advisory patch hunk adds the authorize() statement adjacent to the store() flow and updates TwoFAccountShareControllerTest::test_recipients_for_non_owner_is_forbidden.
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:L/UI:N/S:U/C:H/I:N/A:N
Network API reachable by any authenticated user so AV:N/PR:L/AC:L/UI:N; full cross-user directory and email enumeration gives C:H with no data modification or availability impact (I:N/A:N).
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 recipients() method in app/Api/v1/Controllers/TwoFAccountShareController.php receives a caller-selected TwoFAccount through Laravel model binding but does not call the manageShares authorization policy before listing its recipients. When account sharing is enabled, an authenticated user can call GET /api/v1/twofaccounts/{victimId}/recipients for accounts owned by other users, enumerate registered user IDs and display names, test exact email addresses with filter[nameOrEmail], and inspect each account's sharing relationships. 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
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 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
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-118488
NVD
CVE.org
EPSS
GitHub
Exploit-DB