標籤:style http color io os ar for strong sp
Bash安全性漏洞故障處理方法
一:漏洞描述
該漏洞源於你調用的bash shell之前建立的特殊的環境變數,這些變數可以包含代碼,同時會被bash執行。
二:已確認被成功利用的軟體及系統
所有安裝gun bash 版本小於或者等於4.3的linux作業系統。
三:漏洞檢測方法
[[email protected] ~]# bash -version
GNU bash, version 4.1.2(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
輸入:
[[email protected] ~]# env x=‘() { :;}; echo vulnerable‘ bash -c "echo this is a test"
輸出:
vulnerable
this is a test
如果出現以上資訊,說明系統存在漏洞。
四:處理方法
以下是在虛擬機器上操作
[[email protected] ~]# yum -y update bash
升級bash後,執行測試:
[[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
如果顯示如上,表示已經修補了漏洞。
Linux安全性漏洞Bash修補方法