|
关于该漏洞$ p$ y- ?$ [! q- o$ Z
你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
" D% o3 c. [ [+ A: u9 F. _( 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." }2 a+ K+ j8 H0 m# p" ~4 i e
+ U. E4 K1 V# z. C7 A
如何验证4 Z) u2 ]* X% M- K! \! `( Z
$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'4 O# `2 M& [" H" P. J
在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。4 a- I; [9 T" S: |& F8 n4 c, g- H y0 E
把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。
4 [- w$ L0 ~5 w% ]* @3 o
9 _; f, u3 d; e( u7 [8 g0 @使用网站卫士修复安全问题
2 A6 A# C0 }' q+ V3 e5 _) x5 d9 l360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。- Y" y& l! H8 h9 e* |8 x2 U4 {
注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。
/ z* J: c0 g7 u3 a5 ~
( ]7 G6 {0 ]1 T+ V* j如何修复系统Bug4 \$ N+ l5 o; s* a
* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650! b) q% Y' l `/ K' I% p
* 各大发行版的解决方法:7 u- t+ R5 E& V) e6 o
2 @7 f {* r7 @) w/ x: A# ?
Debian:: r* u: {7 [+ w3 O
查看 https://www.debian.org/security/2014/dsa-3032& H7 [1 |7 N! T0 Z
5 }6 I* s# p- Q/ _( i! z) C
Ubuntu:. v" f" q( p( m: h
查看 http://www.ubuntu.com/usn/usn-2362-1/4 s8 d+ z$ n `
/ ~$ t- U3 _; A% M
CentOS:
& |0 Q; _9 O$ @3 G! O0 ]& M" B # yum -y update bash6 z0 u, \8 Z4 |6 t; Q
6 Z; O v y' y- |Fedora:; R/ Z' I a2 e- E* F: v- @
查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-62711 f+ k5 p& C4 B! M1 D' E
+ h1 `9 M/ x0 v$ M9 H
Redhat:
6 m! K4 D- `$ r2 G% P8 i | 产品 | 补丁包 | 详情 | | 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 |
- R( @6 G" n2 r% J+ p5 c0 K0 z/ gNovel/SuSE:
$ {% y2 @* L4 D% a) Z 查看 http://support.novell.com/security/cve/CVE-2014-6271.html( i# g' c0 B1 D! ]1 N. k+ I4 A
; n6 v! F' y* x( t* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。
1 x5 N$ N* t& M$ i. f8 U |