在bash下运行代码:
env x='() { :;}; echo vulnerable’ bash -c ‘echo hello’
如果输出是:
vulnerable hello
那么赶紧修复吧。
Ubuntu如何升级
很简单,直接运行下边apt-get命令即可:
sudo apt-get update && sudo apt-get install bash
运行以后再运行上边的代码会提示:
bash: warning: x: ignoring function definition attempt bash: error importing function definition for x’ hello
这个时候漏洞就修复好啦。
CenterOS:
yum update -y bash