|
关于该漏洞
% R: k6 ^/ Z2 ~. m% e8 ? 你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
5 d; c$ m7 @ Z "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."* Y1 A* u4 S y5 q4 `% X
8 d# g5 N- [4 [ _3 w$ x
如何验证
' ~8 R) b6 j* d% q; l# y$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'# t# l1 K+ A! |2 y1 I
在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。
6 Q2 A. }& i o* i& P4 L) `$ {把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。3 @: e$ v, J! D9 Z' a X
4 X: [4 w; s p6 E/ L3 m8 h
使用网站卫士修复安全问题2 Z# G: D+ I8 h. A' Z8 m/ Q( U
360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。
$ G7 f) u; F& c' t4 S1 V! q注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。 " p+ r5 W) j5 y1 D4 y. \4 b) v5 y
- T! \1 Y& {% b. m X$ ~, h
如何修复系统Bug
$ ^7 T2 D' Q# k" I# q3 d' t* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/6501 l1 x$ e/ b& E( M5 F/ x3 [
* 各大发行版的解决方法:
) P: T o N3 e7 l+ c( C. b8 X: D% r ?* X
Debian:. P' V% _# l, h( p0 }
查看 https://www.debian.org/security/2014/dsa-3032! A- K" v& {* Z1 S- g
" {# e8 H/ k5 w' C0 C% J. [
Ubuntu:
; Q" U; L, i p 查看 http://www.ubuntu.com/usn/usn-2362-1/& y6 l5 x, m: A* g8 j$ n
2 J! C- N6 s. L% K$ KCentOS:1 D, m0 A& K" o# J& [
# yum -y update bash
, d" _$ I# w0 o! }3 ^8 G3 i
& f% b: L3 H. Z7 ]% ~# qFedora:( q1 L3 [1 v3 D5 Y) [) ?6 d) M v
查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6271% h0 Y% s( U, }- k8 l. A4 |
* n$ `0 ^( p1 C3 m. E7 S0 \
Redhat:
2 D, q; i1 ~5 B( n) 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 |
( V5 H" O9 e) nNovel/SuSE:
- s. D7 A4 N' A6 _/ u* u 查看 http://support.novell.com/security/cve/CVE-2014-6271.html- N$ @2 ?9 l H( j8 S
. ^& o- D# g) A
* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。: l2 c0 F v0 H3 `0 P
|