1.影响的系统包括
Centos
Debian
Redhat
Ubuntu
2.检查系统是否要修复
[[email protected] ~]# env x=‘() { :;}; echo vulnerable‘ bash -c "echo this is a test"
vulnerable
this is a test
[[email protected] ~]#
如果输出以上结果表示需要修复bash漏洞
3.修复漏洞
[[email protected] ~]# yum update bash -y
4.重新检查漏洞是否修复
[[email protected] ~]# env x=‘() { :;}; echo vulnerable‘ bash -c "echo this is a test"
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x‘
this is a test
[[email protected] ~]#
时间: 2024-10-29 03:47:45