CVE-2004-1772
CVSS4.6
发布时间 :2004-12-31 00:00:00
修订时间 :2016-10-17 23:00:34
NMCOS    

[原文]Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute arbitrary code via a long -o command line argument.


[CNNVD]GNU Sharutils shar命令行解析缓冲区溢出漏洞(CNNVD-200412-854)

        GNU sharutils 4.2.1版本的GNU sharutils存在基于栈的缓冲区溢出漏洞。本地用户可以借助超长的-o命令行参数执行任意代码。

- CVSS (基础分值)

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

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

cpe:/a:gnu:sharutils:4.2.1GNU Sharutils 4.2.1
cpe:/a:gnu:sharutils:4.2GNU Sharutils 4.2

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

oval:org.mitre.oval:def:11722Stack-based buffer overflow in shar in GNU sharutils 4.2.1 allows local users to execute arbitrary code via a long -o command line argument....
*OVAL详细的描述了检测该漏洞的方法,你可以从相关的OVAL定义中找到更多检测该漏洞的技术细节。

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=108137386310299&w=2
(UNKNOWN)  OPENPKG  OpenPKG-SA-2004.011
http://www.redhat.com/support/errata/RHSA-2005-377.html
(UNKNOWN)  REDHAT  RHSA-2005:377
http://www.securityfocus.com/archive/1/359639
(PATCH)  BUGTRAQ  20040406 GNU Sharutils buffer overflow vulnerability.
http://www.securityfocus.com/bid/10066
(PATCH)  BID  10066
http://xforce.iss.net/xforce/xfdb/15759
(UNKNOWN)  XF  sharutils-shar-bo(15759)
https://bugzilla.fedora.us/show_bug.cgi?id=2155
(PATCH)  FEDORA  FLSA:2155

- 漏洞信息

GNU Sharutils shar命令行解析缓冲区溢出漏洞
中危 缓冲区溢出
2004-12-31 00:00:00 2005-10-20 00:00:00
本地  
        GNU sharutils 4.2.1版本的GNU sharutils存在基于栈的缓冲区溢出漏洞。本地用户可以借助超长的-o命令行参数执行任意代码。

- 公告与补丁

        Please see the referenced advisories for more information.
        
        
        GNU sharutils 4.2.1
        

- 漏洞信息

10231
GNU sharutils shar -o Option Local Overflow
Local Access Required Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

A local overflow exists in GNU sharutils. The shar command from sharutils fails to correctly limit the size of the value passed in with the -o option resulting in a buffer overflow. With a specially crafted request, an attacker can cause a denial of service and possible code execution resulting in a loss of integrity.

- 时间线

2004-04-06 Unknow
2004-04-06 Unknow

- 解决方案

Currently, there are no known workarounds to correct this issue. However, Shaun Colley has released an unofficial patch to address this vulnerability. OpenPKG has also released an upgrade as sharutils-4.2.1-2.0.1.src.rpm.

- 相关参考

- 漏洞作者

- 漏洞信息

GNU Sharutils shar Command Line Parsing Buffer Overflow Vulnerability
Boundary Condition Error 10066
No Yes
2004-04-06 12:00:00 2007-02-22 06:06:00
Disclosure of this issue is credited to Shaun Colley <shaunige@yahoo.co.uk>.

- 受影响的程序版本

Ubuntu Ubuntu Linux 4.1 ppc
Ubuntu Ubuntu Linux 4.1 ia64
Ubuntu Ubuntu Linux 4.1 ia32
SGI ProPack 3.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 Fedora Core3
Red Hat Fedora Core2
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
GNU sharutils 4.2.1
+ Gentoo Linux 1.4 _rc3
+ Gentoo Linux 1.4 _rc2
+ Gentoo Linux 1.4 _rc1
+ Gentoo Linux 1.4
+ HP Secure OS software for Linux 1.0
+ MandrakeSoft Corporate Server 3.0 x86_64
+ MandrakeSoft Corporate Server 3.0
+ MandrakeSoft Corporate Server 2.1 x86_64
+ MandrakeSoft Corporate Server 2.1
+ Mandriva Linux Mandrake 10.1 x86_64
+ Mandriva Linux Mandrake 10.1
+ Mandriva Linux Mandrake 10.0 AMD64
+ Mandriva Linux Mandrake 10.0
+ Red Hat Fedora Core3
+ RedHat Linux 7.2 ia64
+ RedHat Linux 7.2 i386
+ RedHat Linux 7.1 ia64
+ RedHat Linux 7.1 i386
+ RedHat Linux 7.1 alpha
+ RedHat Linux 7.0 i386
+ RedHat Linux 7.0 alpha
+ RedHat Linux 6.2 sparc
+ RedHat Linux 6.2 i386
+ RedHat Linux 6.2 alpha
+ Turbolinux Appliance Server 1.0 Workgroup Edition
+ Turbolinux Appliance Server 1.0 Hosting Edition
+ Turbolinux Appliance Server Hosting Edition 1.0
+ Turbolinux Appliance Server Workgroup Edition 1.0
+ Turbolinux Home
+ Turbolinux Turbolinux 10 F...
+ Turbolinux Turbolinux Desktop 10.0
+ Turbolinux Turbolinux Server 8.0
+ Turbolinux Turbolinux Server 7.0
+ Turbolinux Turbolinux Workstation 8.0
+ Turbolinux Turbolinux Workstation 7.0
+ Ubuntu Ubuntu Linux 4.1 ppc
+ Ubuntu Ubuntu Linux 4.1 ia64
+ Ubuntu Ubuntu Linux 4.1 ia32
Avaya S8710 R2.0.1
Avaya S8710 R2.0.0
Avaya S8700 R2.0.1
Avaya S8700 R2.0.0
Avaya S8500 R2.0.1
Avaya S8500 R2.0.0
Avaya S8300 R2.0.1
Avaya S8300 R2.0.0
Avaya Modular Messaging (MSS) 2.0
Avaya Modular Messaging (MSS) 1.1
Avaya MN100
Avaya Intuity LX
Avaya Converged Communications Server 2.0

- 漏洞讨论

The 'shar' utility is reported prone to a command line parsing buffer-overflow vulnerability when parsing commands. This issue occurs because the utility fails to properly validate the size of user-supplied strings before copying them to a finite buffer.

Note that 'shar' is not in itself a setuid or setgid application. However, an application that is setuid or setgid may invoke this utility with user-supplied arguments.

Successful exploitation would immediately produce a denial-of-service condition in the affected process. Attackers may also leverage this issue to execute code on the affected system with the privileges of the user that invoked the vulnerable application.

- 漏洞利用

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

- 解决方案

Please see the referenced advisories for more information.


GNU sharutils 4.2.1

- 相关参考

 

 

关于SCAP中文社区

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

版权声明

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