|
关于该漏洞
# m3 o/ v) t: ]. g9 G 你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
! A4 j7 F2 R! ]4 L "GNU Bash through 4.3 processes trailing strings after function definitions in the values of environment variables, which allows remote attackers to execute arbitrary code via a crafted environment, as demonstrated by vectors involving the ForceCommand feature in OpenSSH sshd, the mod_cgi and mod_cgid modules in the Apache HTTP Server, scripts executed by unspecified DHCP clients, and other situations in which setting the environment occurs across a privilege boundary from Bash execution."* f6 r A1 J: T! e( _7 A0 N
: R: z( x2 u( f如何验证
3 k( {8 I. \% I; Y$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'' M& u( W( n2 ^+ M
在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。
1 S$ w+ e) K! z+ A3 H; p% b: W把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。7 T, @' k0 _5 f& B8 R% G/ U# U
% u$ j2 {) y; U
使用网站卫士修复安全问题. ~* |2 x+ Z3 n( ~% z. R. U; j! x
360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。
! l6 o5 k8 H! ]9 S# l3 P注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。 , f, Q2 R$ P5 s- F
% ^9 D! P0 [. x% G9 ~! ]; k& l: x
如何修复系统Bug/ ^" v3 b8 T9 k. \# w
* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650
. O0 o- E+ W+ w' o4 i; P* 各大发行版的解决方法:
/ D' @" i/ Q$ f, a7 ~% }. O# V8 c3 b l. {6 c4 k
Debian:
, _, \9 P; f; ~- Z7 s 查看 https://www.debian.org/security/2014/dsa-3032
' j# \; b6 a4 x$ R2 f( G3 ~6 W9 @* p3 A5 M3 @) A
Ubuntu:
( {/ T4 M: [" o0 e! A' T 查看 http://www.ubuntu.com/usn/usn-2362-1/
3 k; L- Z/ N( b! t
' O+ m, t6 ^- ?8 `) M9 z: P4 D4 _& YCentOS:
8 R8 B$ S( S% L% l: q+ v# `: x& l # yum -y update bash0 b/ Q5 R2 b% p5 @1 P7 n/ s8 n
7 g6 H2 ]( S, V1 {+ _ k' v( b
Fedora:- s0 Z/ ~$ Z, f! V# ~
查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6271: b. q6 K! ]& Y4 n$ Q* n
, K% F1 }6 Q5 B; m$ `: s
Redhat:
# Z' z) B3 C# r1 i3 ~$ F; q* g$ H- V+ y | 产品 | 补丁包 | 详情 | | Red Hat Enterprise Linux 7 | bash-4.2.45-5.el7_0.2 | Red Hat Enterprise Linux | | Red Hat Enterprise Linux 6 | bash-4.1.2-15.el6_5.1 | Red Hat Enterprise Linux | | bash-4.1.2-15.el6_5.1.sjis.1 | Red Hat Enterprise Linux | | bash-4.1.2-9.el6_2.1 | Red Hat Enterprise Linux 6.2 AUS | | bash-4.1.2-15.el6_4.1 | Red Hat Enterprise Linux 6.4 EUS | | Red Hat Enterprise Linux 5 | bash-3.2-33.el5.1 | Red Hat Enterprise Linux | | bash-3.2-33.el5_11.1.sjis.1 | Red Hat Enterprise Linux | | bash-3.2-24.el5_6.1 | Red Hat Enterprise Linux 5.6 LL | | bash-3.2-32.el5_9.2 | Red Hat Enterprise Linux 5.9 EUS | | Red Hat Enterprise Linux 4 | bash-3.0-27.el4.2 | Red Hat Enterprise Linux 4 ELS |
3 ^- w7 k5 d' \" z oNovel/SuSE:
* v! T5 T1 G# L4 o9 T n 查看 http://support.novell.com/security/cve/CVE-2014-6271.html: j# L3 ^. S! W' d. s) g6 C2 |- k# N
0 `$ ?$ o# K1 @* n% ]
* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。
9 X1 |4 A% q- a/ J+ Z8 p& F- Q" I |