openssh-server Forced Command Handling Information Disclosure Vulnerability on blog.greenhouse.io
OpenSSH before 5.7 includes authorized_keys command options in debug messages, so a remote authenticated user can read potentially sensitive information from those messages. This can cross privilege boundaries because an account may have no shell or filesystem access to read its own authorized_keys file.
- Triaged in under an hour
- Fixed in under an hour
- Disclosed after 53 days
Summary of the issue:
The auth_parse_options function in auth-options.c in sshd in OpenSSH before 5.7 provides debug messages containing
authorized_keys command options, which allows remote authenticated users to obtain potentially sensitive information
by reading these messages, as demonstrated by the shared user account required by Gitolite. NOTE: this can cross
privilege boundaries because a user account may intentionally have no shell or filesystem access, and therefore may
have no supported way to read an authorized_keys file in its own home directory.
OpenSSH before 5.7 is affected.
Attack details..:
According to its banner, the version of OpenSSH installed on the remote
host is older than 5.7:
ssh-2.0-openssh_5.5p1 debian-6+squeeze5
Summary:
The auth_parse_options function in auth-options.c in sshd in OpenSSH before 5.7
provides debug messages containing authorized_keys command options, which allows
remote authenticated users to obtain potentially sensitive information by
reading these messages, as demonstrated by the shared user account required by
Gitolite. NOTE: this can cross privilege boundaries because a user account may
intentionally have no shell or filesystem access, and therefore may have no
supported way to read an authorized_keys file in its own home directory.
OpenSSH before 5.7 is affected;
Solution/Fix: Updates are available.
References: CVE: CVE-2012-0814 (http://www.securityfocus.com/bid/51702, etc..)
Br,
Simone
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the auth_parse_options function logged the authorized_keys command options in debug messages without considering that a restricted user could read them.
Impact
A remote authenticated user could obtain potentially sensitive information from debug messages, potentially crossing privilege boundaries for accounts with no shell or filesystem access.
What the attacker needed
Remote authenticated access; OpenSSH before 5.7; debug messages readable
The fix
Updates are available.
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 report has not been written yet. The Original tab links to the source.
When you log in to a server over SSH, the server can be set up to run a fixed command for your account, and those settings are stored in a file called authorized_keys. In older versions of the SSH server software, the server printed those settings in its debug output, which a logged-in user could see. That matters because some accounts are deliberately locked down with no shell or file access, yet the debug output could still reveal the command settings.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.