J-Security Center

Title: OpenSSH Key Based Source IP Access Control Bypass Vulnerability

Severity: MODERATE

Description:

OpenSSH is a secure remote access / command execution protocol.

One of the features offered by OpenSSH is the ability to implement access control based on source IP per key. There exists a bug in this feature that may allow for attackers to bypass some access control and login from unauthorized hosts.

The access control information is stored with each key in the 'authorized_keys2' file present in each user's OpenSSH '.ssh' directory. The hosts permitted to login for each key can be specified using the 'from=' directive.

When two keys of different types appear successively in the '.authorized_keys2' file, a bug in OpenSSH causes the key options of the second to be applied to the first. Among those options is the access control information.

Depending on the order of keys, it may be possible for attackers to bypass key-based access control.

Affected Products:

  • Caldera OpenLinux Server 3.1.0
  • Caldera OpenLinux Server 3.1.1
  • Caldera OpenLinux Workstation 3.1.0
  • Caldera OpenLinux Workstation 3.1.1
  • Conectiva Linux 6.0.0
  • Conectiva Linux 7.0.0
  • Conectiva Linux 8.0.0
  • FreeBSD FreeBSD 4.4.0 -RELENG
  • FreeBSD FreeBSD 4.5.0
  • FreeBSD FreeBSD 4.5.0 -RELEASE
  • FreeBSD FreeBSD 4.6.0
  • FreeBSD FreeBSD 4.6.0 -RELEASE
  • HP Secure OS software for Linux 1.0.0
  • Immunix Immunix OS 7.0.0
  • MandrakeSoft Corporate Server 1.0.1
  • MandrakeSoft Linux Mandrake 7.1.0
  • MandrakeSoft Linux Mandrake 7.2.0
  • MandrakeSoft Linux Mandrake 8.0.0
  • MandrakeSoft Linux Mandrake 8.0.0 ppc
  • MandrakeSoft Linux Mandrake 8.1.0
  • MandrakeSoft Single Network Firewall 7.2.0
  • NetBSD NetBSD 1.5.1
  • OpenSSH OpenSSH 2.5.0
  • OpenSSH OpenSSH 2.5.1
  • OpenSSH OpenSSH 2.5.2
  • OpenSSH OpenSSH 2.9.0
  • OpenSSH OpenSSH 2.9.0p1
  • OpenSSH OpenSSH 2.9.0p2
  • RedHat Linux 7.0.0
  • RedHat Linux 7.1.0
  • RedHat Linux 7.2.0
  • RedHat openssh-2.1.1p4-1.i386.rpm 0.0.0
  • RedHat openssh-2.5.2p2-5.i386.rpm 0.0.0
  • RedHat openssh-2.9p2-7.i386.rpm 0.0.0
  • RedHat openssh-askpass-2.1.1p4-1.i386.rpm 0.0.0
  • RedHat openssh-askpass-2.5.2p2-5.i386.rpm 0.0.0
  • RedHat openssh-askpass-2.9p2-7.i386.rpm 0.0.0
  • RedHat openssh-askpass-gnome-2.1.1p4-1.i386.rpm 0.0.0
  • RedHat openssh-askpass-gnome-2.5.2p2-5.i386.rpm 0.0.0
  • RedHat openssh-askpass-gnome-2.9p2-7.i386.rpm 0.0.0
  • RedHat openssh-clients-2.1.1p4-1.i386.rpm 0.0.0
  • RedHat openssh-clients-2.5.2p2-5.i386.rpm 0.0.0
  • RedHat openssh-clients-2.9p2-7.i386.rpm 0.0.0
  • RedHat openssh-server-2.1.1p4-1.i386.rpm 0.0.0
  • RedHat openssh-server-2.5.2p2-5.i386.rpm 0.0.0
  • RedHat openssh-server-2.9p2-7.i386.rpm 0.0.0
  • S.u.S.E. Linux 7.1.0
  • S.u.S.E. Linux 7.2.0
  • S.u.S.E. Linux 7.3.0
  • S.u.S.E. Linux Database Server
  • S.u.S.E. Linux Enterprise Server 7
  • S.u.S.E. Linux Firewall on CD
  • S.u.S.E. SuSE eMail Server III
  • Sun Cobalt RaQ 550

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.