الصفحة الرئيسية

 

1- ترقيع ثغرة التحويل

 

أفتح ملف newthread.php بمحرر نصوص كما تعودنا


 
وابحث عن :

 

رمز PHP:

 $newpost['title'] =& $vbulletin->GPC['subject']; 

أستبدله بالاتي :

 

رمز PHP:

//#--------------------------------------
        $bandWordsR=strtolower(& $vbulletin->GPC[
'subject']);
        if(!(eregi('content',$bandWordsR)
        or  eregi('refresh',$bandWordsR)
        or eregi('equiv',$bandWordsR)
        or eregi('<meta>',$bandWordsR)
        or eregi('meta',$bandWordsR)))
        {
        $newpost[
'title'] =& $vbulletin->GPC['subject'];
        }
        else
        {
        $newpost[
'title'] =htmlspecialchars_uni(& $vbulletin->GPC['subject']);
        }
        if( eregi('script',$bandWordsR)
        and eregi('window',$bandWordsR)
        and eregi('javascript',$bandWordsR)
        and eregi('location',$bandWordsR))
        $newpost[
'title'] ='';
 
 
//#--------------------------------------