Termix is a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. The `POST /ssh/tunnel/connect` endpoint in Termix prior to version 2.3.2 builds an SSH tunnel command by interpolating user-controlled host record fields (`endpointIP`, `endpointUsername`, `password`) directly into a shell command without escaping, allowing persistent OS command injection on the source SSH host. Version 2.3.2 patches the issue.
The `POST /ssh/tunnel/connect` endpoint builds an SSH tunnel command by interpolating host record fields (`endpointIP`, `endpointUsername`, `password`) directly into a string executed in the system shell. Since none of these fields are sanitized or escaped, an attacker can embed malicious shell character sequences in them (e.g., semicolons, pipe characters, command substitution). The injected commands are executed with the privileges of the Termix process on the source SSH host and are persistent in nature.
An attacker can execute arbitrary operating system commands on the server hosting Termix, leading to complete system takeover, including breach of confidentiality, data integrity violation, and service unavailability.
Termix should be updated to version 2.3.2, which introduces a patch eliminating the vulnerability through proper escaping of input fields before their use in the shell command. The patch is available in the project repository: https://github.com/Termix-SSH/Termix/releases/tag/release-2.3.2-tag
Termix (Termix-SSH product) in versions earlier than 2.3.2
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HTermix
APPTermix2.1.0 – 2.3.2 (excl.)
Related vulnerabilities
Termix: OS command injection w endpointcie resolvePath (RCE)
Command injection w Termix File Manager via parametr path (GET resolvePath)
Broken Access Control w Termix — nieautoryzowany dostęp do sesji File Manager
Termix: nieautoryzowany dostęp do danych SSH przez błędne wykrywanie IP
Termix is a web-based server management platform with SSH terminal, tunneling, and file editing capabilities. ...