logoalt Hacker News

raggitoday at 3:50 AM4 repliesview on HN

Time for your regular reminder that ssh has no PKI and is trivial to mitm during tofu.


Replies

sphtoday at 8:36 AM

Acronyms are supposed to be capitalised. I do not belive you are talking about the soy product.

https://en.wikipedia.org/wiki/Man-in-the-middle_attack

https://en.wikipedia.org/wiki/Trust_on_first_use

krotoday at 4:43 AM

I understand that most people don't use it and indeed rely on tofu, but the statement is not absolutely correct.

ssh server keys can be authenticated using (the DNSSEC "CA" system and) SSHFP, and it's possible to setup a signing CA for the host key (similar to ssh certificates, however not applicable for foreign servers). And of course, the fingerprint could be advertised out of band e.g. on the homepage with tls

show 1 reply
pzaciktoday at 4:35 AM

Yes, but what exactly would an attacker achieve by doing mitm here?

rvztoday at 7:31 AM

Agreed. Amid all this hype, once again we continue to see such disregard for basic security implications and using ssh outside it's intended use-case; especially sshing into random servers.

Now we wait for the discovery of an RCE, key leakage vulnerability or a security bypass that leads to a trivial mitm attack to magnify why ssh apps make no sense security wise.