|
关于该漏洞
2 A! S" S# l$ F- F! o 你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
f: J! Q p! A9 o2 ~ "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."7 Y# x; j+ _8 U) M( u+ I6 D
6 H- {: c+ ^/ I# p9 V
如何验证
" G* X% W: y+ a; H! A$ W$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
1 I/ ]- D6 F b; @1 T% L在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。* b$ S$ X- U5 u% q9 l
把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。) S3 X' P; J6 b5 c6 _3 Z6 ]
( }! n U: z: v% `" w, ~ t# }2 i M使用网站卫士修复安全问题
/ S& K" H0 v7 L6 N4 S2 F- z360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。
$ b( r& y* H. ]9 @/ L/ z注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。
8 H( N' E8 r+ [6 Y4 A( R4 H* |' r# F
$ E8 L0 G( \2 `4 b$ v6 r C9 T如何修复系统Bug
+ ], r6 v. ]3 e+ S! A* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650
9 B5 s2 N0 X& T: t* 各大发行版的解决方法:
% E/ x* X/ i/ ~! c: V8 V& X, i0 A
; r Q$ B5 `/ r' @' W9 nDebian:
2 U6 G' C0 h( B/ x1 @+ E 查看 https://www.debian.org/security/2014/dsa-3032" i7 V2 [3 d" J2 }, t
+ g9 w5 e) T/ }4 z' m3 l' U& FUbuntu:& Z2 T, P1 A" ^; g* v, w. B
查看 http://www.ubuntu.com/usn/usn-2362-1/
; N. C B) b9 y7 A% \. @2 i6 m- h. h) L- e4 J
CentOS:
, `1 x- [4 K, }8 C2 H # yum -y update bash& c) H3 S/ ~6 s2 A
* ^+ v; G p$ r# q" h; {
Fedora:: n1 A6 X/ P6 g& A7 f
查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-62717 O3 S# v2 `+ p3 r4 |8 `
. e+ d2 [2 q/ q' q$ h( {2 \- |
Redhat:
d0 V. G! O7 L6 K | 产品 | 补丁包 | 详情 | | 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 | ; R5 w+ K: u4 _1 `: j+ d
Novel/SuSE:
. W e' {7 H7 a$ D 查看 http://support.novell.com/security/cve/CVE-2014-6271.html
2 W1 }$ F# ^! D. M5 V6 a& i
- ^9 {6 p+ Z: V9 ^* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。1 F8 k3 I0 Y# Y7 [
|