منتدى دعم PBBoard الرسمي
(نسخة قابلة للطباعة من الموضوع)
https://pbboard.info/forums/t17285
أنقر هنا لمشاهدة الموضوع بهيئته الأصلية

ترقيع ثغرة SQL Injection لنسخ الجيل الثالث [3.0.0، 3.0.1]
Soliman 28-11-2014 07:27 مساءً
ترقيع ثغرة SQL Injection لنسخ الجيل الثالث [3.0.0، 3.0.1] PBBoard

شرح ترقيع ثغرة يدوياً :

افتح ملف : includes/functions.class.php

وابحث عن :

CODE
    function CheckEmail($email)
	    {


واستبدله بـ :
CODE
      function CheckEmail($email)
	      {
	        if (@strstr($email,'"')
	        or @strstr($email,"'")
	        or @strstr($email,'>')
	        or @strstr($email,'<')
	        or @strstr($email,'*')
	        or @strstr($email,'%')
	        or @strstr($email,'$')
	        or @strstr($email,'#')
	        or @strstr($email,'+')
	        or @strstr($email,'^')
	        or @strstr($email,'&')
	        or @strstr($email,',')
	        or @strstr($email,'~')
	        or @strstr($email,'!')
	        or @strstr($email,'{')
	        or @strstr($email,'}')
	        or @strstr($email,'(')
	        or @strstr($email,')')
	        or @strstr($email,'/'))
	          {
	           return false;
	        }


وأعمل حفظ للملف
-------------
إذا كنت لا تريد التعديل فقط قم بتحميل الملف المرفق المتوافق مع إصدار منتداك
وارفعه بهذا المسار : includes/functions.class.php

تحميل الملف للإصدار 3.0.1
attach3.0.1.zip
تحميل الملف للإصدار 3.0.0
attach3.0.0.zip
منتدى دعم PBBoard الرسمي

Copyright © 2009-2024 PBBoard® Solutions. All Rights Reserved