发布时间 :2006-03-30 06:02:00
修订时间 :2017-07-19 21:30:41

[原文]Multiple buffer overflows in the checkscores function in scores.c in tetris-bsd in bsd-games before 2.17-r1 in Gentoo Linux might allow local users with games group membership to gain privileges by modifying tetris-bsd.scores to contain crafted executable content, which is executed when another user launches tetris-bsd.

[CNNVD]Tetris-BSD 'scores.c' checkscores函数多个缓冲区溢出漏洞(CNNVD-200603-515)

        在Gentoo Linux的bsd-games 2.17-r1之前版本的tetris-bsd中,其scores.c中的checkscores函数中存在多个缓冲区溢出,具有游戏组会员身份的本地用户可取得特权,其手段是修改tetris-bsd.scores,使其包含伪执行代码内容,在另一个用户启动tetris-bsd时开始执行。

- CVSS (基础分值)

CVSS分值: 7.5 [严重(HIGH)]
机密性影响: [--]
完整性影响: [--]
可用性影响: [--]
攻击复杂度: [--]
攻击向量: [--]
身份认证: [--]

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


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


- 官方数据库链接
(官方数据源) MITRE
(官方数据源) NVD
(官方数据源) CNNVD

- 其它链接及资源
(PATCH)  BID  17308
(UNKNOWN)  XF  bsdgames-tetrisbsd-checkscores-bo(25611)

- 漏洞信息

Tetris-BSD 'scores.c' checkscores函数多个缓冲区溢出漏洞
高危 缓冲区溢出
2006-03-30 00:00:00 2006-03-31 00:00:00
        在Gentoo Linux的bsd-games 2.17-r1之前版本的tetris-bsd中,其scores.c中的checkscores函数中存在多个缓冲区溢出,具有游戏组会员身份的本地用户可取得特权,其手段是修改tetris-bsd.scores,使其包含伪执行代码内容,在另一个用户启动tetris-bsd时开始执行。

- 公告与补丁


- 漏洞信息

tetris-bsd on Gentoo Linux checkscores() Function Local Overflow
Local Access Required Input Manipulation
Loss of Integrity
Vendor Verified

- 漏洞描述

A local overflow exists in tetris-bsd of the port bsd-games on Gentoo Linux. The checkscores() function in scores.c fails to validate a player's name, obtained from the '/var/games/tetris-bsd.scores' file, before it is printed into a buffer using sprintf, resulting in a stack overflow. The same function also reads player level without validation, resulting in an integer overflow. With a specially crafted request, an attacker can execute arbitrary code as a user with the permissions of the games group, resulting in a loss of integrity.

- 时间线

2006-03-29 Unknow
Unknow Unknow

- 解决方案

Upgrade to version 2.17-r1 or higher, as it has been reported to fix this vulnerability. It is also possible to correct the flaw by implementing the following workaround: do not add untrusted users to the "games" group.

- 相关参考

- 漏洞作者

Unknown or Incomplete