找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 10468|回复: 0

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

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

关于该漏洞
* _. x5 z- k# Q. x; @% l  你好,一个被指比“心脏出血”还要严重的Linux安全漏洞被发现,那就是ShellShock: CVE-2014-6271漏洞,可以让攻击者远程执行任意命令,完全控制您的服务器,比“心脏出血”更低的操作门槛,让它比前者更加危险。下面是漏洞提示原文:
' w8 G0 p3 u9 u- y9 `* E2 L5 ^  "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."' y7 T; C& k4 r, V+ T: F7 v4 D
7 P% [  m  g& u% ]& v
如何验证
/ u( q+ {$ G: n/ t& t5 s- N. v$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'
! }  @, b( Y' }$ m0 l7 Z在终端中运行上面的命令,如果返回有vulnerable,就说明这台服务器中枪了。
4 a$ Q" t1 {! ^2 ]# m9 T把命令中的bash替换成其他类型的shell,可以检查机器上其他shell是否中枪。: |$ s6 O* ~. |2 d8 u: d2 ~
- J; C* R7 C8 {7 O9 p1 M
使用网站卫士修复安全问题
: J" q) }* d# d- Z5 G: d360网站卫士已经支持该漏洞的防护,为了您网站的安全,建议开启360网站卫士的防护功能。; s0 o# G: u( c0 Q5 k
注意:由于补丁修复的不完整,导致了CVE-2014-7169的爆出,可以绕过9月25日的官方补丁,导致任意文件读取漏洞。强烈建议在做好服务器补丁升级的同时,开启网站卫士的防护功能。 6 h% h3 K5 Y8 z. W3 a
) X  v* ]" w, N  N) s: I& l
如何修复系统Bug7 ~' H1 h5 `; D. R5 J" G
* GNU官方补丁所在地址:http://seclists.org/oss-sec/2014/q3/650
9 g* T9 c+ C* C3 S- `) T* 各大发行版的解决方法:
' g2 j- ?9 X+ I2 ]- W  u, h6 {% E+ `2 ]# ]& F/ Q
Debian:1 o4 q, B- T; ^
  查看 https://www.debian.org/security/2014/dsa-3032# ]6 v5 a# E. s" U5 C7 t
) ?. K8 r: c8 k6 [) \8 G
Ubuntu:& Q& _7 N/ H+ r5 x6 j3 w+ s
  查看 http://www.ubuntu.com/usn/usn-2362-1/! t. h. H. {' R" M; r  C2 }4 f

- a& T( W" f! g4 ~CentOS:# `! t1 G0 W: C. x0 t' Y
  # yum -y update bash3 ]0 U- q+ p8 d2 ^6 m
; f7 a! _& Q9 p/ T! @7 m6 G
Fedora:
. S. b. N6 Y3 f0 F) _# q# E; @$ P  W  查看 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2014-62716 P1 t- m+ `1 l4 U3 Q2 |6 x  o+ j

, J" J+ G! T0 X( L9 ARedhat:
- @# A1 B+ X9 y. \

产品补丁包详情
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

* ~# {1 Q& x3 F- w7 [6 |0 ~Novel/SuSE:
0 s+ |8 P; e  q7 E# `1 Q1 e  查看 http://support.novell.com/security/cve/CVE-2014-6271.html) x/ Q6 p' `$ t/ n- S* f
8 q+ r* ^7 g) j
* 其他发行版也可以参照上面的方法自行编译,或者通过发行版内置的包管理器来更新bash。
. b* p' V' b5 F/ U  f
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2026-1-18 22:00 , Processed in 0.147523 second(s), 35 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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