|
关于该漏洞
& f( w6 F" h' U& k& B 你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
( f( }% I' u9 M# i' R# 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."7 [ ]7 l; f2 C1 H% c* i! S7 g
# ~3 A! q$ S3 k6 b% K1 @
如何验证
7 u/ h2 H/ I% C- ^$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
- @5 ?' v& A8 |4 {, ^! y1 j在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。
+ |( ~. t& I+ r d( \把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。
1 A) \6 j0 S3 V1 P2 z5 k
6 h5 }% U" q. o* E使用网站卫士修复安全问题
) Q1 ^9 ^: F5 a5 s5 R7 c360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。* E1 a$ Z ~( Z/ l! i6 E
注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。 7 @& \0 [1 l+ h, c, N- K: u
: R1 f: V* |+ z
如何修复系统Bug
1 n5 e7 Z/ s+ V4 l- r) |: A* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650
7 Z7 t) ^, Q0 N! ^& f, z) Y* 各大发行版的解决方法:& u* F8 j \3 p. x2 o$ N4 G
( b" h. l& t" l& ~6 F- J
Debian:
1 l7 B; m% }0 P$ U E- j 查看 https://www.debian.org/security/2014/dsa-3032
5 N2 O* B8 c- C: M7 D9 Y" l1 t8 ^* a4 o5 Q5 d7 i. k5 Y# {0 u
Ubuntu:
a& v( ?# l* D, n7 T 查看 http://www.ubuntu.com/usn/usn-2362-1/8 P7 X f: R7 G. `! Z" Q& O s
) U4 F+ z1 }# Z' ^: y6 b: OCentOS:
# S. W+ T1 T# P2 Q # yum -y update bash" o6 u( b/ ` u) w: I2 f7 b U! }
7 {# ~# ]9 ]" f1 uFedora:4 ?" }7 s' {0 i6 k5 J' y& e
查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6271
/ y, ]4 [. a4 [# P T+ P& D4 Q. W) m5 d. d( F" H
Redhat:- l" F. {) j6 F; D9 G
| 产品 | 补丁包 | 详情 | | 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 |
3 w: {$ D' t4 m7 e \( \Novel/SuSE:% `+ M8 w' Q0 V8 m
查看 http://support.novell.com/security/cve/CVE-2014-6271.html
. m A5 C3 \4 ]. x s
6 }9 Z/ p, ?. Z' j* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。
U# u* k' H9 ^9 I( ]! h |