3 ms·
This is a bit off-topic but I'm wondering about this since I had a shell acount at university many years ago. Is it safe to ssh into an untrusted host? What ar
by weinzierl 8y ago
This is a bit off-topic but I'm wondering about this since I had a shell acount at university many years ago.
Is it safe to ssh into an untrusted host? What are the things to watch out? I know that ssh -X is not a good idea but are there other options that are potentially dangerous?
Or is it just that people trust their shell providers?
- nothrabannosir 8y agoOne attack vector is your terminal emulator’s interpretation of escape sequences. Some of them allow code execution. E.g.: https://www.proteansec.com/linux/blast-past-executing-code-terminal-emulators-via-escape-sequences/ https://www.proteansec.com/linux/blast-past-executing-code-t... > Its important to emphasize that escape sequences used in up-to-date terminal emulators used today most likely don't have such vulnerabilities, since they have been mitigated in the past. However, terminal emulators developed recently and used on other devices, like on embedded devices, Android, iOS can still contain such vulnerabilities.
- etcet 8y agoYou shouldn't connect to an untrusted host via SSH with SSH agent forwarding enabled. From the man page: > Agent forwarding should be enabled with caution. Users with the ability to bypass file permissions on the remote host (for the agent's UNIX-domain socket) can access the local agent through the forwarded connection. An attacker cannot obtain key material from the agent, however they can perform operations on the keys that enable them to authenticate using the identities loaded into the agent.
- ben0x539 8y agosee also https://news.ycombinator.com/item?id=10004678 https://news.ycombinator.com/item?id=10004678