-This update fixes a security flaw in the bash UNIX shell. -
「OS X bash Update 1.0」を配布開始
http://support.apple.com/downloads/
OS X bash Update 1.0 – OS X Lion 10.7
OS X bash Update 1.0 – OS X Mountain Lion 10.8
OS X bash Update 1.0 – OS X Mavericks 10.9
以下、Appleからのアップデートに関する情報
About OS X bash Update 1.0
OS X bash Update 1.0
Bash
Available for: OS X Lion v10.7.5, OS X Lion Server v10.7.5, OS X Mountain Lion v10.8.5, OS X Mavericks v10.9.5
Impact: In certain configurations, a remote attacker may be able to execute arbitrary shell commands
Description: An issue existed in Bash’s parsing of environment variables. This issue was addressed through improved environment variable parsing by better detecting the end of the function statement.
This update also incorporated the suggested CVE-2014-7169 change, which resets the parser state.
In addition, this update added a new namespace for exported functions by creating a function decorator to prevent unintended header passthrough to Bash. The names of all environment variables that introduce function definitions are required to have a prefix “__BASH_FUNC<” and suffix “>()” to prevent unintended function passing via HTTP headers.
CVE-ID
CVE-2014-6271 : Stephane Chazelas
CVE-2014-7169 : Tavis Ormandy
http://support.apple.com/kb/HT6495
参照URL
http://www.itmedia.co.jp/news/articles/1409/30/news062.html
http://news.mynavi.jp/news/2014/09/30/132/
http://jp.techcrunch.com/2014/09/30/20140929apple-just-patched-the-shellshock-bug-in-os-x/
bashの脆弱性(CVE-2014-6271)でパッチ(OS X 10.9)でパッチをあてた で対応していたのですが、公式アップデートがリリースされたので
手元の環境で試してみました。
OS X bash Update 1.0 – OS X Mavericksをダウンロード
http://support.apple.com/kb/DL1769
インストール後、ターミナル.appで確認
1 |
$ env x='() { :;}; echo vulnerable' bash -c "echo hello" |
で脆弱性チェック→helloと表示されるのでOK
1 2 3 |
$ bash --version GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin13) Copyright (C) 2007 Free Software Foundation, Inc. |
bash –version でバージョンの確認すると「3.2.53(1)」
10/1追記
「Appleが配布した「OS X bash Update 1.0」はShellshockのCVE-2014-7186脆弱性には未対応。」http://applech2.com/archives/41100487.html
Shellshock脆弱性(CVE-2014-6271、CVE-2014-7169、CVE-2014-7186、CVE-2014-7187、CVE-2014-6277、CVE-2014-6278)の全てに対応してない??
手元の環境で確認するため https://github.com/hannob/bashcheck にチェック
bashcheckのワークフロー化 → bashcheck_workflow.zip
- https://github.com/hannob/bashcheckからDownload ZIP
- デスクトップ保存&解凍
- ./bashcheck 実行