المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ترقيع النسخة 3.8.4 pl1


واحد من الناسـ
10-08-2009, 01:16 PM
بسم الله الرحمن الرحيم

حسب ما ذكرت شركة vbulletin أنه تم اكتشاف ثغرة xss جديدة
الثغرة موجودة في كل النسخ


الترقيع كالآتي:

في الملف class_dm.php الموجود في مجلد includes

ابحث عن:

function verify_link(&$link)

استبدلها بـ:

function verify_link(&$link, $strict = false)

أيضاً ابحث عن:

else if (!preg_match('#^[a-z0-9]+://#si', $link))
{
// link doesn't match the http://-style format in the beginning -- possible attempted exploit
return false;
}


أضف أسفلها:

else if ($strict && !preg_match('#^(http|https)://#si', $link))
{
// link that doesn't start with http:// or https:// should not be allowed in certain places (IE: profile homepage)
return false;
}

احفظ الملف


افتح الملف class_dm_user.php الموجود في ملف includes

ابحث عن:

return (empty($homepage)) ? true : $this->verify_link($homepage);


احفظ الملف..

حتى تعرف أنك قمت بالترقيع قم بفتح الملف version_vbulletin.php الموجود أيضاً في includes

واستبدل جميع محتوياته بـ:

<?php

define('FILE_VERSION_VBULLETIN', '3.8.4 Patch Level 1');

?>


مع تمنياتي لكم بقضاء أجمل الأوقات في الصلاة

الله يحفظكم

منقول من الأخ العُبد جزاه الله كل خير

http://www.traidnt.net/vb/showthread.php?t=1349126

دُمتم بحفظ الله