Linux Bash严重漏洞修复紧急通知
[color=#333333][font=Arial]日前[/font][/color][font=Arial]Linux[/font][color=#333333][font=Arial]官方内置Bash中新发现一个非常严重[/font][/color][font=Arial]安全[/font][color=#333333][font=Arial]漏洞(漏洞参考[url=https://access.redhat.com/security/cve/CVE-2014-6271]https://access.redhat.com/security/cve/CVE-2014-6271[/url] ),黑客可以利用该Bash漏洞完全控制目标系统并发起攻击,[/font][/color][font=Arial][font=inherit]为了避免您Linux服务器受影响,[font=inherit]建议[/font]您尽快完成漏洞修补[/font][/font][font=Arial][font=inherit],修复方法如下,请了解![/font][/font][font=Arial][font=inherit]特别提醒:目前解决办法是Linux官方提供的解决办法,针对此漏洞Linux官方解决办法仍然有可能会被绕过,后续我们会提供较为彻底的解决办法。[/font][/font]
[font=Arial][font=inherit][font=Arial]【已确认被成功利用的软件及[font=inherit]系统[/font]】[/font][/font][/font][font=Arial][font=inherit][font=Arial] [/font][/font][/font]
[font=Arial][font=inherit][font=Arial]所有安装GNU [/font][/font][/font][font=Arial][font=inherit][font=Arial]bash[/font][/font][/font][font=Arial][font=inherit][font=Arial] 版本小于或者等于4.3的Linux操作系统。[/font][/font][/font][font=Arial][font=inherit][font=Arial] [/font][/font][/font]
[font=Arial][font=inherit][font=Arial]【漏洞描述】[/font][/font][/font][font=Arial][font=inherit][font=Arial] [/font][/font][/font]
[font=Arial][font=inherit][font=Arial]该漏洞源于你调用的bash shell之前创建的特殊的[/font][/font][/font][font=Arial][font=inherit][font=Arial][font=inherit]环境[/font][/font][/font][/font][font=Arial][font=inherit][font=Arial]变量,这些变量可以包含代码,[/font][/font][/font][font=Arial][font=inherit][font=Arial]同时[/font][/font][/font][font=Arial][font=inherit][font=Arial]会被bash执行。[/font][/font][/font][font=Arial][font=inherit][font=Arial] [/font][/font][/font][font=Arial][font=inherit][font=Arial][/font][/font][/font]
[color=#333333][font=Arial]【漏洞检测方法】 [/font][/color]
[color=#333333][font=Arial]漏洞检测命令:env x='() { :;}; echo vulnerable' bash -c "echo this is a test" [/font][/color]
[font=Arial][font=inherit]修复前[/font][/font]
[color=#333333][font=Arial]输出: [/font][/color]
[color=#333333][font=Arial]vulnerable [/font][/color]
[color=#333333][font=Arial]this is a test [/font][/color]
[font=Arial][font=inherit]使用修补方案修复后[/font][/font]
[color=#333333][font=Arial]bash: warning: x: ignoring function definition attempt[/font][/color]
[color=#333333][font=Arial]bash: error importing function definition for `x'[/font][/color]
[color=#333333][font=Arial]this is a test[/font][/color]
[color=#333333][font=Arial]特别提示:该修复不会有任何影响,如果您的脚本使用以上方式定义环境变量,修复后您的脚本执行会报错。[/font][/color]
[color=#333333][font=Arial]【建议修补方案 】 [/font][/color]
[font=Arial][font=inherit]请您根据Linux版本选择您需要修复的命令, 为了防止意外情况发生,建议您执行命令前先对Linux服务器系统盘打个快照,如果万一出现升级影响您[font=inherit]服务器[/font]使用情况,可以通过回滚系统盘快照解决。[/font][/font]
[font=Arial]centos:[/font]
[color=#333333][font=Arial]yum -y update bash[/font][/color]
[font=Arial]ubuntu:[/font]
[color=#333333][font=Arial]14.04 64bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/fix_stuff/bash_4.3-7ubuntu1.1_amd64.deb]http://mirrors.aliyun.com/fix_stuff/bash_4.3-7ubuntu1.1_amd64.deb[/url][color=#333333][font=Arial] && dpkg -i bash_4.3-7ubuntu1.1_amd64.deb[/font][/color]
[color=#333333][font=Arial]14.04 32bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/fix_stuff/bash_4.3-7ubuntu1.1_i386.deb]http://mirrors.aliyun.com/fix_stuff/bash_4.3-7ubuntu1.1_i386.deb[/url][color=#333333][font=Arial] && dpkg -i bash_4.3-7ubuntu1.1_i386.deb[/font][/color]
[color=#333333][font=Arial]12.04 64bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/fix_stuff/bash_4.2-2ubuntu2.2_amd64.deb]http://mirrors.aliyun.com/fix_stuff/bash_4.2-2ubuntu2.2_amd64.deb[/url][color=#333333][font=Arial] && dpkg -i bash_4.2-2ubuntu2.2_amd64.deb[/font][/color]
[color=#333333][font=Arial]12.04 32bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/fix_stuff/bash_4.2-2ubuntu2.2_i386.deb]http://mirrors.aliyun.com/fix_stuff/bash_4.2-2ubuntu2.2_i386.deb[/url][color=#333333][font=Arial] && dpkg -i bash_4.2-2ubuntu2.2_i386.deb[/font][/color]
[color=#333333][font=Arial]10.10 64bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/fix_stuff/bash_4.1-2ubuntu3.1_amd64.deb]http://mirrors.aliyun.com/fix_stuff/bash_4.1-2ubuntu3.1_amd64.deb[/url][color=#333333][font=Arial] && dpkg -i bash_4.1-2ubuntu3.1_amd64.deb[/font][/color]
[color=#333333][font=Arial]10.10 32bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/fix_stuff/bash_4.1-2ubuntu3.1_i386.deb]http://mirrors.aliyun.com/fix_stuff/bash_4.1-2ubuntu3.1_i386.deb[/url][color=#333333][font=Arial] && dpkg -i bash_4.1-2ubuntu3.1_i386.deb[/font][/color]
[font=Arial]debian:[/font]
[color=#333333][font=Arial]7.5 64bit && 32bit[/font][/color]
[color=#333333][font=Arial]apt-get -y install --only-upgrade bash[/font][/color]
[color=#333333][font=Arial]6.0.x 64bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3%2bdeb6u1_amd64.deb]http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3%2bdeb6u1_amd64.deb[/url][color=#333333][font=Arial] && dpkg -i bash_4.1-3+deb6u1_amd64.deb[/font][/color]
[color=#333333][font=Arial]6.0.x 32bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3%2bdeb6u1_i386.deb]http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3%2bdeb6u1_i386.deb[/url][color=#333333][font=Arial] && dpkg -i bash_4.1-3+deb6u1_i386.deb[/font][/color]
[font=Arial]opensuse:[/font]
[color=#333333][font=Arial]13.1 64bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.x86_64.rpm]http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.x86_64.rpm[/url][color=#333333][font=Arial] && rpm -Uvh bash-4.2-68.4.1.x86_64.rpm[/font][/color]
[color=#333333][font=Arial]13.1 32bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.i586.rpm]http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.i586.rpm[/url][color=#333333][font=Arial] && rpm -Uvh bash-4.2-68.4.1.i586.rpm[/font][/color]
[font=Arial]aliyun linux:[/font]
[color=#333333][font=Arial]5.x 64bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/centos/5/updates/x86_64/RPMS/bash-3.2-33.el5.1.x86_64.rpm]http://mirrors.aliyun.com/centos/5/updates/x86_64/RPMS/bash-3.2-33.el5.1.x86_64.rpm[/url][color=#333333][font=Arial] && rpm -Uvh bash-3.2-33.el5.1.x86_64.rpm[/font][/color]
[color=#333333][font=Arial]5.x 32bit[/font][/color]
[color=#333333][font=Arial]wget [/font][/color][url=http://mirrors.aliyun.com/centos/5/updates/i386/RPMS/bash-3.2-33.el5.1.i386.rpm]http://mirrors.aliyun.com/centos/5/updates/i386/RPMS/bash-3.2-33.el5.1.i386.rpm[/url][color=#333333][font=Arial] && rpm -Uvh bash-3.2-33.el5.1.i386.rpm[/font][/color] 这个我修复过了。管理发布的还是很急时。 Linux php 技术交流 49442397 修复得很及时,加油,支持。 发布很及时,已经更新了,谢谢 哈哈,这个也修复了 阿里云centos 6.5 64位
输入代码
yum -y update bash
提示:
Loaded plugins: security
Setting up Update Process
No Packages marked for Update
没有更新包,怎么办 第一时间就升级了,不知道后续会不会继续打补丁。 没有对外开放用户SHELL的,就是除了ROOT没有其他用户的,也要升级吗? 在阿里云官方找到的。
centos:(最终解决方案)
yum clean all
yum makecache
yum -y update bash
ubuntu:(最终解决方案)
apt-get update
apt-get -y install --only-upgrade bash
debian:(最终解决方案)
7.5 64bit && 32bit
apt-get update
apt-get -y install --only-upgrade bash
6.0.x 64bit
wget http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3+deb6u2_amd64.deb && dpkg -i bash_4.1-3+deb6u2_amd64.deb
6.0.x 32bit
wget http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3+deb6u2_i386.deb && dpkg -i bash_4.1-3+deb6u2_i386.deb
aliyun linux:(最终解决方案)
5.x 64bit
wget http://mirrors.aliyun.com/centos/5/updates/x86_64/RPMS/bash-3.2-33.el5_10.4.x86_64.rpm && rpm -Uvh bash-3.2-33.el5_10.4.x86_64.rpm
5.x 32bit
wget http://mirrors.aliyun.com/centos/5/updates/i386/RPMS/bash-3.2-33.el5_10.4.i386.rpm && rpm -Uvh bash-3.2-33.el5_10.4.i386.rpm
opensuse:(最终解决方案)
zypper clean
zypper refresh
zypper update -y bash [i=s] 本帖最后由 老大 于 2014-9-29 20:57 编辑 [/i]
阿里云官方的
【漏洞描述】
该漏洞源于你调用的bash shell之前创建的特殊的环境变量,这些变量可以包含代码,同时会被bash执行。
【漏洞检测方法】
漏洞检测命令:env -i X='() { (a)=>\' bash -c 'echo date'; cat echo
修复前
输出:
当前系统时间
使用修补方案修复后
输出
date
(备注:[color=Red][b]输出结果中见到"date"字样就修复成功了。[/b][/color])
特别提示:该修复不会有任何影响,如果您的脚本使用以上方式定义环境变量,修复后您的脚本执行会报错。 已经更新了 不错,谢谢更新没解决了大问题了 我用CENTOS,输入修复命令提示如下:
[root@centos-1gb-sfo1-01 ~]# yum -y update bash
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: centos.mirrors.hoobly.com
* extras: centos.mirrors.hoobly.com
* rpmforge: mirror.hmc.edu
* updates: mirror.keystealth.org
No Packages marked for Update
但是我还不确定是否有修复过? 修复得很及时~ 75qw5e5qw5eqw 修复一下修复一下 dingfdsafdsafads 修复了~~~~~
页:
[1]