Linux安全性漏洞Bash修補方法

來源:互聯網
上載者:User

標籤: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修補方法

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.