|
关于该漏洞
5 @9 j8 G1 N) E0 c2 e2 e 你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
- l+ g G% l! c* i" d, y3 i "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."6 t8 J) w' V! o/ A3 Z0 |% M2 d
2 \: l3 ]% P, w
如何验证
7 F3 B! _$ a5 @$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'1 b! s) w7 p, N, p) v2 l7 Z
在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。4 a9 T2 q t6 ~' x6 T: P
把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。0 U4 e+ L" _/ A( g# ~8 m
3 G8 t2 T$ L) d0 p) L! S0 L使用网站卫士修复安全问题2 }$ [! D& C }/ l/ ?8 F5 \
360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。
1 w. X% c/ q# d6 \( e4 p9 @' m注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。 3 d) o$ S- [4 b6 m. Y
/ M* U6 `: T7 c4 a
如何修复系统Bug/ u9 k4 z3 S+ o7 d& Z' L/ u
* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650
9 b4 o& ^- f. O6 _' U$ Z* 各大发行版的解决方法:
1 ^. S! ~6 P7 D: ~/ [8 x7 U( l) t6 I7 G: Z0 f2 P
Debian:
6 Q* m6 l# [" A, U# w& F 查看 https://www.debian.org/security/2014/dsa-3032/ L$ b9 s0 E( v2 v
3 g5 J3 T1 ?& r! h0 W
Ubuntu:
3 l$ y/ T0 n7 Y0 V; w 查看 http://www.ubuntu.com/usn/usn-2362-1/2 p# T/ x0 [$ e6 j* h; S0 C/ |. h
4 s; [6 Z9 K9 | `: e d- _
CentOS:5 N( B8 y$ J' n$ J4 F% D# g
# yum -y update bash
- D+ o# ]5 F- M; _: \( R) L3 I+ w% `# U, E$ \$ w4 I' a0 a
Fedora:
: H% a# D9 b1 I( g9 P 查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6271: Z; b& Y8 I* }- s8 D( }% F: {2 j
, w. J4 u7 x: y! |. }Redhat:& E0 ]% X* u# ~$ e$ p6 e3 L
| 产品 | 补丁包 | 详情 | | 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 | 8 t( b$ V$ F' s: [ e+ @
Novel/SuSE:
/ T6 J/ }1 r ?7 z! L2 ]' U' N& F 查看 http://support.novell.com/security/cve/CVE-2014-6271.html
I! v! g1 t$ a+ K2 O0 _
. @- i$ m0 {* c4 V! G* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。
9 L& v# b' C0 e4 ^$ X% V; ? |