close

BASH 有 Shell shock (可參考, Bash Shell 漏洞威脅不小於 Heartbleed!Unix-Like 作業系統請儘速更新)

# 測試方法
Linux:~ $ env x='() { :;}; echo vulnerable' bash -c "echo this is a test"

# 有漏洞時顯示結果
vulnerable
this is a test

# 以修補後顯示結果
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a test

# 各版本更新指令
CentOS:~ # yum update bash
Ubuntu:~ # apt-get install --only-upgrade bash
SuSE:~ # zypper update bash

arrow
arrow
    全站熱搜

    wsunccake 發表在 痞客邦 留言(0) 人氣()