CVE-2006-0225
CVSS4.6
发布时间 :2006-01-25 06:03:00
修订时间 :2016-11-18 21:59:49
NMCOP    

[原文]scp in OpenSSH 4.2p1 allows attackers to execute arbitrary commands via filenames that contain shell metacharacters or spaces, which are expanded twice.


[CNNVD]OpenSSH SCP本地Shell命令执行漏洞(CNNVD-200601-316)

        OpenSSH是一种开放源码的SSH协议的实现,初始版本用于OpenBSD平台,现在已经被移植到多种Unix/Linux类操作系统下。
        OpenSSH 4.2及以下版本的SCP工具实现上存在漏洞,本地攻击者可能利用此漏洞在主机以高权限执行任意命令,从而提升自己的权限。
        
        SCP工具在使用system()调用执行外部程序时没有对用户提交的参数做充分的检查,本地可以通过提交精心构造的输入数据以高权限执行任意命令。
        
        <*链接:http://www.redhat.com/archives/fedora-announce-list/2006-January/msg00062.html
        *>

- CVSS (基础分值)

CVSS分值: 4.6 [中等(MEDIUM)]
机密性影响: PARTIAL [很可能造成信息泄露]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

cpe:/a:openbsd:openssh:3.9OpenBSD OpenSSH 3.9
cpe:/a:openbsd:openssh:3.4OpenBSD OpenSSH 3.4
cpe:/a:openbsd:openssh:3.3OpenBSD OpenSSH 3.3
cpe:/a:openbsd:openssh:3.6OpenBSD OpenSSH 3.6
cpe:/a:openbsd:openssh:3.5OpenBSD OpenSSH 3.5
cpe:/a:openbsd:openssh:3.1OpenBSD OpenSSH 3.1
cpe:/a:openbsd:openssh:4.0p1OpenBSD OpenSSH Portable 4.0.p1
cpe:/a:openbsd:openssh:3.8OpenBSD OpenSSH 3.8
cpe:/a:openbsd:openssh:3.7OpenBSD OpenSSH 3.7
cpe:/a:openbsd:openssh:3.7.1p2OpenBSD OpenSSH 3.7.1 p2
cpe:/a:openbsd:openssh:3.2.3p1OpenBSD OpenSSH 3.2.3 p1
cpe:/a:openbsd:openssh:3.2.2p1OpenBSD OpenSSH 3.2.2 p1
cpe:/a:openbsd:openssh:3.0OpenBSD OpenSSH 3.0
cpe:/a:openbsd:openssh:3.2OpenBSD OpenSSH 3.2
cpe:/a:openbsd:openssh:3.8.1p1OpenBSD OpenSSH 3.8.1 p1
cpe:/a:openbsd:openssh:4.2p1OpenBSD OpenSSH Portable 4.2.p1
cpe:/a:openbsd:openssh:4.1p1OpenBSD OpenSSH Portable 4.1.p1
cpe:/a:openbsd:openssh:3.5p1OpenBSD OpenSSH 3.5 p1
cpe:/a:openbsd:openssh:3.0.1OpenBSD OpenSSH 3.0.1
cpe:/a:openbsd:openssh:3.0.2OpenBSD OpenSSH 3.0.2
cpe:/a:openbsd:openssh:3.3p1OpenBSD OpenSSH 3.3 p1
cpe:/a:openbsd:openssh:3.6.1OpenBSD OpenSSH 3.6.1
cpe:/a:openbsd:openssh:3.4p1OpenBSD OpenSSH 3.4 p1
cpe:/a:openbsd:openssh:3.6.1p1OpenBSD OpenSSH 3.6.1 p1
cpe:/a:openbsd:openssh:3.0p1OpenBSD OpenSSH 3.0 p1
cpe:/a:openbsd:openssh:3.7.1OpenBSD OpenSSH 3.7.1
cpe:/a:openbsd:openssh:3.9.1p1OpenBSD OpenSSH 3.9.1 p1
cpe:/a:openbsd:openssh:3.0.1p1OpenBSD OpenSSH 3.0.1 p1
cpe:/a:openbsd:openssh:3.1p1OpenBSD OpenSSH 3.1 p1
cpe:/a:openbsd:openssh:3.0.2p1OpenBSD OpenSSH 3.0.2p1
cpe:/a:openbsd:openssh:3.8.1OpenBSD OpenSSH 3.8.1
cpe:/a:openbsd:openssh:3.9.1OpenBSD OpenSSH 3.9.1
cpe:/a:openbsd:openssh:3.6.1p2OpenBSD OpenSSH 3.6.1 p2

- OVAL (用于检测的技术细节)

oval:org.mitre.oval:def:9962scp in OpenSSH 4.2p1 allows attackers to execute arbitrary commands via filenames that contain shell metacharacters or spaces, which are exp...
oval:org.mitre.oval:def:1138Security Vernulbility Relating to scp(1) Command May Allow Attackers to Execute Arbitrary Commands
*OVAL详细的描述了检测该漏洞的方法,你可以从相关的OVAL定义中找到更多检测该漏洞的技术细节。

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-0225
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2006-0225
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200601-316
(官方数据源) CNNVD

- 其它链接及资源

ftp://ftp.openbsd.org/pub/OpenBSD/patches/3.8/common/005_ssh.patch
(UNKNOWN)  OPENBSD  20060212 [3.8] 005: SECURITY FIX: February 12, 2006
ftp://patches.sgi.com/support/free/security/advisories/20060703-01-U.asc
(UNKNOWN)  SGI  20060703-01-P
http://blogs.sun.com/security/entry/sun_alert_102961_security_vulnerability
(UNKNOWN)  CONFIRM  http://blogs.sun.com/security/entry/sun_alert_102961_security_vulnerability
http://docs.info.apple.com/article.html?artnum=305214
(UNKNOWN)  CONFIRM  http://docs.info.apple.com/article.html?artnum=305214
http://itrc.hp.com/service/cki/docDisplay.do?docId=c00815112
(UNKNOWN)  HP  SSRT061267
http://lists.apple.com/archives/security-announce/2007/Mar/msg00002.html
(UNKNOWN)  APPLE  APPLE-SA-2007-03-13
http://securityreason.com/securityalert/462
(UNKNOWN)  SREASON  462
http://securitytracker.com/id?1015540
(UNKNOWN)  SECTRACK  1015540
http://slackware.com/security/viewer.php?l=slackware-security&y=2006&m=slackware-security.425802
(UNKNOWN)  SLACKWARE  SSA:2006-045-06
http://sunsolve.sun.com/search/document.do?assetkey=1-26-102961-1
(UNKNOWN)  SUNALERT  102961
http://support.avaya.com/elmodocs2/security/ASA-2006-158.htm
(UNKNOWN)  CONFIRM  http://support.avaya.com/elmodocs2/security/ASA-2006-158.htm
http://support.avaya.com/elmodocs2/security/ASA-2006-174.htm
(UNKNOWN)  CONFIRM  http://support.avaya.com/elmodocs2/security/ASA-2006-174.htm
http://support.avaya.com/elmodocs2/security/ASA-2006-262.htm
(UNKNOWN)  CONFIRM  http://support.avaya.com/elmodocs2/security/ASA-2006-262.htm
http://support.avaya.com/elmodocs2/security/ASA-2007-246.htm
(UNKNOWN)  CONFIRM  http://support.avaya.com/elmodocs2/security/ASA-2007-246.htm
http://www.gentoo.org/security/en/glsa/glsa-200602-11.xml
(UNKNOWN)  GENTOO  GLSA-200602-11
http://www.mandriva.com/security/advisories?name=MDKSA-2006:034
(UNKNOWN)  MANDRIVA  MDKSA-2006:034
http://www.novell.com/linux/security/advisories/2006_08_openssh.html
(UNKNOWN)  SUSE  SUSE-SA:2006:008
http://www.openpkg.org/security/OpenPKG-SA-2006.003-openssh.html
(UNKNOWN)  OPENPKG  OpenPKG-SA-2006.003
http://www.redhat.com/archives/fedora-announce-list/2006-January/msg00062.html
(UNKNOWN)  FEDORA  FEDORA-2006-056
http://www.redhat.com/support/errata/RHSA-2006-0044.html
(UNKNOWN)  REDHAT  RHSA-2006:0044
http://www.redhat.com/support/errata/RHSA-2006-0298.html
(UNKNOWN)  REDHAT  RHSA-2006:0298
http://www.redhat.com/support/errata/RHSA-2006-0698.html
(UNKNOWN)  REDHAT  RHSA-2006:0698
http://www.securityfocus.com/archive/1/archive/1/425397/100/0/threaded
(UNKNOWN)  FEDORA  FLSA-2006:168935
http://www.securityfocus.com/bid/16369
(UNKNOWN)  BID  16369
http://www.trustix.org/errata/2006/0004
(UNKNOWN)  TRUSTIX  2006-0004
http://www.ubuntu.com/usn/usn-255-1
(UNKNOWN)  UBUNTU  USN-255-1
http://www.us-cert.gov/cas/techalerts/TA07-072A.html
(UNKNOWN)  CERT  TA07-072A
http://www.vmware.com/support/vi3/doc/esx-3069097-patch.html
(UNKNOWN)  CONFIRM  http://www.vmware.com/support/vi3/doc/esx-3069097-patch.html
http://www.vmware.com/support/vi3/doc/esx-9986131-patch.html
(UNKNOWN)  CONFIRM  http://www.vmware.com/support/vi3/doc/esx-9986131-patch.html
http://www.vupen.com/english/advisories/2006/0306
(UNKNOWN)  VUPEN  ADV-2006-0306
http://www.vupen.com/english/advisories/2006/2490
(UNKNOWN)  VUPEN  ADV-2006-2490
http://www.vupen.com/english/advisories/2006/4869
(UNKNOWN)  VUPEN  ADV-2006-4869
http://www.vupen.com/english/advisories/2007/0930
(UNKNOWN)  VUPEN  ADV-2007-0930
http://www.vupen.com/english/advisories/2007/2120
(UNKNOWN)  VUPEN  ADV-2007-2120
http://www14.software.ibm.com/webapp/set2/sas/f/hmc/power5/install/v52.Readme.html#MH00688
(UNKNOWN)  CONFIRM  http://www14.software.ibm.com/webapp/set2/sas/f/hmc/power5/install/v52.Readme.html#MH00688
http://www14.software.ibm.com/webapp/set2/subscriptions/pqvcmjd?mode=18&ID=2751
(UNKNOWN)  CONFIRM  http://www14.software.ibm.com/webapp/set2/subscriptions/pqvcmjd?mode=18&ID=2751
http://xforce.iss.net/xforce/xfdb/24305
(UNKNOWN)  XF  openssh-scp-command-execution(24305)
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174026
(UNKNOWN)  CONFIRM  https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=174026

- 漏洞信息

OpenSSH SCP本地Shell命令执行漏洞
中危 输入验证
2006-01-25 00:00:00 2009-01-20 00:00:00
远程※本地  
        OpenSSH是一种开放源码的SSH协议的实现,初始版本用于OpenBSD平台,现在已经被移植到多种Unix/Linux类操作系统下。
        OpenSSH 4.2及以下版本的SCP工具实现上存在漏洞,本地攻击者可能利用此漏洞在主机以高权限执行任意命令,从而提升自己的权限。
        
        SCP工具在使用system()调用执行外部程序时没有对用户提交的参数做充分的检查,本地可以通过提交精心构造的输入数据以高权限执行任意命令。
        
        <*链接:http://www.redhat.com/archives/fedora-announce-list/2006-January/msg00062.html
        *>

- 公告与补丁

        目前厂商还没有提供补丁或者升级程序,我们建议使用此软件的用户随时关注厂商的主页以获取最新版本:
        http://www.openssh.com

- 漏洞信息 (F52786)

HP Security Bulletin 2006-12.67 (PacketStormID:F52786)
2006-12-06 00:00:00
Hewlett Packard  hp.com
advisory,remote,denial of service,shell
hpux
CVE-2006-0225,CVE-2006-4924
[点击下载]

HP Security Bulletin - A potential security vulnerability has been identified with HP-UX running HP-UX Secure Shell. The vulnerability could be remotely exploited to allow a remote unauthorized user to create a denial of service.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

SUPPORT COMMUNICATION - SECURITY BULLETIN

Document ID: c00815112
Version: 1

HPSBUX02178 SSRT061267 rev.1 - HP-UX Secure Shell Remote Denial of Service (DoS)

NOTICE: The information in this Security Bulletin should be acted upon as soon as possible.

Release Date: 2006-12-01
Last Updated: 2006-12-04

Potential Security Impact: Remote Denial of Service (DoS)

Source: Hewlett-Packard Company, HP Software Security Response Team

VULNERABILITY SUMMARY
A potential security vulnerability has been identified with HP-UX running HP-UX Secure Shell. The vulnerability could be remotely exploited to allow a remote unauthorized user to create a Denial of Service (DoS).

References: CVE-2006-0225, CVE-2006-4924

SUPPORTED SOFTWARE VERSIONS*: ONLY impacted versions are listed.
HP-UX B.11.00, B.11.11, B.11.23

BACKGROUND

To determine if an HP-UX system has an affected version, search the output of "swlist -a revision -l fileset" for one of the filesets listed below. For affected systems verify that the recommended action has been taken.

AFFECTED VERSIONS

HP-UX B.11.00
HP-UX B.11.11
===========
Secure_Shell.SECURE_SHELL
action: install revision A.04.40.006 or subsequent
URL: http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

HP-UX B.11.23
===========
Secure_Shell.SECURE_SHELL
action: install revision A.04.40.007 or subsequent
URL: http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

END AFFECTED VERSIONS

RESOLUTION

HP is providing the following HP Secure Shell (T1471AA) updates to resolve this potential vulnerability.
These updates can be downloaded from http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

HP-UX B.11.00 - HP-UX Secure Shell A.04.40.006
HP-UX B.11.11 - HP-UX Secure Shell A.04.40.006
HP-UX B.11.23 - HP-UX Secure Shell A.04.40.007

The HP-UX Secure Shell A.04.40.006 and A.04.40.007 are based on OpenSSH 4.4p1, and contain the following libraries: zlib1.2.3, OpenSSL v0.9.7l and TCP Wrappers v7.6-ipv6.4.

MANUAL ACTIONS: Yes - Update

Download and install the appropriate update from http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=T1471AA

PRODUCT SPECIFIC INFORMATION
HP-UX Security Patch Check: Security Patch Check revision B.02.00 analyzes all HP-issued Security Bulletins to provide a subset of recommended actions that potentially affect a specific HP-UX system. For more information: http://software.hp.com/portal/swdepot/displayProductInfo.do? productNumber=B6834AA

HISTORY: Version: 1 (rev.1) 04 December 2006 Initial release

Third Party Security Patches: Third party security patches which are to be installed on systems running HP software products should be applied in accordance with the customer's patch management policy.

Support: For further information, contact normal HP Services support channel.

Report: To report a potential security vulnerability with any HP supported product, send Email to: security-alert@hp.com
It is strongly recommended that security related information being communicated to HP be encrypted using PGP, especially exploit information.
To get the security-alert PGP key, please send an e-mail message as follows:
  To: security-alert@hp.com
  Subject: get key

Subscribe: To initiate a subscription to receive future HP Security Bulletins via Email:
http://h30046.www3.hp.com/driverAlertProfile.php?regioncode=NA&langcode=USENG&jumpid=in_SC-GEN__driverITRC&topiccode=ITRC
On the web page: ITRC security bulletins and patch sign-up
Under Step1: your ITRC security bulletins and patches
  - check ALL categories for which alerts are required and continue.
Under Step2: your ITRC operating systems
  - verify your operating system selections are checked and save.

To update an existing subscription: http://h30046.www3.hp.com/subSignIn.php
Log in on the web page: Subscriber's choice for Business: sign-in.
On the web page: Subscriber's Choice: your profile summary - use Edit Profile to update appropriate sections.

To review previously published Security Bulletins visit: http://www.itrc.hp.com/service/cki/secBullArchive.do

* The Software Product Category that this Security Bulletin relates to is represented by the 5th and 6th characters of the Bulletin number in the title:

GN = HP General SW
MA = HP Management Agents
MI = Misc. 3rd Party SW
MP = HP MPE/iX
NS = HP NonStop Servers
OV = HP OpenVMS
PI = HP Printing & Imaging
ST = HP Storage SW
TL = HP Trusted Linux
TU = HP Tru64 UNIX
UX = HP-UX
VV = HP VirtualVault

System management and security procedures must be reviewed frequently to maintain system integrity. HP is continually reviewing and enhancing the security features of software products to provide customers with current secure solutions.

"HP is broadly distributing this Security Bulletin in order to bring to the attention of users of the affected HP products the important security information contained in this Bulletin. HP recommends that all users determine the applicability of this information to their individual situations and take appropriate action. HP does not warrant that this information is necessarily accurate or complete for all user situations and, consequently, HP will not be responsible for any damages resulting from user's use or disregard of the information provided in this Bulletin. To the extent permitted by law, HP disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose, title and non-infringement."

    

- 漏洞信息

22692
OpenSSH scp Command Line Filename Processing Command Injection
Local Access Required Input Manipulation
Loss of Integrity
Vendor Verified

- 漏洞描述

OpenSSH contains a flaw that may allow an attacker to execute arbitrary commands. The flaw is due to the way OpenSSH's scp utility handles file names during local-to-local copies. During the file name expansion, the utility does not properly sanitize filenames allowing a crafted file name with shell meta-characters. This can be used to trick a user into executing arbitrary commands under with a different set of (potentially higher) privileges.

- 时间线

2005-09-28 2005-11-23
Unknow Unknow

- 解决方案

Upgrade to version 4.3p1 or higher, as it has been reported to fix this vulnerability. An upgrade is required as there are no known workarounds.

- 相关参考

- 漏洞作者

 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站