ITeye博客

centos bash漏洞查看与修复

yangchunhe · 2014-09-25 20:44 · linux · 操作系统 · Bash · CentOS · Linux · Markdown

linux bash报重大漏洞,存在漏洞的版本包括如下。

bash-4.2.45-5.el7_0.2
bash-4.1.2-15.el6_5.1
bash-4.1.2-15.el6_5.1.sjis.1
bash-4.1.2-9.el6_2.1
bash-4.1.2-15.el6_4.1
bash-3.2-33.el5.1Linux
bash-3.2-33.el5_11.1.sjis.1 
bash-3.2-24.el5_6.1
bash-3.2-32.el5_9.2
bash-3.0-27.el4.2 

查看命令如下:

env x='() { :;}; echo vulnerable'  bash -c "echo this is a test"

如果输出:

vulnerable
this is a test

则系统存在风险

修复方式:

yum -y update bash

修复后输出如下:

bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a test

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。