OpenSSH ForceCommand directive command execution
| openssh-forcecommand-command-execution (41549) |
Description:
OpenSSH could allow a local attacker to execute arbitrary commands on the system, caused by an error when using the shd_config ForceCommand directive. An attacker could exploit this vulnerability via ~/.ssh/rc to execute arbitrary commands on the system.
Platforms Affected:
- MandrakeSoft, Mandrake Linux 2007.1 X86_64
- MandrakeSoft, Mandrake Linux 2007.1
- MandrakeSoft, Mandrake Linux 2008.0 X86_64
- MandrakeSoft, Mandrake Linux 2008.0
- MandrakeSoft, Mandrake Linux 2008.1 X86_64
- MandrakeSoft, Mandrake Linux 2008.1
- OpenBSD, OpenSSH 1.2
- OpenBSD, OpenSSH 1.2.1
- OpenBSD, OpenSSH 1.2.2
- OpenBSD, OpenSSH 1.2.27
- OpenBSD, OpenSSH 1.2.3
- OpenBSD, OpenSSH 2.1
- OpenBSD, OpenSSH 2.1.1
- OpenBSD, OpenSSH 2.1.1p4
- OpenBSD, OpenSSH 2.2
- OpenBSD, OpenSSH 2.2.0p1
- OpenBSD, OpenSSH 2.3
- OpenBSD, OpenSSH 2.3.0p1
- OpenBSD, OpenSSH 2.5
- OpenBSD, OpenSSH 2.5.1
- OpenBSD, OpenSSH 2.5.1p1
- OpenBSD, OpenSSH 2.5.1p2
- OpenBSD, OpenSSH 2.5.2
- OpenBSD, OpenSSH 2.5.2p1
- OpenBSD, OpenSSH 2.5.2p2
- OpenBSD, OpenSSH 2.9
- OpenBSD, OpenSSH 2.9.9
- OpenBSD, OpenSSH 2.9.9p1
- OpenBSD, OpenSSH 2.9.9p2
- OpenBSD, OpenSSH 2.9p1
- OpenBSD, OpenSSH 2.9p2
- OpenBSD, OpenSSH 3.0
- OpenBSD, OpenSSH 3.0.1
- OpenBSD, OpenSSH 3.0.1p1
- OpenBSD, OpenSSH 3.0.2
- OpenBSD, OpenSSH 3.0.2p1
- OpenBSD, OpenSSH 3.0p1
- OpenBSD, OpenSSH 3.1
- OpenBSD, OpenSSH 3.1p1
- OpenBSD, OpenSSH 3.2
- OpenBSD, OpenSSH 3.2.2
- OpenBSD, OpenSSH 3.2.2p1
- OpenBSD, OpenSSH 3.2.3
- OpenBSD, OpenSSH 3.2.3p1
- OpenBSD, OpenSSH 3.3
- OpenBSD, OpenSSH 3.3p1
- OpenBSD, OpenSSH 3.4
- OpenBSD, OpenSSH 3.4p1
- OpenBSD, OpenSSH 3.5
- OpenBSD, OpenSSH 3.5p1
- OpenBSD, OpenSSH 3.6
- OpenBSD, OpenSSH 3.6.1
- OpenBSD, OpenSSH 3.6.1p1
- OpenBSD, OpenSSH 3.6.1p2
- OpenBSD, OpenSSH 3.7
- OpenBSD, OpenSSH 3.7.1
- OpenBSD, OpenSSH 3.7.1p1
- OpenBSD, OpenSSH 3.7.1p2
- OpenBSD, OpenSSH 3.8
- OpenBSD, OpenSSH 3.8.1
- OpenBSD, OpenSSH 3.8.1p1
- OpenBSD, OpenSSH 3.9
- OpenBSD, OpenSSH 3.9.1
- OpenBSD, OpenSSH 3.9.1p1
- OpenBSD, OpenSSH 4.0
- OpenBSD, OpenSSH 4.0p1
- OpenBSD, OpenSSH 4.1
- OpenBSD, OpenSSH 4.1p1
- OpenBSD, OpenSSH 4.2
- OpenBSD, OpenSSH 4.2p1
- OpenBSD, OpenSSH 4.3
- OpenBSD, OpenSSH 4.3p1
- OpenBSD, OpenSSH 4.3p2
- OpenBSD, OpenSSH 4.4
- OpenBSD, OpenSSH 4.4p1
- OpenBSD, OpenSSH 4.5
- OpenBSD, OpenSSH 4.5p1
- OpenBSD, OpenSSH 4.6
- OpenBSD, OpenSSH 4.6p1
- OpenBSD, OpenSSH 4.7
- OpenBSD, OpenSSH 4.7p1
- OpenBSD, OpenSSH 4.9
- Turbolinux, Turbolinux 11 Server
- Turbolinux, Turbolinux 11 Server x64 Ed
Remedy:
Upgrade to the latest version of OpenSSH (4.9 or later), available from the OpenSSH Web site. See References.
Consequences:
Gain Privileges
References:
- OpenBSD 4.3 errata , 001: SECURITY FIX: March 30, 2008 at http://www.openbsd.org/errata43.html#001_openssh.
- OpenSSH Changelog, Release 4.7, Changes since OpenSSH 4.7 at http://www.openssh.com/txt/release-4.9.
- OpenSSH Web site, OpenSSH at http://www.openssh.com.
- BID-28531: OpenSSH ForceCommand Command Execution Weakness
- CVE-2008-1657: OpenSSH 4.4 up to versions before 4.9 allows remote authenticated users to bypass the sshd_config ForceCommand directive by modifying the .ssh/rc session file.
- FrSIRT/ADV-2008-1035: OpenSSH ForceCommand Directive Security Bypass Weakness
- FrSIRT/ADV-2008-1624: IBM AIX Security Update Fixes OpenSSH Multiple Local Vulnerabilities
- MDVSA-2008:098: Updated openssh packages fix vulnerability
- SA29602: OpenSSH ForceCommand Bypass Weakness
- SA29609: OpenBSD OpenSSH ForceCommand Bypass Weakness
- SECTRACK ID: 1019733: OpenSSH Unsafe Default Configuration May Let Local Users Execute Arbitrary Commands
- SUSE-SR:2008:009: SUSE Security Summary Report
Reported:
Mar 30, 2008
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
