Skip to content
Info disclosure Write-up Advanced

OpenSSH: client bug CVE-2016-0777

The OpenSSH client contained experimental roaming support that a malicious or compromised server could exploit to leak client memory, including private user keys. The server host key authentication prevents man-in-the-middle exploitation, so the leak is limited to connections with malicious servers.

undeadly.org

Published on undeadly.org

Contributed by tj on 2016-01-14 from the i-have-a-fviend-in-Vome dept.

The author, on undeadly.org

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 experimental client-side roaming code was enabled by default and mishandled server responses, allowing a malicious server to read client memory.

Impact

A malicious or compromised server could leak client memory, including private user keys, though server host key authentication prevents man-in-the-middle exploitation.

What the attacker needed

Connect to a malicious or compromised server; OpenSSH client version 5.4 to 7.1

The fix

The roaming support was disabled and later removed; users could mitigate by adding 'UseRoaming no' to their SSH config or passing -oUseRoaming=no.

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.

OpenSSH is software for secure remote login. A bug in its client meant that if you connected to a bad server, that server could trick your client into sending back parts of its memory, which might include your private keys. The server's identity check stops someone in the middle from doing this, so you are only at risk if the server itself is malicious or hacked.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.