Summary
Termix-SSH's file transfer endpoint is vulnerable to path traversal when it processes the destPath argument. A remotely initiated request may cause files to be written outside the intended destination, subject to the endpoint's access controls and the permissions of the transfer process.
Affected context
The issue affects processing associated with /plugin-api/file-manager/transferToHost in Termix versions up to 2.9.2. The destination path used by the transfer operation is the relevant input; the risk depends on whether an attacker can reach the endpoint and what access the transfer process has on the destination host. The vendor description notes that the affected shortcut was removed in the standalone File Manager plugin v1.0.0 and in core v26.10.0.
Exploit preconditions
- Attack surface: The file-transfer API endpoint, which may be reachable remotely.
- Required access: The description does not establish whether authentication is required; applicable access controls determine who can invoke the endpoint.
- Trigger point: Processing of the
destPathargument bytransferToHost. - Why exploitation is possible: If the destination path is not constrained to an authorized base directory, traversal components may direct writes outside the intended location.
Why this happens
The underlying bug is insufficient validation or canonicalization of a user-influenced destination path. When a file operation accepts a path without reliably restricting its resolved location to an authorized directory, traversal can escape the intended destination boundary. This is a path traversal issue mapped to CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Potential impact
- An attacker may write files outside the intended transfer directory.
- Files accessible to the transfer process could be overwritten or altered.
- Changes to sensitive files could disrupt services or affect application behavior.
- The impact may extend to a destination host if the transfer process has broad write permissions.
General mitigation guidance
Defensive approaches focus on confining file operations to explicitly authorized destinations:
- Resolve and canonicalize destination paths, then verify they remain within an approved base directory.
- Prefer APIs that accept a trusted directory handle and a constrained relative path over unrestricted path strings.
- Apply strict path validation and reject unexpected absolute paths or traversal components.
- Limit the transfer process to the minimum filesystem permissions needed, and reduce trust in caller-supplied paths.
- Use secure-by-default transfer behavior that enforces destination boundaries consistently.
How teams detect issues like this
- Use static analysis to identify file-write operations that consume request-controlled paths without containment checks.
- Review transfer handlers for canonicalization and base-directory enforcement, including checks performed before and after path resolution.
- Monitor for transfer requests whose resolved destinations fall outside approved directories, and audit unexpected file modifications.
- Enforce API policies that restrict who can invoke file-transfer operations and which destinations are permitted.
- Automated code review tools may help flag risky path construction and file-write patterns.

