Skip to content

OIDC login allows session-token theft and trusts unsigned ID-token claims on verification errors

High
ZacharyZcR published GHSA-fmwq-x6v6-3q8w Jul 27, 2026

Software

Termix-SSH/Termix

Affected versions

>= 2.3.0, < 2.5.1

Patched versions

>= 2.5.1

Description

Summary

The OIDC login flow contains two authentication flaws.

  1. The authorize endpoint builds a post-login callback URL from the unvalidated desktopCallbackPort query parameter. The callback decides whether to append the session token using a string prefix check instead of validating the parsed URL host. A crafted value can therefore redirect a victim newly issued Termix token to an attacker-controlled host.
  2. When ID-token signature verification throws, the login flow falls back to decoding the JWT payload and trusts the unverified claims. Those claims drive user identity and admin-group synchronization.

Affected component

  • src/backend/database/routes/users.ts

Impact

The callback issue allows an unauthenticated attacker to take over the account of a victim who completes OIDC login through an attacker-crafted authorize link. The verification fallback can accept forged identity or group claims if an attacker can supply a forged ID token while causing the normal verification path to fail.

Remediation

Validate the callback port as an integer from 1 through 65535, restrict callbacks to known origins, and base callback decisions on the parsed hostname. Never use decoded but unverified ID-token claims; reject login whenever signature, issuer, audience, nonce, or key verification fails.

Severity

High

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N

CVE ID

No known CVE

Weaknesses

Improper Verification of Cryptographic Signature

The product does not verify, or incorrectly verifies, the cryptographic signature for data. Learn more on MITRE.

URL Redirection to Untrusted Site ('Open Redirect')

The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. Learn more on MITRE.

Credits