OpenSSH 8.6 is still vulnerable to CVE-2020-14145 and will not be fixed
OpenSSH clients still leak whether they already know a server's host key, because the 8.4 fix only preserves default algorithm ordering when the server offers an ecdsa-sha2 key. A man-in-the-middle attacker can use this timing/ordering difference to tell a first-time connection from a repeat one and target only new users.
github.com
Published on github.com
By removing the preferred host keys and always using default hostkeys, a mitm attacker is not able to exploit CVE-2020-14145.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the client's host key algorithm ordering differs between known and unknown host keys for non-ecdsa-sha2 keys, so the earlier fix only covered one algorithm.
Impact
A man-in-the-middle attacker could distinguish first-time connections from repeat ones and focus attacks on users without a cached key; the text does not claim full interception on its own.
What the attacker needed
Attacker positioned as man-in-the-middle; server offers a non-ecdsa-sha2 host key; victim connects with OpenSSH client
The fix
The client should use the same default algorithm ordering whether or not it already knows the host key; the text notes the issue was not fixed.
How it was found
- Compile OpenSSH 8.5 or 8.6 and install the SSH-MITM tool.
- Start the SSH-MITM server and connect the client to it.
- On the first connection the client is asked to accept the host key and the tool logs a first-time connection.
- Accept the key, close the client, and connect again.
- The client no longer asks about the key and the tool logs that a cached fingerprint exists.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When you connect to a server over SSH, your client remembers the server's key so it can warn you if it changes. This report shows that the client behaves slightly differently when it already knows the key versus when it does not, and an attacker sitting in the middle can notice that difference. That lets the attacker pick out people connecting for the first time, who are easier to trick into accepting a fake key.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.