|
关于该漏洞+ H$ S5 o o" t+ ~. S2 `+ U
你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:* N# u5 l; g: [" L( i1 g% u& F4 D
"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."3 @1 F- C, @# U
- b/ }6 g/ y, ?
如何验证
. j8 H% N6 D" ], @6 T A) f8 G$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
: d. q, p$ j! b+ i0 H0 v3 t在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。
7 a" X3 k! @& {- m4 U: y4 V把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。, R9 `& T6 A. H4 `; p/ D- M
! }6 X% h9 W1 W
使用网站卫士修复安全问题5 t7 L5 [+ ^% B" c& w* i3 D7 s
360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。
; H8 W" G& t' E! @8 |7 @+ v注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。
/ J/ O, [2 D/ x7 E0 p7 y, |3 H6 F* D2 J6 u, S8 \% J# j' _4 |0 [
如何修复系统Bug
$ k, M) m( ~2 G# d* Y. H* O% i* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650
4 F$ v% O' q; G* _& t( ]* 各大发行版的解决方法:
( D$ K1 ?* k; y. m! b1 s) i& e' y/ E
Debian:* {* M4 }) j& N3 n4 [) i9 w
查看 https://www.debian.org/security/2014/dsa-30320 V9 U V* T! _7 z* ?7 J
/ e% K8 ^5 h, A
Ubuntu:
: {3 z9 Z' e1 @7 G, Y5 C# u 查看 http://www.ubuntu.com/usn/usn-2362-1/
6 x+ @5 A/ [% K( y6 Z$ v8 s3 Z* T0 a. H5 u1 n
CentOS:, G3 O" R4 w4 t/ Q, \
# yum -y update bash
+ |2 m7 U; L0 w2 y3 g" H
; S+ f0 }' V' c7 y; Z- T9 k* T& UFedora:
% g0 [, M+ u/ ^: Z 查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6271
/ |9 C" v; U4 X3 J( P8 q5 m" h# B! S/ s7 b( t
Redhat:
" O3 b# L! @6 M8 s1 G. B | 产品 | 补丁包 | 详情 | | 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 |
1 g2 |$ q$ R0 y8 l' a* NNovel/SuSE:9 X6 I; R, f: p# o: r0 G# W
查看 http://support.novell.com/security/cve/CVE-2014-6271.html
' | U$ c: S3 P; }( X* g m5 T) e
" ^) n# V- A) b* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。0 _& B t" t; O7 r
|