Bash Vulnerability Analysis

Source: Internet
Author: User
Shell on the bashunix-like system, which allows users to input and execute commands in the Unix-like system. Generally, the connection is implemented through SSH or Telent. In addition, the Web server can also be used as an interpreter for CGI scripts. The Unix-like system has multiple shells, but it is the default shell.

Bash vulnerability Description: Bash processes the strings defined by the function in the environment variable assignment (in other words, attackers can layout the code to execute it ). Example: $: http-header = cookie :() {:;}; Ping-C 3 209.126.230.74 // () {:;} is the function definition; ping-C 3 209.126.230.74 is the shell command and parameter. Attackers can execute arbitrary commands during bash execution.
Attack Path 1: forcecommand in OpenSSH sshd; 2. modcgi and modcgid modules in Apache HTTP Server; 3. scripts executed by DHCP client; 4. Environment Variables set in Bash; 5, CGI in web.
Virus name shellshock Worm

Run the bash shell command: ENV x = "() {:;}; echo exitbug"/bin/sh-c "Echo stuff ", if exitbug characters are returned, the vulnerability exists.
SolutionUpgrade GNU Bash to 4.3 (latest). Upgrade Method: Yum Update-y bash
Later: 1. Generally, this vulnerability is more vulnerable to git/SVN attacks. 2. Upgrading to 4.3 after the upgrade does not guarantee everything goes well. Security is an eternal problem.

Bash Vulnerability Analysis

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.