今天刚刚爆出Bash安全漏洞,SSH bash紧急安全补丁!重要! 测试是否存在漏洞,执行以下命令: [root@keepalivenginxmaster /]# env x='() { :;}; echo vulnerable' bash -c "echo this is a test" vulnerable this is a test 如果显示如上,那么,很遗憾,必须立即打上安全补丁修复, 临时解决办法为: yum -y update bash 升级bash后,执行测试: [root@keepalivenginxmaster /]# 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
本文出自 “yaoshenshen” 博客,谢绝转载!