News for hackers. Stuff that matters.
Re:CVE-2014-6271: Remote code execution through bash by darklajid on Wednesday September 24, 2014 @11:01AM (#8361819)
Whoa. I tried this, ran pacaur -Suy and .. it's patched.

Arch was fast.

Re:CVE-2014-6271: Remote code execution through bash by gegenschall on Wednesday September 24, 2014 @11:17AM (#8361925)
If you're on Arch, you might want to think about using dash as your /usr/bin/sh after updating, see [0].

[0] https://wiki.archlinux.org/index.php/Dash

Re:CVE-2014-6271: Remote code execution through bash by caust1c on Wednesday September 24, 2014 @01:20PM (#8362728)
Also make sure your mirror is up to date. When I updated this morning, osuosl was out of date (and still is as of this comment: https://www.archlinux.org/mirrors/osuosl.org/125/)
Re:CVE-2014-6271: Remote code execution through bash by chjj on Wednesday September 24, 2014 @01:11PM (#8362674)

    $ x='() { :;}; echo vulnerable' bash -c 'echo test'
    vulnerable
    test
    $ pacman -Syu
    ...
    $ x='() { :;}; echo vulnerable' bash -c 'echo test'
    bash: warning: x: ignoring function definition attempt
    bash: error importing function definition for `x'
    test
Benefits of using an OS with a real package manager.
Re:CVE-2014-6271: Remote code execution through bash by tinco on Wednesday September 24, 2014 @01:19PM (#8362717)
Just don't turn it off after you've ran `pacman -Syu`, it will never boot again ;)
Re:CVE-2014-6271: Remote code execution through bash by thevdude on Wednesday September 24, 2014 @02:18PM (#8363132)
I know you're just teasing, but I've got a machine with an arch install from over two years ago that's still running great. Just did an -Syyu to get bash updated.
Re:CVE-2014-6271: Remote code execution through bash by antocv on Wednesday September 24, 2014 @05:41PM (#8364312)
The trick is to keep up with the updates, do pacman -Syu every two weeks or so, and not wait months.
Re:CVE-2014-6271: Remote code execution through bash by alexbecker on Wednesday September 24, 2014 @04:00PM (#8363762)
After it happened 5 times in a row, I finally just aliased pacman -Syu to "breakX".
Re:CVE-2014-6271: Remote code execution through bash by javert on Wednesday September 24, 2014 @12:19PM (#8362303)
I learned today that some mirrors update their package database a lot faster than others. Had to switch mirrors to get the new bash.

https://www.archlinux.org/mirrors/status/

Re:CVE-2014-6271: Remote code execution through bash by dllthomas on Wednesday September 24, 2014 @11:24AM (#8361968)
It's fixed in Debian as well.
Re:CVE-2014-6271: Remote code execution through bash by jvreeland on Wednesday September 24, 2014 @12:20PM (#8362309)
only in wheezy (security) right now.

squeeze. jessie and wheezy are still vulnerable.

https://security-tracker.debian.org/tracker/CVE-2014-6271

Re:CVE-2014-6271: Remote code execution through bash by ars on Wednesday September 24, 2014 @12:29PM (#8362375)
squeeze is not supported anymore but you can use squeeze-lts.

It's been uploaded to squeeze-lts but has not reached the mirrors.

You can get it manually from http://incoming.debian.org/debian-buildd/pool/main/b/bash/ if you can't wait.

Re:CVE-2014-6271: Remote code execution through bash by danielweber on Wednesday September 24, 2014 @05:04PM (#8364149)
I've got a Debian VM I maintain for giggles, and just out of masochism I've been running "apt-get update" and "apt-get upgrade" for a while and watching nothing change.. Am I doing something wrong or is the whole process just slow?

    deb http://http.debian.net/debian/ squeeze-lts main contrib non-free
    deb-src http://http.debian.net/debian/ squeeze-lts main contrib non-free
Re:CVE-2014-6271: Remote code execution through bash by ars on Saturday September 27, 2014 @09:17PM (#8378654)
You probably have:

    APT::Default-Release "squeeze";
In a configuration somewhere. Check /etc/apt and the various files in the subdirectories of that.

If you have that line remove it or change it to squeeze-lts

Re:CVE-2014-6271: Remote code execution through bash by yebyen on Wednesday September 24, 2014 @12:13PM (#8362266)
I am not so sure. Debian sid (i386) with current updates, the example test shows I am still vulnerable. 4.3-9 bash
Re:CVE-2014-6271: Remote code execution through bash by dllthomas on Wednesday September 24, 2014 @12:21PM (#8362322)
I ran

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

    vulnerable
    this is a test
so I did

    apt-get update
    apt-get install bash
and now I get

    bash: warning: x: ignoring function definition attempt
    bash: error importing function definition for `x'
    this is a test
bash version 4.2.37(1)-release

Edited: Seems like jvreeland has a clearer picture: https://news.ycombinator.com/item?id=8362309

Re:CVE-2014-6271: Remote code execution through bash by yebyen on Wednesday September 24, 2014 @12:30PM (#8362385)
Yeah, I was current yesterday and I'm current today, with both apt-get update and upgrades. Your version number is lower than mine, you must be on either stable or testing.

ii bash 4.3-9 i386 GNU Bourne Again SHell

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

vulnerable this is a test

From the FAQ:

> Does sid have security updates?

Not in the same sense that stable does. If the maintainer of a package fixes a security bug and uploads the package, it'll go into sid by the normal means. If the maintainer doesn't do that, then it won't. The security team only covers stable (and possibly testing... there's a pending issue for that case).

Re:CVE-2014-6271: Remote code execution through bash by _delirium on Wednesday September 24, 2014 @05:46PM (#8364334)
sid/unstable had a fix uploaded ~3 hrs ago fwiw (after you made your comment).
Re:CVE-2014-6271: Remote code execution through bash by csirac2 on Wednesday September 24, 2014 @09:25PM (#8365059)
Only for amd64 though, ctrl+f for "4.3-9.1": http://ftp.debian.org/debian/pool/main/b/bash/
Re:CVE-2014-6271: Remote code execution through bash by yebyen on Wednesday September 24, 2014 @09:53PM (#8365144)
Yep. A current i386 debian is still vulnerable, some hours later. Curses.

Edit: I see that even those who got the patch are in fact still vulnerable.

Re:CVE-2014-6271: Remote code execution through bash by antocv on Wednesday September 24, 2014 @05:56PM (#8364387)
http://seclists.org/oss-sec/2014/q3/672

Still vulnerable.

env X='() { (lol)=>\' bash -c "echo id"; cat echo