|
关于该漏洞9 }# }4 y5 E" a, q
你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
4 S# b S# L1 h& M5 U4 `; l b "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.": O+ I- a# B0 c, h" C5 Q
; f* i8 X' I5 A0 l! z
如何验证
# \) G. P$ o% M6 r3 B i0 j$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'2 o" o# g8 b: t5 H, `3 Y& O& h. P
在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。
2 [' {( U% k2 D1 A3 r4 S: ?把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。& z7 I1 n. \5 }+ W8 t9 G* M& h
& Y {# x( L* h
使用网站卫士修复安全问题% M: s4 L& V' N$ `' Z% v
360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。8 K+ m! g! i: h$ T
注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。 # F9 ^! s- N; Q
# s: K, F5 u V" \, [如何修复系统Bug
/ F8 E9 C- y8 B% ]7 y* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650
( K1 [9 I- r5 o4 T* 各大发行版的解决方法:
7 x5 [' Y- S2 H5 k/ m- a5 s
* |* g( ?& }, I& e( [7 VDebian:
+ A4 t: C3 g: ~* i# v% Z 查看 https://www.debian.org/security/2014/dsa-3032; w0 B. Y' G9 @- N2 H
0 } h9 Y5 ~$ t% A1 I! j! V2 NUbuntu:/ P* i6 c5 d$ F8 R
查看 http://www.ubuntu.com/usn/usn-2362-1/
- b: ~3 X5 n" F7 y) ^6 j" J2 J5 v; ]) y8 }$ {2 T. u7 Y0 o7 T! L8 p
CentOS:6 N0 R1 m9 G) t5 @2 [/ v/ W, {
# yum -y update bash
. e" Z% G0 c$ r4 r% g+ i1 m5 _5 l6 Q- o- z) g$ v
Fedora:6 r7 C4 r3 A9 C, D7 G
查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-62717 g4 t: ]' X, u
n) ~7 i$ h, M5 }- r: S
Redhat:
' z$ ~! s- n: X: W' d. `6 F4 {4 ]6 N | 产品 | 补丁包 | 详情 | | 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 | ' S! [9 ]$ r( z1 E/ x# |: a
Novel/SuSE:4 k- d. s7 a2 a0 P; C- k
查看 http://support.novell.com/security/cve/CVE-2014-6271.html
U% R, N4 ]7 W( a
1 p: h# u; o( m; ^9 I- N* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。" d8 z8 d& J/ J0 i
|