Файли
openidea/crates/ide-ssh
l0ng-ai 6b5008f02e fix(ssh): refuse hosts and users with shell metacharacters (#8377)
`ProxyCommand` and `Match exec` in `~/.ssh/config` run through `sh -c` with
`%h`, `%n` and `%r` substituted as written. A host or user name can come from
a project's files (a data source's SSH tunnel), so one holding `;` or `$(...)`
ran commands on this machine whenever the user's config had such a rule.

Connecting now refuses a host or user that OpenSSH itself refuses on its
command line: a leading `-`, whitespace, control characters or shell
metacharacters (a user may still be `DOMAIN\name`).
2026-12-06 20:14:48 +08:00
..