找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 11634|回复: 0

ShellShock: CVE-2014-6271漏洞及紧急修复方法

[复制链接]
发表于 2014-9-26 08:45:37 | 显示全部楼层 |阅读模式

关于该漏洞
; |2 v9 \* x, |  你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
' \* K. L& B1 W: M6 U  "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."
( K) c; m  F+ L+ s4 W" m
1 [! @* P, {: s, w如何验证
$ c) j& `/ u0 T3 b% _3 R$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'( \/ V- B( I+ i
在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。* W$ q9 i& x' `3 r( M/ B. f
把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。* i0 G2 i0 P, m. ^9 }5 c

' `! a# G! Z5 V* B使用网站卫士修复安全问题6 x* v& P% e) g# S
360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。, O9 Q( k% u0 v2 ^( N! u% X
注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。 2 U# F& v7 O6 {) l

1 Z* ~: T2 ~! t/ j如何修复系统Bug
( g9 ]7 F* \/ B7 O$ H* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650* C3 S2 `/ h: q' [5 `3 _  l
* 各大发行版的解决方法:2 e& j6 o5 O; Y0 \. t! B+ r, D

4 L  e) S0 y8 l5 uDebian:
7 C% N& W5 Y3 F/ h% t  查看 https://www.debian.org/security/2014/dsa-3032, ^3 H0 V3 n3 c3 N6 n. s4 g

+ e7 k( ~4 \) s! N- CUbuntu:. m. Y6 E8 W! M; D1 Y
  查看 http://www.ubuntu.com/usn/usn-2362-1/
$ N: ~! P0 \# A# t; J& w6 b! S* n9 U) h0 x. T7 Y
CentOS:. m! Z$ F6 d, ~: R: [: ^. p, c
  # yum -y update bash5 U& |& m- {( u
5 g% b; W  H1 [. u& E
Fedora:3 a8 ^* A) Q2 R8 a0 }: j+ P, \
  查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-6271
* K8 f# R; a9 t1 z, I
" e5 x. K8 U  E8 ~, w: ?Redhat:
, p7 M& k! E7 d

产品补丁包详情
Red Hat Enterprise Linux 7bash-4.2.45-5.el7_0.2Red Hat Enterprise Linux
Red Hat Enterprise Linux 6bash-4.1.2-15.el6_5.1Red Hat Enterprise Linux
bash-4.1.2-15.el6_5.1.sjis.1Red Hat Enterprise Linux
bash-4.1.2-9.el6_2.1Red Hat Enterprise Linux 6.2 AUS
bash-4.1.2-15.el6_4.1Red Hat Enterprise Linux 6.4 EUS
Red Hat Enterprise Linux 5bash-3.2-33.el5.1Red Hat Enterprise Linux
bash-3.2-33.el5_11.1.sjis.1Red Hat Enterprise Linux
bash-3.2-24.el5_6.1Red Hat Enterprise Linux 5.6 LL
bash-3.2-32.el5_9.2Red Hat Enterprise Linux 5.9 EUS
Red Hat Enterprise Linux 4bash-3.0-27.el4.2Red Hat Enterprise Linux 4 ELS

( F$ W/ \3 q6 U! j, aNovel/SuSE:
2 z3 w# e( C- u) B  查看 http://support.novell.com/security/cve/CVE-2014-6271.html2 {: I* c6 }, i% D% T; w" A
+ q, d$ @# K8 w( E5 ?7 q; I) ]
* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。: z$ h4 U# ?" ~/ t4 T
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|第一站论坛 ( 蜀ICP备06004864号-6 )

GMT+8, 2026-5-13 18:19 , Processed in 0.065801 second(s), 23 queries .

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表