/

CVE-2026-45749

Severity:

HIGH RISK

(8.1)

Insufficient MFA Enforcement (CWE-308) in Termix TOTP Management Endpoints

CVE-2026-45749

Analyzed

Vulnerability type

Category:

Insufficient Authentication / MFA Bypass

CWE:

CWE-308

Impact:

Multi-Factor Authentication Bypass and Account Compromise

Severity:

HIGH RISK

(8.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Termix exposes MFA-critical endpoints that accept only the account password as authentication, allowing attackers with stolen credentials to disable TOTP or regenerate backup codes.

As a result, two-factor authentication can be silently bypassed if an attacker gains password access, undermining the protection users expect from MFA.

Affected context

This issue affects Termix deployments where users have enabled TOTP-based multi-factor authentication and rely on backup codes for recovery.

The vulnerable behavior occurs in the /users/totp/disable and /users/totp/backup-codes endpoints, which treat the primary account password as sufficient proof of identity for operations that should require a second factor.

The problem manifests when password verification is used alone to authorize security-sensitive changes to MFA settings, regardless of whether the user can produce a valid TOTP code or possesses the enrolled device.

Exploit preconditions

  • Attack surface: Termix web interface/API, specifically the MFA management endpoints.
  • Required access: Knowledge of the victim's valid account password (via phishing, credential stuffing, password database leakage, or reuse).
  • Trigger point: Sending POST requests to /users/totp/disable or /users/totp/backup-codes with the correct password but without any valid TOTP code.
  • Why exploitation is possible: The implementation treats the password as the only required factor for operations that modify or weaken MFA, failing to enforce a second factor or step-up verification for these critical actions.

Why this happens

The root cause is an authentication design flaw where operations that directly modify the state of multi-factor authentication rely solely on the user's password.

Instead of requiring proof of possession of the second factor (e.g., a current TOTP code) or another strong confirmation mechanism, the system reuses password-based authentication as if it were sufficient for all actions.

This maps to CWE-308: Use of Single-Factor Authentication for Security-Critical Operations, where a system fails to enforce multiple authentication factors for actions that are explicitly intended to be protected by multi-factor authentication.

Conceptually, the design treats "knowing the password" as equivalent to "fully authenticated with MFA," leaving a gap where attackers who compromise the password can downgrade or reset MFA without ever proving possession of the second factor.

Potential impact

  • Attackers with stolen passwords can disable TOTP protection on a victim's Termix account.
  • Attackers can regenerate and capture new MFA backup codes, allowing persistent access even if the user later regains control.
  • Two-factor authentication may effectively be reduced to single-factor password authentication for critical account-management operations.
  • Compromised accounts could be used to manage servers, run commands, or exfiltrate data through Termix, depending on the deployment's privileges.
  • Users may develop a false sense of security, believing MFA protects them when it does not for certain critical operations.

General mitigation guidance

Effective mitigation focuses on aligning MFA management operations with strong, multi-step verification patterns and minimizing implicit trust in a single factor:

  • Require a valid second-factor token (e.g., a current TOTP code or security key assertion) to disable or change MFA, in addition to the password.
  • Implement "step-up" authentication for high-risk operations, ensuring that recent, strong authentication is required before modifying security settings.
  • Treat backup-code regeneration as a privileged action that demands the same or higher assurance as initial MFA enrollment.
  • Separate general session authentication from critical-account operations, enforcing explicit re-authentication with all configured factors for changes to MFA settings.
  • Consider rate limiting and anomaly detection on MFA-related endpoints to reduce the impact of credential stuffing and automated attacks.
  • Provide clear user-facing signals and notifications (e.g., email or in-app alerts) whenever MFA is disabled or backup codes are regenerated, enabling quicker detection of misuse.

How teams detect issues like this

Organizations can identify and monitor this class of issue through a combination of design review, code analysis, and operational monitoring:

  • Design and threat-modeling reviews: Examine authentication and authorization flows to ensure that MFA is enforced not just at login but also for MFA-related management endpoints.
  • Static analysis and code review: Look for endpoints that perform account or security configuration changes and verify that they check for recent second-factor verification or a dedicated high-assurance session state.
  • Policy enforcement: Define development policies that any security-sensitive operation (e.g., disabling MFA, regenerating recovery codes, changing passwords or email addresses) must require step-up authentication.
  • Logging and analytics: Instrument detailed logging of MFA-related actions, including who initiated them, from where, and what authentication factors were used, then monitor for anomalies such as MFA disablement immediately after a new login from unfamiliar locations.
  • Automated tooling: Use automated code review and security testing tools capable of identifying flows where only a single factor gates sensitive operations, and integrate them into CI/CD workflows.

Sources

SourceLink
github.comgithub.com/Termix-SSH/Termix/releases/tag/release-2.3.2-tag
github.comgithub.com/Termix-SSH/Termix/security/advisories/GHSA-wqfw-rqj7-fv9m

Frequently asked

questions

Yes. Any remote attacker who can reach the Termix web interface or API and has obtained a valid user password can exploit this flaw without needing physical access to the TOTP device or knowledge of a valid TOTP code.

The attacker must know the victim's account password. This can be acquired through phishing, credential stuffing, reuse of leaked passwords from other breaches, or other credential-compromise methods. No additional authenticated session or second-factor token is required to exploit the affected endpoints.

The general fix is to require multi-factor or step-up authentication for all MFA-critical operations. In practice, this means enforcing a valid second factor (e.g., a TOTP code or hardware security key assertion) in addition to the password when disabling MFA, regenerating backup codes, or altering other security-sensitive account settings.

Future prevention relies on strong authentication design principles: treat MFA as a requirement not only for login but for all operations that weaken or modify security posture; introduce explicit step-up authentication for sensitive actions; codify policies that prohibit single-factor protection for high-impact changes; and incorporate threat modeling, code review, and automated checks focused on authentication flows into the development lifecycle.

Find out what's already
exploitable in your codebase.