最近LINUX暴发bash漏洞,检测是否有漏洞方法:
shell命令行执行:
env x='() { :;}; echo vulnerable’ bash -c “echo this is a test”
如果显示:
vulnerable
this is a test
则是有漏洞。如果只显示:
this is a test
则没有问题。
修复办法:
centos:
yum -y update bash
ubuntu可参考:http://jingyan.baidu.com/article/676629974066dd54d51b84eb.html
苹果称MAC用户风险小,不过我在MAC下执行上述测试命令,输出的是:
vulnerable
this is a test
说明有问题。但目前苹果还没给出升级包。