CVE-2002-1543
CVSS4.6
发布时间 :2003-03-31 00:00:00
修订时间 :2008-09-05 16:30:52
NMCOS    

[原文]Buffer overflow in trek on NetBSD 1.5 through 1.5.3 allows local users to gain privileges via long keyboard input.


[CNNVD]NetBSD trek本地缓冲区溢出漏洞(CNNVD-200303-103)

        
        Trek是一款NetBSD系统上游戏程序。
        Trek对用户输入缺少正确检查,本地攻击者可以利用这个漏洞进行缓冲区溢出攻击,以'game'权限在系统上执行任意指令。
        Trek(6)接收键盘输入,但对输入没有执行正确的缓冲区边界检查。超过100字节的输入可导致缓冲区溢出,精心构建提交数据可能以"game"权限在系统上执行任意指令。
        <*链接:ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NETBSD-SA2002-025.txt.asc
        *>

- CVSS (基础分值)

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

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

cpe:/o:netbsd:netbsd:1.5.2NetBSD 1.5.2
cpe:/o:netbsd:netbsd:1.5.3NetBSD 1.5.3
cpe:/o:netbsd:netbsd:1.5.1NetBSD 1.5.1
cpe:/o:netbsd:netbsd:1.5NetBSD 1.5
cpe:/o:netbsd:netbsd:1.6NetBSD 1.6

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/6036
(VENDOR_ADVISORY)  BID  6036
http://www.iss.net/security_center/static/10458.php
(VENDOR_ADVISORY)  XF  trek-keyboard-input-bo(10458)
http://www.osvdb.org/7570
(UNKNOWN)  OSVDB  7570
ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2002-025.txt.asc
(UNKNOWN)  NETBSD  NetBSD-SA2002-025

- 漏洞信息

NetBSD trek本地缓冲区溢出漏洞
中危 边界条件错误
2003-03-31 00:00:00 2005-05-13 00:00:00
本地  
        
        Trek是一款NetBSD系统上游戏程序。
        Trek对用户输入缺少正确检查,本地攻击者可以利用这个漏洞进行缓冲区溢出攻击,以'game'权限在系统上执行任意指令。
        Trek(6)接收键盘输入,但对输入没有执行正确的缓冲区边界检查。超过100字节的输入可导致缓冲区溢出,精心构建提交数据可能以"game"权限在系统上执行任意指令。
        <*链接:ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NETBSD-SA2002-025.txt.asc
        *>

- 公告与补丁

        临时解决方法:
        如果您不能立刻安装补丁或者升级,CNNVD建议您采取以下措施以降低威胁:
        * 删除trek程序:
        # rm /usr/games/trek
        # rm /usr/games/hide/trek
        厂商补丁:
        NetBSD
        ------
        NetBSD已经为此发布了一个安全公告(NETBSD-SA2002-025)以及相应补丁:
        NETBSD-SA2002-025:trek(6) buffer overrun
        链接:ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NETBSD-SA2002-025.txt.asc
        补丁下载:
        * NetBSD-current:
         系统运行在2002-10-19之前的NetBSD-current版本必须升级到2002-10-19 NetBSD-current版本或者之后的版本。
        
         下面的目录必须从netbsd-current CVS branch (aka HEAD)升级:
        
         games/trek
        
         要升级CVS,重建和重安装trek(6):
        
         # cd src
         # cvs update -d -P games/trek
         # cd games/trek
         # make cleandir dependall
         # make install
        
        * NetBSD 1.6:
        
         系统运行在2002-10-22之前的NetBSD 1.6 sources版本必须升级到2002-10-22 NetBSD 1.6 sources版本或者之后的版本。
        
         NetBSD 1.6.1包含了这个补丁。
        
         下面的目录必须从netbsd-1-6 CVS branch上升级:
        
         games/trek
        
         要升级CVS,重建和重安装trek(6):
        
         # cd src
         # cvs update -d -P -r netbsd-1-6 games/trek
         # cd games/trek
         # make cleandir dependall
         # make install
        
        * NetBSD 1.5, 1.5.1, 1.5.2, 1.5.3:
         系统运行在2002-10-19之前的NetBSD 1.5, 1.5.1, 1.5.2, 或1.5.3 sources 版本必须升级到2002-10-19 NetBSD 1.5.* sources版本或者之后的版本。
         下面的目录必须从netbsd-1-5 CVS branch上升级:
        
         games/trek
        
         要升级CVS,重建和重安装kadmin(8):
        
         # cd src
         # cvs update -d -P -r netbsd-1-5 games/trek
         # cd games/trek
         # make cleandir dependall
         # make install

- 漏洞信息

7570
NetBSD trek Keyboard Input Overflow
Local Access Required Input Manipulation
Loss of Integrity
Exploit Unknown

- 漏洞描述

A local buffer overflow exists in NetBSD trek game. The trek command fails to validate input resulting in a buffer overflow. With a specially crafted request of more than 100 characters, an attacker can cause the execution of arbitrary code with group "games" privileges resulting in a loss of integrity.

- 时间线

2002-10-24 Unknow
Unknow Unknow

- 解决方案

Upgrade to version 1.6.1 or higher, as it has been reported to fix this vulnerability. It is also possible to correct the flaw by implementing the following workaround: Remove or restrict access to the game. # rm /usr/games/trek # rm /usr/games/hide/trek -or- # chmod 400 /usr/games/trek # chmod 400 /usr/games/hide/trek

- 相关参考

- 漏洞作者

- 漏洞信息

NetBSD Trek Local Buffer Overflow Vulnerability
Boundary Condition Error 6036
No Yes
2002-10-24 12:00:00 2009-07-11 06:06:00
Discovery of this vulnerability credited to Niels Heinen.

- 受影响的程序版本

NetBSD NetBSD 1.6
NetBSD NetBSD 1.5.3
NetBSD NetBSD 1.5.2
NetBSD NetBSD 1.5.1
NetBSD NetBSD 1.5

- 漏洞讨论

Trek is a game included with NetBSD. Games are invoked by the /usr/games/dm binary, which is setgid games by default. Normal game behaviour involves revoking privileges. Trek fails to drop privileges, potentially resulting in privilege escalation.

A buffer overflow has been discovered in Trek. By passing a string of excessive length to Trek, it may be possible to corrupt sensitive memory values and obtain 'games' privileges.

It should be noted that NetBSD 1.6 does not use 'dm' to execute games, thus it may not be possible to obtain 'games' privileges by exploiting this vulnerability.

- 漏洞利用

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

- 解决方案

NetBSD has released an advisory.

Users of NetBSD-current are advised to upgrade to NetBSD-current dated 2002-10-19 or later.
Users of NetBSD 1.6 are advised to upgrade from NetBSD 1.6 sources dated 2002-10-22 or later.
Users of NetBSD 1.5 through 1.5.3 from NetBSD 1.5.* sources dated 2002-10-19 or later.

Further details are available in the referenced advisory.

- 相关参考

     

     

    关于SCAP中文社区

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

    版权声明

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