|
关于该漏洞0 a y, C; `6 P. P0 m
你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
5 b2 T6 F+ r- q5 W1 T5 c! {* t* | "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."
# Y- K+ m; V" k8 Z; L
4 |! O: l! e! J8 N如何验证
- c: q7 W% N) b6 V2 I/ U$ env x='() { :;}; echo vulnerable' bash -c 'echo hello' K0 k. {# j8 }+ r: F7 Z0 g* D, C
在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。
: p" ^! Y+ }. e8 e3 |7 C把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。. u, N% S+ @. R' `9 M
" D; G/ `4 s7 j, O! T0 h2 ?4 X& V
使用网站卫士修复安全问题
+ m) @5 ^2 i5 P# @360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。. n$ K; i. N# X' E8 H
注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。
# M3 L# w/ O) c+ s4 z
% q4 F' R; z0 T# }% O( ~2 X! z如何修复系统Bug- ?/ X# d* R% X/ ~4 W0 C2 P, a7 e
* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650
9 O$ m4 |: c9 w4 R+ T7 `- w& g, i* 各大发行版的解决方法:& ?5 W! h% b7 h/ ~9 e
7 Q$ t9 `' n f# T& P" P0 ~, M2 rDebian:
* C- o% `" v4 Q" w: M2 n4 F* U 查看 https://www.debian.org/security/2014/dsa-3032
; o/ E0 g; g9 h4 U: m0 P8 ?5 n+ {& c3 Z& S) z0 \, V5 J
Ubuntu:
. @- `) g6 p2 `5 ?0 w% c2 ? 查看 http://www.ubuntu.com/usn/usn-2362-1// k$ F, [* @( B* P& F4 i. ]
v0 H( R1 f& y- g% |9 TCentOS:
1 o' C( a0 w; e$ W, {$ b' w5 N: I # yum -y update bash3 r* L# J% P& v {
. l: c7 @! n2 N/ M+ k' B
Fedora:2 y3 V5 R, ~6 A- C" R, O
查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-62718 q1 j* L- b$ F. o) p3 Z
* h d9 ^1 M* w2 t1 s
Redhat:% ?6 }: n d' z: K% p( D; F% c
| 产品 | 补丁包 | 详情 | | 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 |
7 a9 S3 K7 @/ K0 U' f0 D2 oNovel/SuSE:2 P! Q& ? g, u% M0 d. s3 V
查看 http://support.novell.com/security/cve/CVE-2014-6271.html' j F. R( K8 J$ ` e. W" @
, H" `0 z( y6 E5 n6 ?9 A* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。
- O1 k; T: M% B9 R* S* ] |