Skip to content
Info disclosure Write-up Intermediate

CVE-2016-6210: Opensshd user enumeration

OpenSSH's server daemon used a hardcoded fake password hash based on the BLOWFISH algorithm for non-existent users, while real users' passwords were hashed with SHA256/SHA512. By sending very large passwords, a remote attacker could measure response times to tell which usernames exist on the system.

seclists.org

Published on seclists.org

Abstract: ----------- By sending large passwords, a remote user can enumerate users on system that runs SSHD. This problem exists in most modern configuration due to the fact that it takes much longer to calculate SHA256/SHA512 hash than BLOWFISH hash.

The author, on seclists.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 server used a hardcoded fake password hash with the fast BLOWFISH algorithm for non-existent users, while real accounts used slower SHA256/SHA512 hashes, creating a measurable timing difference.

Impact

A remote attacker could determine which usernames exist on the server, which may help in later password-guessing attacks; the text notes that if root login is prohibited, root is not considered a valid user.

What the attacker needed

Network access to the SSH service; ability to send large passwords

The fix

The issue was reported to the OpenSSH developers, who sent a patch, though the author did not know whether it had been released yet.

How it was found

  1. Send a login attempt with a chosen username and a very large password.
  2. Measure the time until the server responds.
  3. Repeat for other usernames and compare the response times.
  4. Treat usernames with longer response times as valid users.

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 log in, the server checks your password against a stored scrambled version called a hash. Different scrambling methods take different amounts of time. The report found that for usernames that do not exist, the server used a fast method, but for real usernames it used a slower method. By sending a very long password and timing the reply, an attacker can guess which usernames are real.

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.