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

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

缺陷编号:
漏洞标题:
Amazon AWS Elastic Beanstalk Remote Command Execution
相关厂商:
漏洞作者:
提交时间:
2016-05-09 22:49
修复时间:
2016-06-24 12:50
公开时间:
2016-06-24 12:50
漏洞类型:
命令执行
危害等级:
自评Rank:
10
漏洞状态:
厂商已经确认
漏洞来源:
http://www.wooyun.org,如有疑问或需要帮助请联系 [email protected]
Tags标签:
分享漏洞:
4人收藏 收藏
分享漏洞:

>

漏洞详情

披露状态:

2016-05-09: 细节已通知厂商并且等待厂商处理中
2016-05-10: 厂商已经确认,细节仅向厂商公开
2016-05-20: 细节向核心白帽子及相关领域专家公开
2016-05-30: 细节向普通白帽子公开
2016-06-09: 细节向实习白帽子公开
2016-06-24: 细节向公众公开

简要描述:

Amazon AWS Elastic Beanstalk Remote Command Execution.
RCE嘛,inbound rules也就形同虚设了。

详细说明:

https://aws.amazon.com/cn/elasticbeanstalk/

Screen Shot 2016-05-06 at 11.23.20 PM.png


亚马逊AWS Elastic Beanstalk可以让用户快速方便的搭建web环境,例如PHP环境,EBS将直接把常用的module部署上去,包括ImageMagick。也就是说只要选择好哪种语言的环境,直接自动化部署,不能自定义module,用户没的选择。直到现在亚马逊也没有给EBS用户推送CVE-2016-3714的补丁。这是刚刚搭建的环境:

009427AF-9E82-4EDD-A0E8-28EF9AABC6FF.png

漏洞证明:

一个Demo:

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>upload</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" value="submit">
</form>
</body>
<?php
$filename = $_FILES['file']['name'];
$type = substr($filename, strrpos($filename, '.')+1);
if ($type === "jpg" || $type === "png" || $type === "gif") {
move_uploaded_file($_FILES['file']['tmp_name'], $filename);
$imgObject = new Imagick($filename);
}
?>
</html>


http://52.36.61.47/imagick.php

08204516bab863f094bf7f903def6068e1109a48.png


http://52.36.61.47/wordpress/

gougouxia
meijj


31537D55-CFA1-4ADF-B90B-DA290B047FAA.png


Screen Shot 2016-05-09 at 8.04.26 PM.png

修复方案:

EBS的模式是挺不错,但是要第一时间"意识到"自动部署的模块存在漏洞,并推送补丁,因为用户没的选择。
EBS ImageMagick Update to 7.0.1

版权声明:转载请注明来源 从容@乌云


>

漏洞回应

厂商回应:

危害等级:高

漏洞Rank:15

确认时间:2016-05-10 12:45

厂商回复:

已确认。目前Elastic Beanstalk服务提供给客户的默认PHP环境受此漏洞影响,我们将紧急推送补丁到客户的环境。

最新状态:

2016-05-10:Hello,Thank you for contacting Amazon. For future reference, you may pass these types of reports directly to us at 我爱乌云amazon.com.Thank you for sharing with us your concerns.Kind regards,