|
关于该漏洞
; C, j a# u% `, r 你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
b* M0 A" G& R6 w% {: ~% O I9 j9 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."! T x0 U, l) ]; V8 h* x, _0 P) U9 T6 g
. I+ K$ a w$ l# w
如何验证+ ]* q9 t% R( }( I. f9 a) p) ?
$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
q$ c; B# P/ S# ?3 a. r' w3 n在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。7 {8 x( B( {( i; i. u) Z
把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。
" b5 `8 k$ @, x* \/ e1 }$ ]3 M# k$ {; v& H# Q- y
使用网站卫士修复安全问题$ ~; L* i2 b& o5 D: l( A
360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。
& T8 ~0 E7 y* f4 E; Z注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。 5 b5 W( P4 \6 ^
- x3 f9 x1 j+ d' [" [" p如何修复系统Bug4 h9 M3 S: a* k4 w" M
* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650' Z" i+ ] [- s' E: s
* 各大发行版的解决方法:
! T! D' S3 j7 v) m& a4 C
: F* [/ } o0 @8 E0 \* j6 m: E' sDebian:' y/ }- T" e7 J. m8 n4 E
查看 https://www.debian.org/security/2014/dsa-30329 O/ @: @1 D8 w
, \ K8 V) S) i% U9 n* s6 X# J* aUbuntu:4 T9 _. W( P( D/ H
查看 http://www.ubuntu.com/usn/usn-2362-1/6 u* w: W# e( n6 P" X: N
( R( B1 o9 g+ L! B
CentOS:' u% x; k; ]7 V4 h) D B
# yum -y update bash; {% c/ M* ~, v4 T
% ^) @$ x- K# \- s3 e0 _/ \Fedora:
. S5 s7 d3 F: k F0 y 查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-62719 J% q$ P! ?- m) |; Q" D5 B
# y& K/ \: v. Q$ b ^5 pRedhat:
- X% |: W# ^% P4 [. X3 o5 l) N | 产品 | 补丁包 | 详情 | | 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( n p3 s, G" I4 V0 s3 ]Novel/SuSE:
( W/ \1 ]) {( `4 ] 查看 http://support.novell.com/security/cve/CVE-2014-6271.html! @' r5 O3 L+ N" D' F
7 |0 v' h# x7 u5 c! I2 ~2 ~& d
* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。
( j' ]% x0 E h( [+ m |