SoylentNews
SoylentNews is people
https://soylentnews.org/

Title    Bash Widespread Vulnerability Discovered
Date    Thursday September 25 2014, @01:59AM
Author    n1
Topic   
from the well,-that's-not-ideal dept.
https://soylentnews.org/article.pl?sid=14/09/25/0010205

DECbot writes:

Ars reports that a new bug has been found in GNU Bash allows remote attackers to execute arbitrary code by setting the process trailing strings after function definitions in the values of environment variables.

This bug is reported to be present in RHEL (ver 4 through 7), Fedora, CentOS (ver 5 through 7), Ubuntu (ver 10.04 LTS, 12.04 LTS, and 14.04 LTS), Debian, and even OS X Mavericks.

This bug is exploitable through Apache servers with mod_cgi and mod_cgid loaded, OpenSSH, malicious DHCP servers in a compromised wireless access point through dhclient, as well as the CUPS printing system.

The Ars also includes a simple single liner that will test your setup for the newly found discovery:

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

A vulnerable system will output the following:

vulnerable
 this is a test

While a patched or unaffected system outputs:

bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a test

A patch is already out, so administrators are advised to update Bash.

Editor's Update: Security Engineer Tavis Ormandy has said "The bash patch seems incomplete to me, function parsing is still brittle".

$ env X='() { (a)=>\' sh -c "echo date"; cat echo

Links

  1. "DECbot" - https://soylentnews.org/~DECbot/
  2. "Ars reports" - http://arstechnica.com/security/2014/09/bug-in-bash-shell-creates-big-security-hole-on-anything-with-nix-in-it/
  3. "new bug" - http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-6271
  4. ""The bash patch seems incomplete to me, function parsing is still brittle"" - https://twitter.com/taviso/status/514887394294652929

© Copyright 2024 - SoylentNews, All Rights Reserved

printed from SoylentNews, Bash Widespread Vulnerability Discovered on 2024-04-22 02:12:48