Friday we had a disagreement with a colleague of mine about the implications of SSH server key compromission
The question was stated as this :
What could a hacker do while provided with the SSH server private key and a MitM position specifically when the client is authenticated with a public key (server configuration disallow password-based authentification)
after 20 minutes we could agree on the following facts :
- Stream decryption (eg. Is SSH using temporary keys encrypted with both public keys ?)
- Stream tampering (same question with HMAC keys)
- Identity theft : (being able to tamper a root connexion and replace users public keys with the hacker's in the server ; user's private key is safe in his computer ... is it ?)
- Identity substitution : being able to hijack the auth dialog to the compromised server and replay it in real time with an other non-compromised server auth dialog (==> hacking server A, hijaking client C connection to server A and connecting the pirate as C to the non-compromised server B)
- (placeholder for any other ideas :) )
Can anyone help us to sort these out ?
Answer see @PauloEbermann answer below or this article http://www.gremwell.com/ssh-mitm-public-key-authentication
"If SSH doesn't suck"
? Just curious. Thanks. $\endgroup$impersonating the server allow a man-in-the-middle attack
be carefull : We accepted the fact that the hacker was already in MitM position. How we don't care, we just want to know what he could do if he manage to find the server's key $\endgroup$