|
关于该漏洞3 M# c, t& G" O/ k, M4 ~
你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:' F: }2 F `/ D& v/ _8 G: }
"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."
+ h& r$ H( @* r/ J9 Z1 ?4 t W) |7 l" p
如何验证
1 f* \* B1 F( n4 N& a$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
6 j& }0 T% s V/ {" }3 r, F) |( L在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。
* M0 {3 N2 r" s, L9 p4 E% O+ x把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。
t, l1 I% \& o+ ?! X( G" _8 ~* O2 K4 Q' g$ T
使用网站卫士修复安全问题8 Z1 {2 n) P+ u( d; C z1 z
360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。2 w# [. Q( ~ L
注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。
2 M) X, A0 Z+ Y2 R5 Y. ^
H4 T/ @8 e3 t' S' `/ a" o: d如何修复系统Bug
+ V8 S6 C* U2 S2 V) y4 ~* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/6502 S" Y4 \8 Q9 J5 C" |4 ~, r
* 各大发行版的解决方法:5 K+ {* v3 X. w' K
4 ]9 g" n4 H9 }, R
Debian:; _& [6 W8 J" N6 O
查看 https://www.debian.org/security/2014/dsa-3032& l' e9 ~$ f) `7 ?, H/ d+ z0 F' j
' Z" b f6 k! z- W
Ubuntu:. t9 }3 R' g5 ? g% z6 p3 a9 C+ x& {
查看 http://www.ubuntu.com/usn/usn-2362-1/) w1 a1 T1 S# t Q7 x5 [1 q
3 X. c0 q: q* i
CentOS:
+ l! K3 s+ p( P. n # yum -y update bash
+ D5 q. B0 l$ M9 w0 n) T* ^8 X/ ` W9 l' v
Fedora:2 p, A! S! g2 ~0 D( ]
查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6271
' `# R/ I/ }9 r( Y$ B4 T
$ e0 @5 d, H- rRedhat:
. H+ N+ ?% ]1 \ | 产品 | 补丁包 | 详情 | | 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 |
' M9 W7 x5 `+ D1 vNovel/SuSE:1 D# W5 S3 }+ y% h% ^9 q& S
查看 http://support.novell.com/security/cve/CVE-2014-6271.html( c' {( m. a. r9 N' E8 B8 B; V
t9 j C" X/ A1 `% z* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。, w& c% W1 z: Q' H5 F2 v# C
|