最新bash漏洞解決方法
今天剛剛爆出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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.