http://www.dzbatna.com/images/icons/iconrote.gif طھط±ظ‚ظٹط¹ ط«ط؛ط±ط© ط§ظ…ظ†ظٹط© ظپظٹ ط³ظƒط±ط¨طھ MaxForum v1.0.0
السلام عليكم ورحمة الله وبركاته
ثغرة جديدة في سكربت MaxForum
السكربت منتشر كثيرة والثغرة ليست خطيرة جدا
لكن يمكن استغلالها بأشكال وطرق مختلفة فتصبح خطيرة لدرجة جدا
الثغرة من نوع : xss
المكتشف s3n4t00r - عالم الحماية العربي - [ Security World ]
الثغرة موجودة في البحث
لترقيع الثغرة استبد ملف search.template.php الموجود في archivetemp\pages
بهذا الملف
رمز PHP:
if (!defined('MAX_ON')){echo "
ACCESS DENIED
You cannot access this file directly.";exit();} ?>
if ($template_hook=='start'){ ?>
}elseif ($template_hook=='1'){ ?>
echo $lang['search_topics_started']; ?> echo "$search_name"; ?>
}elseif ($template_hook=='4'){ ?>
if ($pages <= '1'){}else{ ?>
echo $lang['board_page']; ?>
=(ceil($number_of_posts/$list_posts)); if (!isset($_GET['limit'])){$_GET['limit']="1";} $start="1"; for($i = "1"; $i <= $pages; $i++) { $i_limit=$i; if ($i > 1){ $start=($start+1); } if ($_GET['limit']==$start){ ?>
echo "$max_domain"; ?>/index.php?page=search&area=topics&search=echo "$member_id"; ?>&limit=echo "$i_limit"; ?>">echo "$i"; ?>} else{ ?>if ($_GET['limit'] >="3" && $i_limit < $_GET['limit'] - "2" OR $_GET['limit'] >="3" && $i_limit > $_GET['limit'] + "2"){}elseif($_GET['limit'] >="3" && $i_limit > $_GET['limit'] + "2"){}elseif($_GET['limit'] <= "2" && $i_limit > "4" ){}else{ ?>if ($_GET['limit'] > "2" && $i_limit < $_GET['limit'] - "1"){ ?>
echo "$max_domain"; ?>/index.php?page=search&area=topics&search=echo "$member_id"; ?>&limit=1"><<} ?>
echo "$max_domain"; ?>/index.php?page=search&area=topics&search=echo "$member_id"; ?>&limit=echo "$i_limit"; ?>">echo "$i"; ?>}}} ?>
if ($pages - $_GET['limit'] >= "3"){ ?>
echo "$max_domain"; ?>/index.php?page=search&area=topics&search=echo "$member_id"; ?>&limit=echo "$pages_end"; ?>">>>} ?>
} ?>
}elseif ($template_hook=='5'){ ?>
echo max_link("index.php?page=findpost&post=$post_id","findpost/$post_id"); ?>">echo "$title"; ?>
echo "$time"; ?> - echo "$content"; ?>
echo max_link("index.php?page=findpost&post=$post_id","findpost/$post_id"); ?>
}elseif ($template_hook=='10'){ ?>
echo $lang['search_posts_by']; ?> echo "$search_name"; ?>
}elseif ($template_hook=='11'){ ?>
if ($pages <= '1'){}else{ ?>
echo $lang['board_page']; ?>
=(ceil($number_of_posts/$list_posts)); if (!isset($_GET['limit'])){$_GET['limit']="1";} $start="1"; for($i = "1"; $i <= $pages; $i++) { $i_limit=$i; if ($i > 1){ $start=($start+1); } if ($_GET['limit']==$start){ ?>
echo "$max_domain"; ?>/index.php?page=search&area=posts&search=echo "$member_id"; ?>&limit=echo "$i_limit"; ?>">echo "$i"; ?>} else{ ?>if ($_GET['limit'] >="3" && $i_limit < $_GET['limit'] - "2" OR $_GET['limit'] >="3" && $i_limit > $_GET['limit'] + "2"){}elseif($_GET['limit'] >="3" && $i_limit > $_GET['limit'] + "2"){}elseif($_GET['limit'] <= "2" && $i_limit > "4" ){}else{ ?>if ($_GET['limit'] > "2" && $i_limit < $_GET['limit'] - "1"){ ?>
echo "$max_domain"; ?>/index.php?page=search&area=posts&search=echo "$member_id"; ?>&limit=0"><<} ?>
echo "$max_domain"; ?>/index.php?page=search&area=posts&search=echo "$member_id"; ?>&limit=echo "$i_limit"; ?>">echo "$i"; ?>}}} ?>
if ($pages - $_GET['limit'] >= "3"){ ?>
echo "$max_domain"; ?>/index.php?page=search&area=posts&search=echo "$member_id"; ?>&limit=echo "$pages_end"; ?>">>>} ?>
} ?>
}elseif ($template_hook=='12'){ ?>if ($_GET['pf']!=''){ ?>
echo $lang['button_search_form']; ?>
} ?>
if ($_GET['pf']=='1'){ ?>
في امان الله
التعديل الأخير كان بواسطة yos3f; 01 - 08 - 2014 الساعة 03:42
https://fbcdn-sphotos-d-a.akamaihd.n...93518507_n.png
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©