CVE-2014-6271 Bash Security Vulnerability mac OS X 10.9 repair process, cve-2014-6271bash

Source: Internet
Author: User
Tags cve

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.

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,

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 Viewlocale = zh_CN

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

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.