Skip to content

v4.3.4

Latest

Choose a tag to compare

@bvisible bvisible released this 23 Nov 20:59
· 1 commit to main since this release

A security release: upgrade. ssh_download wrote any local path it was given,
including for servers in readonly or restricted mode
(GHSA-2v9g-gm8g-mxgj,
high, found by the maintainer). Every release from 3.0.0 is affected. One thing
behaves differently on purpose:
a download from a readonly or restricted
server is now refused outside ~/.ssh-manager/transfers; if you download to a
folder of your own, set TRANSFER_ROOT for that server (see below). Nothing else
changes (the release pipeline upgrades 3.8.5, 3.8.6, 3.8.7, every 4.0.x, 4.1.0,
4.2.0, 4.3.0, 4.3.1, 4.3.2 and 4.3.3 from the registry to this version and back).

The Windows installer is still not Authenticode-signed, for the same reason
as 4.0.0: Windows shows "Windows protected your PC", More info → Run anyway,
and ssh-manager app checks the installer against the SHA-256 in
release-manifest-win32.json. macOS builds are signed and notarized.

Security

  • A server in readonly or restricted mode can no longer have a download written
    anywhere on this machine.
    ssh_download writes a local file and never looked at
    the path, in any mode, and is not blocked in readonly or restricted because it
    changes nothing on the server. An agent that cannot run a command on such a server
    could still create a file there (a redirect to /tmp is allowed in readonly) and
    download it over ~/.zshrc, or into ~/.ssh/authorized_keys, which a later shell
    or login then ran. The local side of a transfer now has a transfer root: a
    readonly or restricted server downloads into ~/.ssh-manager/transfers (made
    the first time, private to you; a relative local path is read from it), and any
    server can name its own folder with SSH_SERVER_<NAME>_TRANSFER_ROOT (TOML:
    transfer_root), which then also holds ssh_upload and ssh_sync to it. A path is
    judged by where it really is after following links, a link as the file is refused,
    and a download is received beside its place and moved there, so a failed one leaves
    no half file. Servers in unrestricted mode with no root are not filtered, as
    before. If you download from a readonly or restricted server to a folder of
    your own, set TRANSFER_ROOT to it
    : a download elsewhere is refused with a message
    that names the folder. Found while comparing this project with another SSH server
    for MCP that confines its transfers the same way.

Install or update: npm install -g mcp-ssh-manager@4.3.4 (or npm update -g mcp-ssh-manager), or download the desktop application below; the 4.x application updates itself.