عذب القوافي
23-12-09, 01:44 PM
http://3deeel.com/vb/mwaextraedit4/extra/74.gif
بالامس نزلت ثغره جديده حسب كلام الشركة الام ..
واليوم سنطرح التعديل والترقيع للنسخ 3.8.4
في ملف "class_dm.php"
ابحث عن
function verify_link(&$link)
{
if (preg_match('#^www\.#si', $link))
{
$link = 'http://' . $link;
return true;
}
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
{
return true;
}
}
واستبدله بـالتالي
function verify_link(&$link, $strict = false)
{
if (preg_match('#^www\.#si', $link))
{
$link = 'http://' . $link;
return true;
}
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;
}
else
{
return true;
}
}
وفي ملف "class_dm_user.php"
ابحث عن :-
function verify_homepage(&$homepage)
{
return (empty($homepage)) ? true : $this->verify_link($homepage);
}
واستبدله بــ
function verify_homepage(&$homepage)
{
return (empty($homepage)) ? true : $this->verify_link($homepage, true);
}
وهذا هو ترقيع الثغره الجديده ..
في ملف "functions.php"
ابحث عن :-
define('COOKIE_SALT', $vbulletin->config['Misc']['cookie_security_hash']);
واستبدله بـ
define('COOKIE_SALT', 'MeKVdCkaHQ0ANmd6Ka7re47Mh6pioUEZYfLUzOU5vMoZXr');
بالتوفيق
بالامس نزلت ثغره جديده حسب كلام الشركة الام ..
واليوم سنطرح التعديل والترقيع للنسخ 3.8.4
في ملف "class_dm.php"
ابحث عن
function verify_link(&$link)
{
if (preg_match('#^www\.#si', $link))
{
$link = 'http://' . $link;
return true;
}
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
{
return true;
}
}
واستبدله بـالتالي
function verify_link(&$link, $strict = false)
{
if (preg_match('#^www\.#si', $link))
{
$link = 'http://' . $link;
return true;
}
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;
}
else
{
return true;
}
}
وفي ملف "class_dm_user.php"
ابحث عن :-
function verify_homepage(&$homepage)
{
return (empty($homepage)) ? true : $this->verify_link($homepage);
}
واستبدله بــ
function verify_homepage(&$homepage)
{
return (empty($homepage)) ? true : $this->verify_link($homepage, true);
}
وهذا هو ترقيع الثغره الجديده ..
في ملف "functions.php"
ابحث عن :-
define('COOKIE_SALT', $vbulletin->config['Misc']['cookie_security_hash']);
واستبدله بـ
define('COOKIE_SALT', 'MeKVdCkaHQ0ANmd6Ka7re47Mh6pioUEZYfLUzOU5vMoZXr');
بالتوفيق