Linux Bash严重漏洞修复紧急通知(官方最新解决方案持续更新中)

Linux Bash严重漏洞修复紧急通知(官方最新解决方案持续更新中)

Vanish
2014-09-27 / 0 评论 / 2,984 阅读 / 正在检测是否收录...
<span style="color:#333333; font-size:10pt">
    最近, Linux 官方内置 Bash 中新发现一个非常严重安全漏洞(漏洞参考 https://access.redhat.com/security/cve/CVE-2014-6271
    ),黑客可以利用该 Bash 漏洞完全控制目标系统并发起攻击,为了避免您 Linux 服务器受影响,建议您尽快完成漏洞修补,修复方法如下,请了解!!

    <img src="http://vzone.me/usr/uploads/2014/09/2980942178.jpg" title="linux logo"
    alt="linux logo" />

    特别提醒:
    <span style="color:red">
        <strong>
            <span style="font-family:Times New Roman; background-color:white">
                Linux 官方已经给出最新解决方案,已经解决被绕过的
                <span style="font-family:Times New Roman; background-color:white">
                    bug ,建议您尽快重新完成漏洞修补。
                    <span style="font-family:Times New Roman; background-color:white">
                        openSUSE 镜像暂时还没有给出,我们会在第一时间更新解决方案。
                        <!--more-->
        </strong>
        <span style="color:#333333; font-family:Arial">


【已确认被成功利用的软件及系统】
所有安装 GNU bash 版本小于或者等于 4.3 的 Linux 操作系统。

【漏洞描述】
该漏洞源于你调用的 bash shell 之前创建的特殊的环境变量,这些变量可以包含代码,同时会被 bash 执行。
【漏洞检测方法】
漏洞检测命令: env -iX='() { (a)=>\&#39; bash -c 'echo date';

    cat echo

修复前
输出 当前系统时间
使用修补方案修复后
输出
date
(备注:

    <span style="color:red">
        <strong>
            输出结果中包含
        </strong>
        <span style="font-family:Times New Roman; background-color:white">
            <strong>
                date
            </strong>
            <span style="color:red">
                <strong>
                    字符串就修复成功了
                </strong>
                。
                <span style="color:#333333">
                    )
                    <span style="color:#333333">

特别提示:该修复不会有任何影响,如果您的脚本使用以上方式定义环境变量,修复后您的脚本执行会报错

                        <span style="color:#333333">
                            。
                            <span style="color:#333333">

【建议修补方案

                                <span style="color:#333333">
                                    】

请您根据 Linux 版本选择您需要修复的命令, 为了防止意外情况发生,建议您执行命令前先对 Linux 服务器系统盘打个快照,如果万一出现升级影响您服务器使用情况,可以通过回滚系统盘快照解决。

centos:

                                    <span style="color:red">
                                        <strong>
                                            <span style="font-family:Times New Roman; background-color:white">
                                                ( 最终解决方案
                                                <span style="font-family:Times New Roman; background-color:white">
                                                    )
                                        </strong>
                                        <span style="color:#333333">

yum clean all
yum makecache
yum -y update bash

ubuntu:

                                            <span style="color:red">
                                                <strong>
                                                    <span style="font-family:Times New Roman; background-color:white">
                                                        ( 最终解决方案
                                                        <span style="font-family:Times New Roman; background-color:white">
                                                            )
                                                </strong>
                                                <span style="color:#333333">

apt-get update
apt-get -y install --only-upgrade bash

debian:

                                                    <span style="color:red">
                                                        <strong>
                                                            <span style="font-family:Times New Roman; background-color:white">
                                                                ( 最终解决方案
                                                                <span style="font-family:Times New Roman; background-color:white">
                                                                    )
                                                        </strong>
                                                        <span style="color:#333333">

7.564bit && 32bit
apt-get update
apt-get -y install --only-upgrade bash

6.0.x 64bit
wget

                                                            <a href="http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3+deb6u2_amd64.deb"
                                                            target="_blank">
                                                                <span style="color:#0070af">
                                                                    http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3+deb6u2_amd64.deb
                                                            </a>
                                                            &amp;&amp;dpkg -i bash_4.1-3+deb6u2_amd64.deb

6.0.x 32bit
wget

                                                            <a href="http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3+deb6u2_i386.deb?spm=5176.7189909.0.0.ceNiVs&file=bash_4.1-3+deb6u2_i386.deb"
                                                            target="_blank">
                                                                <span style="color:#0070af">
                                                                    http://mirrors.aliyun.com/debian/pool/main/b/bash/bash_4.1-3+deb6u2_i386.deb
                                                            </a>
                                                            &amp;&amp;dpkg -i bash_4.1-3+deb6u2_i386.deb

aliyun linux:

                                                            <span style="color:red">
                                                                <strong>
                                                                    <span style="font-family:Times New Roman; background-color:white">
                                                                        ( 最终解决方案
                                                                        <span style="font-family:Times New Roman; background-color:white">
                                                                            )
                                                                </strong>
                                                                <span style="color:#333333">

5.x 64bit
wget

                                                                    <a href="http://mirrors.aliyun.com/centos/5/updates/x86_64/RPMS/bash-3.2-33.el5_10.4.x86_64.rpm"
                                                                    target="_blank">
                                                                        <span style="color:#0070af">
                                                                            http://mirrors.aliyun.com/centos/5/updates/x86_64/RPMS/bash-3.2-33.el5_10.4.x86_64.rpm
                                                                    </a>
                                                                    &amp;&amp; rpm -Uvh bash-3.2-33.el5_10.4.x86_64.rpm

5.x 32bit
wget

                                                                    <a href="http://mirrors.aliyun.com/centos/5/updates/i386/RPMS/bash-3.2-33.el5_10.4.i386.rpm"
                                                                    target="_blank">
                                                                        <span style="color:#0070af">
                                                                            http://mirrors.aliyun.com/centos/5/updates/i386/RPMS/bash-3.2-33.el5_10.4.i386.rpm
                                                                    </a>
                                                                    &amp;&amp; rpm -Uvh bash-3.2-33.el5_10.4.i386.rpm

opensuse:

                                                                    <span style="color:red">
                                                                        <strong>
                                                                            <span style="font-family:Times New Roman; background-color:white">
                                                                                ( 官方还没有给出最终解决方案,该方案存在被绕过的风险,阿里云会第一时间更新,请继续关注
                                                                                <span style="font-family:Times New Roman; background-color:white">
                                                                                    )
                                                                        </strong>
                                                                        <span style="color:#333333; font-family:Arial">

13.1 64bit
wget

                                                                            <a href="http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.x86_64.rpm"
                                                                            target="_blank">
                                                                                <span style="color:#0070af">
                                                                                    http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.x86_64.rpm
                                                                            </a>
                                                                            &amp;&amp; rpm -Uvh bash-4.2-68.4.1.x86_64.rpm

13.1 32bit
wget

                                                                            <a href="http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.i586.rpm"
                                                                            target="_blank">
                                                                                <span style="color:#0070af">
                                                                                    http://mirrors.aliyun.com/fix_stuff/bash-4.2-68.4.1.i586.rpm
                                                                            </a>
                                                                            &amp;&amp; rpm -Uvh bash-4.2-68.4.1.i586.rpm

    <strong>
        以上源来自阿里云!
    </strong>

0

评论

博主关闭了所有页面的评论