J-Security Center

Title: OpenSSH UseLogin Vulnerability

Severity: MODERATE

Description:

OpenSSH is a free derivative of ssh1, a secure remote login tool. An option can be set to use the login program (the option is 'UseLogin') - this is set to 'no' by default in most distributions. When UseLogin is turned on, sshd doesn't set the uid of the person logging in to what it should be, it remains running as root. This can be exploited if a command is specified (to be executed) on the target host running sshd via the ssh client. Since instead of logging in, a command is being run, "login" is not used and therefore cannot set the correct userid. Any command executed remotely via ssh where "UseLogin" is on will execute as root, leading to a trivial compromise.

Affected Products:

  • Debian Linux 2.2.0
  • Debian Linux 2.2.0 68k
  • Debian Linux 2.2.0 alpha
  • Debian Linux 2.2.0 arm
  • Debian Linux 2.2.0 powerpc
  • Debian Linux 2.2.0 sparc
  • OpenBSD OpenSSH 1.2.0
  • OpenBSD OpenSSH 1.2.3
  • OpenBSD OpenSSH 2.1.0

References:

Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.