CVE-2002-1192
CVSS4.6
发布时间 :2002-10-28 00:00:00
修订时间 :2016-11-18 21:59:15
NMCOES    

[原文]Multiple buffer overflows in rogue on NetBSD 1.6 and earlier, FreeBSD 4.6, and possibly other operating systems, allows local users to gain "games" group privileges via malformed entries in a game save file.


[CNNVD]Rogue本地缓冲区溢出漏洞(CNNVD-200210-307)

        NetBSD 1.6及其早期版本,FreeBSD 4.6版本和可能其他操作系统的rogue存在多个缓冲区溢出漏洞。本地用户可以借助游戏保存文件中的畸形条目提升“游戏”组特权。

- CVSS (基础分值)

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

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

cpe:/o:netbsd:netbsd:1.5.2NetBSD 1.5.2
cpe:/a:rogue:rogue:5.3
cpe:/o:netbsd:netbsd:1.5.3NetBSD 1.5.3
cpe:/o:netbsd:netbsd:1.5NetBSD 1.5
cpe:/o:netbsd:netbsd:1.6NetBSD 1.6
cpe:/o:netbsd:netbsd:1.5.1NetBSD 1.5.1

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

ftp://ftp.netbsd.org/pub/NetBSD/security/advisories/NetBSD-SA2002-021.txt.asc
(UNKNOWN)  NETBSD  NetBSD-SA2002-021
http://marc.info/?l=bugtraq&m=103342413220529&w=2
(UNKNOWN)  BUGTRAQ  20020928 local exploitable overflow in rogue/FreeBSD
http://www.securityfocus.com/bid/5837
(UNKNOWN)  BID  5837
http://xforce.iss.net/xforce/xfdb/10261
(UNKNOWN)  XF  bsd-rogue-bo(10261)

- 漏洞信息

Rogue本地缓冲区溢出漏洞
中危 缓冲区溢出
2002-10-28 00:00:00 2005-10-20 00:00:00
本地  
        NetBSD 1.6及其早期版本,FreeBSD 4.6版本和可能其他操作系统的rogue存在多个缓冲区溢出漏洞。本地用户可以借助游戏保存文件中的畸形条目提升“游戏”组特权。

- 公告与补丁

        NetBSD has released an advisory. Users of NetBSD-current are advised to upgrade to NetBSD-current dated 2002-10-02 or later. Users of NetBSD 1.6 are advised to upgrade from NetBSD 1.6 sources dated 2002-10-03 or later. Users of NetBSD 1.5 through 1.5.3 from NetBSD 1.5.*sources dated 2002-10-03 or later. Further details are available in the referenced advisory.

- 漏洞信息 (21881)

Rogue 5.3 Local Buffer Overflow Vulnerability (EDBID:21881)
bsd local
2002-09-30 Verified
0 stanojr@iserver.sk
N/A [点击下载]
source: http://www.securityfocus.com/bid/5837/info

Rogue is a game included with BSD distributions including FreeBSD and NetBSD.

By passing an overly long value when restoring a saved game, it is possible for an attacker to corrupt memory. Exploitation of this issue could result in privilege escalation to the 'games' group, further resulting in the corruption of saved game data, as well as storage consumption. 

--- myng/dev/myarticles.php.old	Fri Sep 27 00:00:58 2002
+++ myng/dev/myarticles.php	Fri Sep 27 00:01:24 2002
@@ -126,7 +126,7 @@
                 $t->set_var("date",$date);
                 $t->set_var("id_article",$db->Record['id_article']);
                 $t->set_var("sender",$db2->Record['name']);
-                $t->set_var("subject",$db2->Record['subject']);
+                $t->set_var("subject",htmlspecialchars($db2->Record['subject']));
 
                 $group_url = "tree.php?group_name=".rawurlencode(real2table($db->Record['group_name']))."&begin=0&server=".rawurlencode($db->Record['server']);
                 $t->set_var("group_url",$group_url);
--- myng/dev/search.php.old	Fri Sep 27 00:03:14 2002
+++ myng/dev/search.php	Fri Sep 27 00:03:56 2002
@@ -97,7 +97,7 @@
                         $t->set_var("date",$date);
                         $article_url = "article.php?id_article=".rawurlencode($db->Record['id'])."&group_name=".$db->Record['newsgroup'];
                         $t->set_var("article_url",$article_url);
-                        $t->set_var("subject",$db->Record['subject']);
+                        $t->set_var("subject",htmlspecialchars($db->Record['subject']));
                         $t->set_var("sender",$db->Record['name']);
                         $t->set_var("group",$db->Record['newsgroup']);
                         $t->set_var("readings",$db->Record['num_readings']);
@@ -173,7 +173,7 @@
                                 $t->set_var("date",$date);
                                 $article_url = "article.php?id_article=".rawurlencode($db->Record['id'])."&group_name=".$db->Record['newsgroup'];
                                 $t->set_var("article_url",$article_url);
-                                $t->set_var("subject",$db->Record['subject']);
+                                $t->set_var("subject",htmlspecialchars($db->Record['subject']));
                                 $t->set_var("sender",$db->Record['name']);
                                 $t->set_var("group",$db->Record['newsgroup']);
                                 $t->set_var("readings",$db->Record['num_readings']);
--- myng/dev/stats.php.old	Fri Sep 27 00:05:14 2002
+++ myng/dev/stats.php	Fri Sep 27 00:06:40 2002
@@ -205,7 +205,7 @@
         while($db2->next_record()){
 
                 $num_replies[$j][0] = $db2->Record[1];
-                $num_replies[$j][1] = $db2->Record['subject'];
+                $num_replies[$j][1] = htmlspecialchars($db2->Record['subject']);
                 $j ++;
 
         }
@@ -246,7 +246,7 @@
         $db2->query($consulta2);
         while($db2->next_record()){
                 $num_readings[$j][0] = $db2->Record['num_readings'];
-                $num_readings[$j][1] = $db2->Record['subject'];
+                $num_readings[$j][1] = htmlspecialchars($db2->Record['subject']);
                 $j ++;
         }
 
--- myng/dev/lib/standard.lib.php.old	Thu Sep 26 23:54:04 2002
+++ myng/dev/lib/standard.lib.php	Thu Sep 26 23:58:13 2002
@@ -577,7 +577,7 @@
 
                         $li_image = "li".$li_number.$color.".gif";
 
-                        $linea2 = $linea."<img src=images/".$li_image." width=5 height=5>&nbsp;"."<a class=text href=article.php?id_article=".rawurlencode($db->Record['id'])."&group_name=".rawurlencode($group_name).">".$db->Record['subject']."</a>";
+                        $linea2 = $linea."<img src=images/".$li_image." width=5 height=5>&nbsp;"."<a class=text href=article.php?id_article=".rawurlencode($db->Record['id'])."&group_name=".rawurlencode($group_name).">".htmlspecialchars($db->Record['subject'])."</a>";
 
                         $reply_url = "post.php?type=reply&id=".$db->Record['number']."&group=".$group_name;
                         //echo $reply_url;
@@ -674,7 +674,7 @@
         $db->query($consulta);
         $db->next_record();
 
-        $url_subject = "<a class=text href=article.php?id_article=".rawurlencode($db->Record['id'])."&group_name=".$group_name.">".$db->Record['subject']."</a>";
+        $url_subject = "<a class=text href=article.php?id_article=".rawurlencode($db->Record['id'])."&group_name=".$group_name.">".htmlspecialchars($db->Record['subject'])."</a>";
         $t->set_var("p_subject",$url_subject);
         $c->username = $db->Record['username'];
         $c->email = $db->Record['from_header'];		

- 漏洞信息

6098
Multiple BSD Rogue Game Multiple Overflows
Local Access Required Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

A local overflow exists in Rogue, a game found on FreeBSD and NetBSD. The game fails to check bounds when reading the saved game file, resulting in a buffer overflow. With a specially crafted request, an attacker can obtain group "games" resulting in a loss of integrity.

- 时间线

2002-09-28 Unknow
2002-09-28 Unknow

- 解决方案

Upgrade to NetBSD version 1.6 after the correction date or higher, as it has been reported to fix this vulnerability. In addition, NetBSD has released a patch for some older versions. It is also possible to correct the flaw by implementing the following workaround: chmod g-s /usr/games/rogue Currently, there are no known upgrades or patches available to correct this issue on FreeBSD. It is possible to correct the flaw by implementing the aforementioned NetBSD workaround on FreeBSD.

- 相关参考

- 漏洞作者

- 漏洞信息

Rogue Local Buffer Overflow Vulnerability
Boundary Condition Error 5837
No Yes
2002-09-30 12:00:00 2009-07-11 05:06:00
Discovery credited to stanojr@iserver.sk.

- 受影响的程序版本

Rogue Rogue 5.3
+ FreeBSD FreeBSD 4.6 -RELEASE
NetBSD NetBSD 1.6
NetBSD NetBSD 1.5.3
NetBSD NetBSD 1.5.2
NetBSD NetBSD 1.5.1
NetBSD NetBSD 1.5

- 漏洞讨论

Rogue is a game included with BSD distributions including FreeBSD and NetBSD.

By passing an overly long value when restoring a saved game, it is possible for an attacker to corrupt memory. Exploitation of this issue could result in privilege escalation to the 'games' group, further resulting in the corruption of saved game data, as well as storage consumption.

- 漏洞利用

An exploit has been supplied by stanojr@iserver.sk.

- 解决方案

NetBSD has released an advisory. Users of NetBSD-current are advised to upgrade to NetBSD-current dated 2002-10-02 or later. Users of NetBSD 1.6 are advised to upgrade from NetBSD 1.6 sources dated 2002-10-03 or later. Users of NetBSD 1.5 through 1.5.3 from NetBSD 1.5.* sources dated 2002-10-03 or later. Further details are available in the referenced advisory.

- 相关参考

     

     

    关于SCAP中文社区

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

    版权声明

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