|
关于该漏洞
. }) m( q% Z- i* z 你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
! N6 Z: G3 {4 }/ _: e "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."
4 Z; ]7 m. H0 Q& ~9 p# M! Q7 Y" U- g
6 @( ]8 F" T. u* P" c如何验证
3 \' ? U) \; @1 N, d9 D$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
- M+ E1 j' k. W) n# E0 V. ?7 `在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。
8 c9 q+ v* h' z7 a1 _把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。5 `: D0 ]) {# C
0 {* I/ \9 Z9 N& ^% @/ [
使用网站卫士修复安全问题
% j9 S/ n% I* T0 s) r360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。
; M0 W G2 ]9 D/ R注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。
! m) L0 a+ Y3 r, D S
3 N; u6 _ n5 z" h9 c! |, }5 f9 m: Q如何修复系统Bug
) J- |0 U2 ?7 G5 Z* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650) U/ d6 c1 s) s7 k3 F4 d1 c; ?
* 各大发行版的解决方法:( L" V f. I% _1 i1 |8 d
) h0 O9 x" E+ e* M V
Debian:
( Z5 \- i& ^2 o+ X4 F 查看 https://www.debian.org/security/2014/dsa-3032- q* h1 s& w1 ~" {
" G, @1 s* n5 \3 |
Ubuntu:
- I4 m: x2 q( C4 \- h 查看 http://www.ubuntu.com/usn/usn-2362-1/8 x3 B* _* R# ^3 e' _' i
7 C4 J5 o7 q" Q0 A0 h& B: N) jCentOS:
4 Z1 G2 y3 {) H+ M7 U# \ p# g # yum -y update bash
" Y- p% r0 q3 X) c3 e
' E. i: z' X7 FFedora:
2 o! N7 J+ n$ {+ W 查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6271! C/ \* y" t7 }( z/ p7 C" B" {
. \, W n/ S* o9 R, G8 t; e o7 ^+ \4 j
Redhat:/ V+ m3 ^! Y& s, ^; o
| 产品 | 补丁包 | 详情 | | 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 |
0 U2 d g. L s2 y- lNovel/SuSE:
& B( x4 A$ L# [! J7 \( V0 D 查看 http://support.novell.com/security/cve/CVE-2014-6271.html
0 n5 t: H3 e# W# y3 m! w {1 w& {2 @- j5 n% C. x; R
* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。
% {$ e5 D2 Y' h) ~ |