CVE-2014-6271 Bash Security Vulnerability mac OS X 10.9 repair process, cve-2014-6271bash
# Detection
Open the command line and enter the following content:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
If the following is returned, upgrade as soon as possible.
vulnerable this is a test
# Upgrade
Check the current version. Mine is 3.2.51 (1)
bash -version
Download the latest version of Bash 4.3.25. After decompression, open the command line and switch to the decompressed directory.
wget http://git.savannah.gnu.org/cgit/bash.git/snapshot/bash-master.tar.gz
Compile and install. Enter the following command. Press enter and you will be asked to enter the administrator password. A bash file will be generated under/usr/local/bin.
./configure && make && sudo make install
First save the previous bash command, and then update
sudo mv /bin/bash /bin/bash3.2.51sudo ln -s /usr/local/bin/bash /bin/bash
# Verify again
The following command returns version 4.3.25 (1 ):
bash -version
For verification again, enter the following content:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
The returned result is an X-defined error. Success!
Bash: Warning: x: ignoring function definition attempt bash: 'X' function definition import error this is a test
Java environment variable setting in MAC OS X
Please ignore the first floor, second floor
On the first floor, it was an idiot who asked about mac OS's return to Windows. Such an idiot did not know where to come from to answer the question!
The second floor is better than the platform, but it is also an idiot, asking 1.7 What you said is 1.6,
Solution
Open the terminal-> cd ~ -> Vi. bash_profile-> click I to enter the editing mode-> enter export JAVA_HOME =/System/Lib...-> Press ESC and press: Enter wq and press Enter.
You can.
For java environments in Mac OS X 1083
Download and install this
Support.apple.com/kb/DL1572? Viewlocale = zh_CN