Bash Vulnerability Repair Tutorial in Linux systems

Source: Internet
Author: User

The day I open the computer, I found that the group said bash the loophole, immediately searched the next, found incredibly more serious than the heart of the loopholes, well, it seems that there are things to do today.

System: centos5.x

1. Detect if your server needs to be repaired

Env x= ' () {:;}; echo vulnerable ' bash-c ' echo this is a test

If the output is vulnerable, then bash will be upgraded.

2. Upgrade Bash

YUM-Y Update Bash

If you are a CENTOS6 server, perform/sbin/ldconfig after Yum, and then reboot your server.

3. Verify

Env x= ' () {:;}; echo vulnerable ' bash-c ' echo this is a test

If you report the following lines, you have no holes in bash:

BASH:WARNING:X: Ignoring function definition attempt

Bash:error importing function definition for ' x '

This is a test

All right, if you want to upgrade, it's up to you to see if the above person has approved it.

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: info-contact@alibabacloud.com 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.