- الرئيسية
- ما الجديد !
-
الصفحات▼
الصفحات
أهلا وسهلا بك زائرنا الكريم في منتدى دعم PBBoard الرسمي، لكي تتمكن من المشاركة ومشاهدة جميع أقسام المنتدى وكافة الميزات ، يجب عليك إنشاء حساب جديد بالتسجيل بالضغط هنا أو تسجيل الدخول اضغط هنا إذا كنت عضواً .
تحديث أمني لجميع اصدارات الجيل الثاني Pbboard Security Patch for Pbboard 2.x.x
-
-
تحديث أمني لجميع اصدارات الجيل الثاني Pbboard Security Patch for Pbboard 2.x.x01-08-2012 10:07 مساءً
-
Solimanمعلومات الكاتبPBBoard developer
- انضم في :
- 18-07-2009
- رقم العضوية :
- 1
- المشاركات :
- 13422
- الدولة :
- KSA
- الجنس:
- الدعوات:
- 55
- قوة السمعة:
- 82296
- موقعي:
- زيارة موقعي
-
Patching the application of the other versions:
Open the file: includes/functions.class.php
Search for:
CODE/** * Check if delicious cookie is here or another eat it mmmm
*/
function IsCookie($cookie_name)
{
global $PowerBB;
return empty($PowerBB->_COOKIE[$cookie_name]) ? false : true;
}
Replace with:CODE/** * Check if delicious cookie is here or another eat it mmmm
*/
function IsCookie($cookie_name)
{
global $PowerBB;
// I hate SQL injections
$PowerBB->_COOKIE[$cookie_name] = $PowerBB->functions->CleanVariable($PowerBB->_COOKIE[$cookie_name],'sql');
// I hate XSS
$PowerBB->_COOKIE[$cookie_name] = $PowerBB->functions->CleanVariable($PowerBB->_COOKIE[$cookie_name],'html');
return empty($PowerBB->_COOKIE[$cookie_name]) ? false : true;
}
Open the file: modules/admin/common.module.php
Search for:CODE$username = $PowerBB->_COOKIE[$PowerBB->_CONF['admin_username_cookie']];
Replace with:CODEif ($PowerBB->functions->IsCookie($PowerBB->_CONF['admin_username_cookie']) and $PowerBB->functions->IsCookie($PowerBB->_CONF['admin_password_cookie'])) { $username = $PowerBB->_COOKIE[$PowerBB->_CONF['admin_username_cookie']];
Search for:CODE} function _CommonCode()
Replace with:CODE} } function _CommonCode()
Open the file: engine/systems/member.class.php
Search for:CODEsetcookie($this->Engine->_CONF['username_cookie'],$param['username'],$param['expire']); setcookie($this->Engine->_CONF['password_cookie'],$param['password'],$param['expire']);
Replace with:CODEsetcookie($this->Engine->_CONF['username_cookie'],$param['username'],$param['expire'], NULL ,NULL, NULL, TRUE); setcookie($this->Engine->_CONF['password_cookie'],$param['password'],$param['expire'], NULL ,NULL, NULL, TRUE);
Ended ..
تم تحرير المشاركة بواسطة :Soliman بتاريخ:01-08-2012 10:11 مساءً
الساعة الآن 08:44 AM