Skip to main content

2FAuth EUVDEUVD-2026-118488

| CVE-2026-63437 MEDIUM
Authorization Bypass Through User-Controlled Key (CWE-639)
2026-11-06 GitHub_M
6.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Authenticate with low-privilege API token
  2. Delivery
    Read /twofaccounts/count to learn ID range
  3. Exploit
    Call recipients endpoint for others' account IDs
  4. Execution
    Harvest user IDs and display names
  5. Impact
    Confirm 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

2FAuth < 8.0.0

Affected Packages

euvd 2fauth fix: 8.0.0

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

Vendor (GitHub_M) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 6.5 MEDIUM

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).

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

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

1
Patch available
Nov 06, 2026 - 21:03 EUVD

DescriptionCVE.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

EPSS Score
0.4%
Top 71% exploitable
Prevalence
Low
niche self-hosted open-source 2FA manager, no broad 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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