__________________________________________________________ The U.S. Department of Energy Computer Incident Advisory Capability ___ __ __ _ ___ / | /_\ / \___ __|__ / \ \___ __________________________________________________________ INFORMATION BULLETIN OpenSSH Security Update [Red Hat RHSA-2006:0298-4] July 21, 2006 13:00 GMT Number Q-255 [REVISED 4 Oct 2006] [REVISED 5 Dec 2006] [REVISED 18 Dec 2006] ______________________________________________________________________________ PROBLEM: There is a security vulnerability in the SSH daemon, when restricting host access by numeric IP addresses and with VerifyReverseMapping disabled. PLATFORM: Red Hat Desktop (v. 3) Red Hat Enterprise Linux AS, ES, WS (v. 2.1 & v. 3) Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor HP-UX B.11.00, B.11.11, B.11.23 DAMAGE: Allows remote attackers to bypass "from=" and "user@host" address restrictions by connecting to a host from a system whose reverse DNS hostname contains the numeric IP address. SOLUTION: Upgrade to the appropriate version. ______________________________________________________________________________ VULNERABILITY The risk is LOW. Allows remote attackers to bypass "from=" and ASSESSMENT: "user@host" address restrictions by connecting to a host from a system whose reverse DNS hostname contains the numeric IP address. ______________________________________________________________________________ LINKS: CIAC BULLETIN: http://www.ciac.org/ciac/bulletins/q-255.shtml ORIGINAL BULLETIN: Red Hat RHSA-2006:0298-4 https://rhn.redhat.com/errata/RHSA-2006-0298.html ADDITIONAL LINKS: Red Hat RHSA-2006:0698-8 https://rhn.redhat.com/errata/RHSA-2006-0698.html Visit Hewlett-Packard's Subscription Service for: HPSBUX02178 SSRT061267 rev. 2 CVE: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name= CVE-2003-0386 ______________________________________________________________________________ REVISION HISTORY: 10/04/2006 - revised to add a link to Red Hat RHSA-2006:0698-8 for Red Hat Enterprise Linux AS, ES, WS (v. 2.1) and Red Hat Linux Advanced Workstation 2.1 for the Itanium Processor. 12/05/2006 - revised to add a link to Hewlett-Packard's HPSBUX02178 SSRT061267 rev. 1 for HP-UX B.11.00, B.11.11, B.11.23. 12/18/2006 - revised revise Hewlett-Packard's HPSBUX02178 SSRT061267 rev. 2 for HP-UX B.11.00, B.11.11, B.11.23. [***** Start Red Hat RHSA-2006:0298-4 *****] Low: openssh security update Advisory: RHSA-2006:0298-4 Type: Security Advisory Issued on: 2006-07-20 Last updated on: 2006-07-20 Affected Products: Red Hat Desktop (v. 3) Red Hat Enterprise Linux AS (v. 3) Red Hat Enterprise Linux ES (v. 3) Red Hat Enterprise Linux WS (v. 3) CVEs (cve.mitre.org): CVE-2003-0386 CVE-2006-0225 Details Updated openssh packages that fix bugs in sshd are now available for Red Hat Enterprise Linux 3. This update has been rated as having low security impact by the Red Hat Security Response Team. OpenSSH is OpenBSD's SSH (Secure SHell) protocol implementation. This package includes the core files necessary for both the OpenSSH client and server. An arbitrary command execution flaw was discovered in the way scp copies files locally. It is possible for a local attacker to create a file with a carefully crafted name that could execute arbitrary commands as the user running scp to copy files locally. (CVE-2006-0225) The SSH daemon, when restricting host access by numeric IP addresses and with VerifyReverseMapping disabled, allows remote attackers to bypass "from=" and "user@host" address restrictions by connecting to a host from a system whose reverse DNS hostname contains the numeric IP address. (CVE-2003-0386) The following issues have also been fixed in this update: * If the sshd service was stopped using the sshd init script while the main sshd daemon was not running, the init script would kill other sshd processes, such as the running sessions. For example, this could happen when the 'service sshd stop' command was issued twice. * When privilege separation was enabled, the last login message was printed only for the root user. * The sshd daemon was sending messages to the system log from a signal handler when debug logging was enabled. This could cause a deadlock of the user's connection. All users of openssh should upgrade to these updated packages, which resolve these issues. Solution Before applying this update, make sure that all previously-released errata relevant to your system have been applied. Use Red Hat Network to download and update your packages. To launch the Red Hat Update Agent, use the following command: up2date For information on how to install packages manually, refer to the following Web page for the System Administration or Customization guide specific to your system: http://www.redhat.com/docs/manuals/enterprise/ Updated packages Red Hat Desktop (v. 3) -------------------------------------------------------------------------------- SRPMS: openssh-3.6.1p2-33.30.9.src.rpm e3ca3d0056b6d33fa9b73df89df0bfc4 IA-32: openssh-3.6.1p2-33.30.9.i386.rpm 3dac29ed4176d8fed38b39bf419bfad7 openssh-askpass-3.6.1p2-33.30.9.i386.rpm 70efaa93880ed72cd14d983aab0cc0ee openssh-askpass-gnome-3.6.1p2-33.30.9.i386.rpm af44bd411209a1587c8094f9210a556f openssh-clients-3.6.1p2-33.30.9.i386.rpm a0620c20b60e1e97359f2fb040a7aa9c openssh-server-3.6.1p2-33.30.9.i386.rpm 4ced380f7d629e7d9b7cb2099d96f7b5 x86_64: openssh-3.6.1p2-33.30.9.x86_64.rpm 2c39fc426812d6c51fcff37a1475917a openssh-askpass-3.6.1p2-33.30.9.x86_64.rpm 8f190121fc48dd7f6fb7bad23aa2b1db openssh-askpass-gnome-3.6.1p2-33.30.9.x86_64.rpm c90e54b2370b90300efaa0ed50cdd8bf openssh-clients-3.6.1p2-33.30.9.x86_64.rpm 6566faaf53dd8e4e71e43ab33c161f54 openssh-server-3.6.1p2-33.30.9.x86_64.rpm d1cf3d625866fa5916ef913e8ff58c70 Red Hat Enterprise Linux AS (v. 3) -------------------------------------------------------------------------------- SRPMS: openssh-3.6.1p2-33.30.9.src.rpm e3ca3d0056b6d33fa9b73df89df0bfc4 IA-32: openssh-3.6.1p2-33.30.9.i386.rpm 3dac29ed4176d8fed38b39bf419bfad7 openssh-askpass-3.6.1p2-33.30.9.i386.rpm 70efaa93880ed72cd14d983aab0cc0ee openssh-askpass-gnome-3.6.1p2-33.30.9.i386.rpm af44bd411209a1587c8094f9210a556f openssh-clients-3.6.1p2-33.30.9.i386.rpm a0620c20b60e1e97359f2fb040a7aa9c openssh-server-3.6.1p2-33.30.9.i386.rpm 4ced380f7d629e7d9b7cb2099d96f7b5 IA-64: openssh-3.6.1p2-33.30.9.ia64.rpm 2719732415234fe81f4b2462a6c87e35 openssh-askpass-3.6.1p2-33.30.9.ia64.rpm f0db590adfdd8031fd8eaf2c8b293e85 openssh-askpass-gnome-3.6.1p2-33.30.9.ia64.rpm b3a686a8c73a3a8162a1f72542379c4a openssh-clients-3.6.1p2-33.30.9.ia64.rpm 5526271abd1c3b8fb8669d9a52d93639 openssh-server-3.6.1p2-33.30.9.ia64.rpm db517bbf21696cc4d188d983156aad98 PPC: openssh-3.6.1p2-33.30.9.ppc.rpm 8a84ab6436d843999a47abf7eb49d5a0 openssh-askpass-3.6.1p2-33.30.9.ppc.rpm 8aaf0de43e33ba19565bb9bd946bea9b openssh-askpass-gnome-3.6.1p2-33.30.9.ppc.rpm 86977cd2d1cd372861f578afd87f6448 openssh-clients-3.6.1p2-33.30.9.ppc.rpm 4180b0a29242635185b320b9c066f653 openssh-server-3.6.1p2-33.30.9.ppc.rpm 3410ad60c188487eaa03ebd481cb75d7 s390: openssh-3.6.1p2-33.30.9.s390.rpm b65279d72dced4e828a93878f7cc5432 openssh-askpass-3.6.1p2-33.30.9.s390.rpm f69cbc52c6cc67df546035da1b648115 openssh-askpass-gnome-3.6.1p2-33.30.9.s390.rpm 81de02819ba221c68e207d8a19367e1c openssh-clients-3.6.1p2-33.30.9.s390.rpm 3efc6853457369b1ced9338f814feb74 openssh-server-3.6.1p2-33.30.9.s390.rpm e6aa13dcab6f2721da20fbd0254daf57 s390x: openssh-3.6.1p2-33.30.9.s390x.rpm 7610b279141dbb7b608cdc7c3ffb1eca openssh-askpass-3.6.1p2-33.30.9.s390x.rpm 88fb3411276f4a243e2b1b6dbd49691a openssh-askpass-gnome-3.6.1p2-33.30.9.s390x.rpm 9bc48c69fa3f6efc685829e73a664f73 openssh-clients-3.6.1p2-33.30.9.s390x.rpm c2a9622239251898528eb675e6c40770 openssh-server-3.6.1p2-33.30.9.s390x.rpm 328b68dd779365f4ede425182a1f6a7b x86_64: openssh-3.6.1p2-33.30.9.x86_64.rpm 2c39fc426812d6c51fcff37a1475917a openssh-askpass-3.6.1p2-33.30.9.x86_64.rpm 8f190121fc48dd7f6fb7bad23aa2b1db openssh-askpass-gnome-3.6.1p2-33.30.9.x86_64.rpm c90e54b2370b90300efaa0ed50cdd8bf openssh-clients-3.6.1p2-33.30.9.x86_64.rpm 6566faaf53dd8e4e71e43ab33c161f54 openssh-server-3.6.1p2-33.30.9.x86_64.rpm d1cf3d625866fa5916ef913e8ff58c70 Red Hat Enterprise Linux ES (v. 3) -------------------------------------------------------------------------------- SRPMS: openssh-3.6.1p2-33.30.9.src.rpm e3ca3d0056b6d33fa9b73df89df0bfc4 IA-32: openssh-3.6.1p2-33.30.9.i386.rpm 3dac29ed4176d8fed38b39bf419bfad7 openssh-askpass-3.6.1p2-33.30.9.i386.rpm 70efaa93880ed72cd14d983aab0cc0ee openssh-askpass-gnome-3.6.1p2-33.30.9.i386.rpm af44bd411209a1587c8094f9210a556f openssh-clients-3.6.1p2-33.30.9.i386.rpm a0620c20b60e1e97359f2fb040a7aa9c openssh-server-3.6.1p2-33.30.9.i386.rpm 4ced380f7d629e7d9b7cb2099d96f7b5 IA-64: openssh-3.6.1p2-33.30.9.ia64.rpm 2719732415234fe81f4b2462a6c87e35 openssh-askpass-3.6.1p2-33.30.9.ia64.rpm f0db590adfdd8031fd8eaf2c8b293e85 openssh-askpass-gnome-3.6.1p2-33.30.9.ia64.rpm b3a686a8c73a3a8162a1f72542379c4a openssh-clients-3.6.1p2-33.30.9.ia64.rpm 5526271abd1c3b8fb8669d9a52d93639 openssh-server-3.6.1p2-33.30.9.ia64.rpm db517bbf21696cc4d188d983156aad98 x86_64: openssh-3.6.1p2-33.30.9.x86_64.rpm 2c39fc426812d6c51fcff37a1475917a openssh-askpass-3.6.1p2-33.30.9.x86_64.rpm 8f190121fc48dd7f6fb7bad23aa2b1db openssh-askpass-gnome-3.6.1p2-33.30.9.x86_64.rpm c90e54b2370b90300efaa0ed50cdd8bf openssh-clients-3.6.1p2-33.30.9.x86_64.rpm 6566faaf53dd8e4e71e43ab33c161f54 openssh-server-3.6.1p2-33.30.9.x86_64.rpm d1cf3d625866fa5916ef913e8ff58c70 Red Hat Enterprise Linux WS (v. 3) -------------------------------------------------------------------------------- SRPMS: openssh-3.6.1p2-33.30.9.src.rpm e3ca3d0056b6d33fa9b73df89df0bfc4 IA-32: openssh-3.6.1p2-33.30.9.i386.rpm 3dac29ed4176d8fed38b39bf419bfad7 openssh-askpass-3.6.1p2-33.30.9.i386.rpm 70efaa93880ed72cd14d983aab0cc0ee openssh-askpass-gnome-3.6.1p2-33.30.9.i386.rpm af44bd411209a1587c8094f9210a556f openssh-clients-3.6.1p2-33.30.9.i386.rpm a0620c20b60e1e97359f2fb040a7aa9c openssh-server-3.6.1p2-33.30.9.i386.rpm 4ced380f7d629e7d9b7cb2099d96f7b5 IA-64: openssh-3.6.1p2-33.30.9.ia64.rpm 2719732415234fe81f4b2462a6c87e35 openssh-askpass-3.6.1p2-33.30.9.ia64.rpm f0db590adfdd8031fd8eaf2c8b293e85 openssh-askpass-gnome-3.6.1p2-33.30.9.ia64.rpm b3a686a8c73a3a8162a1f72542379c4a openssh-clients-3.6.1p2-33.30.9.ia64.rpm 5526271abd1c3b8fb8669d9a52d93639 openssh-server-3.6.1p2-33.30.9.ia64.rpm db517bbf21696cc4d188d983156aad98 x86_64: openssh-3.6.1p2-33.30.9.x86_64.rpm 2c39fc426812d6c51fcff37a1475917a openssh-askpass-3.6.1p2-33.30.9.x86_64.rpm 8f190121fc48dd7f6fb7bad23aa2b1db openssh-askpass-gnome-3.6.1p2-33.30.9.x86_64.rpm c90e54b2370b90300efaa0ed50cdd8bf openssh-clients-3.6.1p2-33.30.9.x86_64.rpm 6566faaf53dd8e4e71e43ab33c161f54 openssh-server-3.6.1p2-33.30.9.x86_64.rpm d1cf3d625866fa5916ef913e8ff58c70 (The unlinked packages above are only available from the Red Hat Network) Bugs fixed (see bugzilla for more information) 164661 - CVE-2003-0386 host based access bypass 167886 - init script kills all running sshd's if listening server is stopped 170463 - CVE-2006-0225 local to local copy uses shell expansion twice 172564 - I can't see "Last login" message after logged via ssh References http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2003-0386 http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0225 http://www.redhat.com/security/updates/classification/#low Keywords initscript, killed, lastlog, scp -------------------------------------------------------------------------------- These packages are GPG signed by Red Hat for security. Our key and details on how to verify the signature are available from: https://www.redhat.com/security/team/key/#package The Red Hat security contact is secalert@redhat.com. More contact details at http://www.redhat.com/security/team/contact/ [***** End Red Hat RHSA-2006:0298-4 *****] _______________________________________________________________________________ CIAC wishes to acknowledge the contributions of Red Hat for the information contained in this bulletin. _______________________________________________________________________________ CIAC, the Computer Incident Advisory Capability, is the computer security incident response team for the U.S. Department of Energy (DOE) and the emergency backup response team for the National Institutes of Health (NIH). CIAC is located at the Lawrence Livermore National Laboratory in Livermore, California. CIAC is also a founding member of FIRST, the Forum of Incident Response and Security Teams, a global organization established to foster cooperation and coordination among computer security teams worldwide. CIAC services are available to DOE, DOE contractors, and the NIH. CIAC can be contacted at: Voice: +1 925-422-8193 (7x24) FAX: +1 925-423-8002 STU-III: +1 925-423-2604 E-mail: ciac@ciac.org Previous CIAC notices, anti-virus software, and other information are available from the CIAC Computer Security Archive. World Wide Web: http://www.ciac.org/ Anonymous FTP: ftp.ciac.org PLEASE NOTE: Many users outside of the DOE, ESnet, and NIH computing communities receive CIAC bulletins. If you are not part of these communities, please contact your agency's response team to report incidents. Your agency's team will coordinate with CIAC. The Forum of Incident Response and Security Teams (FIRST) is a world-wide organization. A list of FIRST member organizations and their constituencies can be obtained via WWW at http://www.first.org/. This document was prepared as an account of work sponsored by an agency of the United States Government. Neither the United States Government nor the University of California nor any of their employees, makes any warranty, express or implied, or assumes any legal liability or responsibility for the accuracy, completeness, or usefulness of any information, apparatus, product, or process disclosed, or represents that its use would not infringe privately owned rights. Reference herein to any specific commercial products, process, or service by trade name, trademark, manufacturer, or otherwise, does not necessarily constitute or imply its endorsement, recommendation or favoring by the United States Government or the University of California. The views and opinions of authors expressed herein do not necessarily state or reflect those of the United States Government or the University of California, and shall not be used for advertising or product endorsement purposes. LAST 10 CIAC BULLETINS ISSUED (Previous bulletins available from CIAC) Q-245: Multiple Cisco Unified CallManager Vulnerabilities Q-246: Cisco Router Web Setup Ships with Insecure Default IOS Configuration Q-247: vixie-cron Security Update Q-248: kernel-source-2.6.8 et.al. Q-249: Vulnerability in PowerPoint Q-250: Multiple Vulnerabilities in Cisco Security Monitoring, Analysis and Response System (CS-MARS) Q-251: Oracle Critical Patch Update - July 2006 Q-252: libwmf Security Update Q-253: gimp Security Update Q-254: SeaMonkey Security Update (was Mozilla)