您的位置:首页 > 运维架构 > Shell

bash漏洞检测

2016-09-12 16:53 190 查看
GNU Bash 环境变量远程命令执行漏洞(CVE-2014-6271)
(1) bash漏洞检测方法和修复更新包 env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
如果出现以下结果,就必须立即打上补丁修复。 vulnerable this is a test
如果出现以下结果,则表明漏洞修复成功 this is a test
(2) 下载rpm包,注网站是有效的,如果不能下载,需要进入目录中找到同名最新安装包下载即可。 CentOS 5 http://mirrors.pubyun.com/centos/5/updates/x86_64/RPMS/bash-3.2-33.el5_11.4.x86_64.rpm
CentOS 6 http://mirrors.pubyun.com/centos/6/updates/x86_64/Packages/bash-4.1.2-15.el6_5.2.x86_64.rpm
Centos 7 http://mirrors.pubyun.com/centos/7.0.1406/updates/x86_64/Packages/bash-4.2.45-5.el7_0.4.x86_64.rpm
# rpm -Uvh bash-3.2-33.el5_11.4.x86_64.rpm 采用升级方式安装即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  bash漏洞