|
关于该漏洞
% Z; `) i" r; g 你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:& v Y3 w) }! _, S' f% O3 \. f5 \
"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."8 @7 Z; X, a# \' L- z( _
0 q, m b) N( b" k/ E如何验证
. b! G, {, u% J# d: V: B) X7 G$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'! L, i3 A) a B4 a' g( v1 _) {
在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。; g6 k- Q3 ^4 s" D0 P5 V; u
把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。" m+ x$ s J$ u0 q" a. X
6 c" O k8 m2 p# @2 B E8 L: K使用网站卫士修复安全问题
, }0 G7 M9 V- p* W* d3 |360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。) w/ z7 B6 m0 o e$ s0 w1 R
注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。
3 ^ e2 }3 N) z5 J4 {( X C( I& z' v( {5 B* V
如何修复系统Bug! F( t9 f0 m7 Z/ Q, L( j
* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650
) l; [3 c a8 F; D* 各大发行版的解决方法:& o4 c3 U s: o4 {: k5 o, ?
* K5 |; Q8 S8 v" s4 p9 Q! qDebian:
% ~1 ?: @, W5 U1 X 查看 https://www.debian.org/security/2014/dsa-3032
: W7 e% Z h- J9 E+ x* x! J9 f: e4 `. d* o j$ w9 a, g5 \
Ubuntu:( }- ]! v3 \ D2 T g0 a% L
查看 http://www.ubuntu.com/usn/usn-2362-1/
: L* F1 P! b3 T# X, R: x: \1 c
! I# d! t; E* p+ }0 i+ sCentOS:
" Y; m! ~3 q- _' D5 ~ # yum -y update bash" ?" e$ p+ i1 Q F9 x4 z7 P
2 `7 W2 t5 z/ b4 V: p tFedora:- e% L4 I$ j& i! M
查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6271* o. i+ ~4 Y9 R+ i0 X
$ S" F+ u! y0 S$ F9 @Redhat:
/ y! w% @2 k. @" [+ b# ^, S | 产品 | 补丁包 | 详情 | | 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 |
# Y$ D( \* K, j( C# _Novel/SuSE:- U! Q3 }; C* ~; x) l& F. y
查看 http://support.novell.com/security/cve/CVE-2014-6271.html
& T3 C2 F" w; ?1 s1 Y" j- L _$ U; d4 R6 H' N1 @' ~
* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。
* L X1 ~/ O0 Z/ @ |