News for hackers. Stuff that matters.
Re:CVE-2014-6271: Remote code execution through bash by jimrandomh on Wednesday September 24, 2014 @11:11AM (#8361871)
If you are responsible for the security of any system, this is your immediate, drop-everything priority. The technical details of the exploit mean that new ways of exploiting it will be discovered soon. Precedent suggests that automated systematic attacks against every server on the Internet will be coming, on a time scale of hours.
Re:CVE-2014-6271: Remote code execution through bash by matchu on Wednesday September 24, 2014 @12:06PM (#8362209)
So, as a amateur sysadmin of a decently popular side project, what should I do? I've read over the post on the mailing list, and I think I understand the basic attack, but I'm having trouble understanding exactly how an attacker could run bash on my server and what I therefore need to patch (though I suspect that's intentional). Is `sudo apt-get update && sudo apt-get upgrade` sufficient on an Ubuntu server?
Re:CVE-2014-6271: Remote code execution through bash by vhost- on Wednesday September 24, 2014 @03:51PM (#8363704)
If you just want to upgrade bash, and prevent services like nginx, fpm, and apache from being restarted in production, you can run `sudo apt-get update && sudo apt-get install --only-upgrade bash`

Related to that, does anyone else know if upgrading bash will require a restart of other services kind of like upgrading openssl requires restarting things?

Re:CVE-2014-6271: Remote code execution through bash by jMyles on Wednesday September 24, 2014 @08:56PM (#8364982)
It runs out that these suggestions were premature, the patch released earlier today DOES NOT fix the problem. https://bugzilla.redhat.com/show_bug.cgi?id=1141597#c24

I just tested this on Ubuntu 14.04 - it's vulnerable.

Re:CVE-2014-6271: Remote code execution through bash by euid on Wednesday September 24, 2014 @06:35PM (#8364550)
Upgrades should not require any restarts, and no restarts are required for you to stop being vulnerable - as this only affects newly created bash sessions, not already running ones.
Re:CVE-2014-6271: Remote code execution through bash by stefantalpalaru on Wednesday September 24, 2014 @08:36PM (#8364933)
Debian's package manager has the nasty habit of stopping affected daemons before all the upgrades and starting them afterwards, leaving you with serious downtime.
Re:CVE-2014-6271: Remote code execution through bash by auxiliation on Wednesday September 24, 2014 @04:25PM (#8363920)
> Related to that, does anyone else know if upgrading bash will require a restart of other services kind of like upgrading openssl requires restarting things?

I don't think it will, for a couple of reasons. OpenSSL is integrated into other services as a library, while bash would be called as an external application. I also noticed that once I upgraded bash, the proof of concept stopped working in a terminal I opened prior to the upgrade.

Re:CVE-2014-6271: Remote code execution through bash by fragmede on Wednesday September 24, 2014 @07:28PM (#8364727)
> I also noticed that once I upgraded bash, the proof of concept stopped working in a terminal I opened prior to the upgrade.

[citation needed] because that doesn't sound possible.

Re:CVE-2014-6271: Remote code execution through bash by lutusp on Wednesday September 24, 2014 @07:32PM (#8364736)
Not if the issued commands spawned a new copy of Bash.
Re:CVE-2014-6271: Remote code execution through bash by sauere on Wednesday September 24, 2014 @12:31PM (#8362392)
> Is `sudo apt-get update && sudo apt-get upgrade` sufficient on an Ubuntu server?

Yes. Patch is out.

Re:CVE-2014-6271: Remote code execution through bash by pjungwir on Wednesday September 24, 2014 @12:48PM (#8362509)
It appears that Linode changes /etc/apt/sources.list to point to their own mirror of Ubuntu repositories, and as far as I can tell those are not updated yet. So I guess the solution is to wait or edit sources.list. Just FYI if you're on their systems!
Re:CVE-2014-6271: Remote code execution through bash by teach on Wednesday September 24, 2014 @01:17PM (#8362706)
Just did an update on my Linode and one of the updates was

    replace bash 4.1-2ubuntu3
So seems like it's there now.
Re:CVE-2014-6271: Remote code execution through bash by steveklabnik on Wednesday September 24, 2014 @01:52PM (#8362946)
https://launchpad.net/ubuntu/+source/bash/4.3-7ubuntu1.1 seems to be at least one version of the fix, I'm unsure about LTS and other releases.
Re:CVE-2014-6271: Remote code execution through bash by sp332 on Wednesday September 24, 2014 @03:35PM (#8363622)
http://www.ubuntu.com/usn/usn-2362-1/

Ubuntu 14.04 LTS: bash 4.3-7ubuntu1.1

Ubuntu 12.04 LTS: bash 4.2-2ubuntu2.2

Ubuntu 10.04 LTS: bash 4.1-2ubuntu3.1

For releases in-between, you should be able to manually download one of those versions from http://archive.ubuntu.com/ubuntu/pool/main/b/bash/ and install it. I wonder how many vulnerable boxes there are that won't get these updates because Ubuntu stops support after 9 months. There must be tons of boxes running 13.10, it's not even a year old yet.

Re:CVE-2014-6271: Remote code execution through bash by merlinmike on Friday September 26, 2014 @12:32AM (#8371342)
For 13.10 do this, selecting correct architecture:

----------------------------------------------------------

amd64

wget archive.ubuntu.com/ubuntu/pool/main/b/bash/bash_4.2-2ubuntu2.3_amd64.deb

sudo dpkg -i bash_4.2-2ubuntu2.3_amd64.deb

----------------------------------------------------------

i386

wget archive.ubuntu.com/ubuntu/pool/main/b/bash/bash_4.2-2ubuntu2.3_i386.deb

sudo dpkg -i bash_4.2-2ubuntu2.3_i386.deb

Re:CVE-2014-6271: Remote code execution through bash by bphogan on Wednesday September 24, 2014 @06:33PM (#8364545)
It's for that reason that I just ignore anything that's not an LTS release. It's never worth the hassle for me.
Re:CVE-2014-6271: Remote code execution through bash by traviscj on Wednesday September 24, 2014 @01:45PM (#8362897)
Depends on whether you have mirrors.linode.com or the ubuntu servers set up in sources.list. I had to swap mine out.
Re:CVE-2014-6271: Remote code execution through bash by teach on Wednesday September 24, 2014 @02:09PM (#8363075)
Well, I didn't even know about mirrors.linode.com. Mine were still the ubuntu default servers.

I guess apt-get from one of Linode's mirrors saves bandwidth? Or is it just more polite?

Re:CVE-2014-6271: Remote code execution through bash by aaronem on Wednesday September 24, 2014 @03:14PM (#8363504)
It probably ensures that you get the Linode-customized flavors of packages where such exist, so that, for example, you don't inadvertently upgrade your kernel to a build without the ability to mount Linode disks.
Re:CVE-2014-6271: Remote code execution through bash by crylon on Wednesday September 24, 2014 @05:33PM (#8364270)
Linode can't modify packages; they're signed by the upstream distro. (Unless Linode added a key of their own to your apt keychain (apt-key list), but I've never seen that.)
Re:CVE-2014-6271: Remote code execution through bash by iancarroll on Wednesday September 24, 2014 @03:47PM (#8363684)
It's also meant to help you and Linlde save bandwidth!
Re:CVE-2014-6271: Remote code execution through bash by dbbolton on Wednesday September 24, 2014 @02:07PM (#8363062)
Or just manually install the new version with dpkg.
Re:CVE-2014-6271: Remote code execution through bash by drzaiusapelord on Wednesday September 24, 2014 @03:20PM (#8363540)
If you just want to update that package then:

apt-get update

apt-get install --only-upgrade bash

fwiw, Linode's mirrors are up with the latest version yet Digital Ocean's are not. I lose faith in DO everytime I remote into my VM. They just seen like an amateurish shop.

Re:CVE-2014-6271: Remote code execution through bash by lefthand on Wednesday September 24, 2014 @05:35PM (#8364277)
My droplets in SFO have been updated. My droplets in nyc1 and nyc2 haven't.
Re:CVE-2014-6271: Remote code execution through bash by lefthand on Wednesday September 24, 2014 @07:38PM (#8364755)
And NY is updated for me as well now. Wondering why it took so long after the other DCs were updated.
Re:CVE-2014-6271: Remote code execution through bash by icelancer on Thursday September 25, 2014 @01:41AM (#8365803)
Checking in 8 hours later - my droplet on nyc1 is still affected.
Re:CVE-2014-6271: Remote code execution through bash by svankmajer on Wednesday September 24, 2014 @03:33PM (#8363600)
I successfully upgraded bash on my droplets a couple minutes ago.
Re:CVE-2014-6271: Remote code execution through bash by sejje on Wednesday September 24, 2014 @05:00PM (#8364107)
Seconded. I've been patched for ~40 minutes on DO.
Re:CVE-2014-6271: Remote code execution through bash by maximumoverload on Wednesday September 24, 2014 @06:29PM (#8364537)
I am on linode and precise LTS. I did this, and I got no bash update. What am I doing wrong?

edit: and how do I know if I am still vulnerable?

edit2: ok, this is the test

  env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
and apparently I am already patched. So that's good.
Re:CVE-2014-6271: Remote code execution through bash by 15characterlimi on Wednesday September 24, 2014 @11:24PM (#8365417)
dpkg -l | grep bash

WIll tell you which version of bash is installed, for precise you should have bash 4.2-2ubuntu2.2

Re:CVE-2014-6271: Remote code execution through bash by bphogan on Wednesday September 24, 2014 @06:33PM (#8364546)
DigitalOcean uses mirrors too, so you have to change your /etc/apt/sources.list file or wait.
Re:CVE-2014-6271: Remote code execution through bash by atmosx on Wednesday September 24, 2014 @06:46PM (#8364597)
I updated debian on DO like 25 minutes ago and had a crystal-clear bash update there. So I guess they updated their mirrors.
Re:CVE-2014-6271: Remote code execution through bash by agwa on Wednesday September 24, 2014 @07:15PM (#8364689)
Debian security updates are distributed from security.debian.org, which is separate from the normal Debian mirror network, and Debian discourages the mirroring of security.debian.org because security updates are time sensitive. Hopefully Digital Ocean is not mirroring security.debian.org.
Re:CVE-2014-6271: Remote code execution through bash by Danieru on Wednesday September 24, 2014 @12:54PM (#8362549)
You should also reboot to ensure no running instances of bash are vulnerable.
Re:CVE-2014-6271: Remote code execution through bash by cesarb on Wednesday September 24, 2014 @01:07PM (#8362647)
If I understood this bug correctly, it happens during bash's initialization. If I'm right, already running instances of bash are not vulnerable, and new instances will use the fixed executable, so no reboot would be necessary for this bug.
Re:CVE-2014-6271: Remote code execution through bash by dfc on Wednesday September 24, 2014 @03:34PM (#8363610)

  $ apt-cache show debian-goodies 
    <SNIP>
    checkrestart    - Help to find and restart processes which are using old
                      versions of upgraded files (such as libraries)
Re:CVE-2014-6271: Remote code execution through bash by bdarnell on Wednesday September 24, 2014 @01:10PM (#8362670)
The vulnerability is in bash startup; any already-running shells should be safe.
Re:CVE-2014-6271: Remote code execution through bash by sauere on Wednesday September 24, 2014 @01:06PM (#8362638)
Good point.
Re:CVE-2014-6271: Remote code execution through bash by clarry on Wednesday September 24, 2014 @12:08PM (#8362224)
I don't know if Ubuntu has pushed a patched version of bash, but bash is what you should update. Someone already posted a way to test whether your version is vulnerable.

You might also look into changing the default shell (but beware, scripts with bashisms in them...).

Re:CVE-2014-6271: Remote code execution through bash by hamiltonkibbe on Wednesday September 24, 2014 @12:13PM (#8362261)
Ubuntu pushed the update around noon

4.3-7ubuntu1.1

Re:CVE-2014-6271: Remote code execution through bash by pjungwir on Wednesday September 24, 2014 @12:21PM (#8362318)
Really? I haven't been able to find any notice of that, and on 14.04 LTS if I run `sudo apt-get install --only-upgrade bash` I'm still vulnerable.
Re:CVE-2014-6271: Remote code execution through bash by pjungwir on Wednesday September 24, 2014 @12:26PM (#8362353)
Ah, looks like I needed to run `sudo apt-get update` first.
Re:CVE-2014-6271: Remote code execution through bash by ForHackernews on Wednesday September 24, 2014 @12:25PM (#8362351)
Re:CVE-2014-6271: Remote code execution through bash by hamiltonkibbe on Wednesday September 24, 2014 @12:24PM (#8362341)
sudo apt-get update && sudo apt-get upgrade
Re:CVE-2014-6271: Remote code execution through bash by gcb0 on Wednesday September 24, 2014 @07:13PM (#8364684)
yeah, it was updated in debian in the morning...
Re:CVE-2014-6271: Remote code execution through bash by zobzu on Wednesday September 24, 2014 @12:43PM (#8362461)
you should update all security updates, reliably, periodically, regardless of HN posts.

you're probably not directly vulnerable for this very vuln, but then again, maybe you are. with enough vulns it gets complex enough to check that its easier to just update with all the security updates..

Re:CVE-2014-6271: Remote code execution through bash by detectify on Wednesday September 24, 2014 @05:38PM (#8364291)
We just updated our scanner and included this CVE. You can run Detectify to see if your setup is vulnerable. We offer a recurring service that runs continuously and alerts you if you are exposed to new emerging vulnerabilities. This removes some of the complexity of always being on top of security alerts.
Re:CVE-2014-6271: Remote code execution through bash by zobzu on Saturday September 27, 2014 @02:46PM (#8377819)
sup advertiser
Re:CVE-2014-6271: Remote code execution through bash by cookiecaper on Wednesday September 24, 2014 @12:33PM (#8362411)
If you're still waiting for mirrors and such to sync, you can install these packages manually on the LTS releases with the snippet here:

http://hastebin.com/oraheyipug.hs

Re:CVE-2014-6271: Remote code execution through bash by ay on Wednesday September 24, 2014 @03:15PM (#8363516)
Looks like the patched version and the pre-patched version show the same version, or am I being stupid and missing something ?

  ayourtch@mcmini:~/bash-patch$ ls
  bash_4.2-2ubuntu2.2_amd64.deb bash-builtins_4.2-2ubuntu2.2_amd64.deb  t
  ayourtch@mcmini:~/bash-patch$ dpkg -x bash_4.2-2ubuntu2.2_amd64.deb t
  ayourtch@mcmini:~/bash-patch$ diff -c t/bin/bash /bin/bash
  Binary files t/bin/bash and /bin/bash differ
  ayourtch@mcmini:~/bash-patch$ t/bin/bash --version
  GNU bash, version 4.2.25(1)-release (x86_64-pc-linux-gnu)
  Copyright (C) 2011 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

  This is free software; you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.
  ayourtch@mcmini:~/bash-patch$ /bin/bash --version
  GNU bash, version 4.2.25(1)-release (x86_64-pc-linux-gnu)
  Copyright (C) 2011 Free Software Foundation, Inc.
  License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
  
  This is free software; you are free to change and redistribute it.
  There is NO WARRANTY, to the extent permitted by law.
  ayourtch@mcmini:~/bash-patch$ sha1sum t/bin/bash
  9eeed02173db163b013933eff3b8c6aa3697f67f  t/bin/bash
  ayourtch@mcmini:~/bash-patch$ sha1sum /bin/bash
  3384fadf84146a4d4b6b7f529f615e9947b4ac99  /bin/bash
  ayourtch@mcmini:~/bash-patch$
Re:CVE-2014-6271: Remote code execution through bash by cookiecaper on Wednesday September 24, 2014 @03:34PM (#8363612)
Only the build/patchset version is incremented in these packages (the -2ubuntu2.2). You can see the package version with dpkg -s bash | grep Version.
Re:CVE-2014-6271: Remote code execution through bash by keithhyfn on Thursday September 25, 2014 @01:11PM (#8368250)
Anyone have code that might work on 13.04 please?
Re:CVE-2014-6271: Remote code execution through bash by ilconsigliere on Wednesday September 24, 2014 @12:07PM (#8362220)
It will be once they release a patch, yes

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

Re:CVE-2014-6271: Remote code execution through bash by karlkatzke on Wednesday September 24, 2014 @12:40PM (#8362444)
Already out on Ubuntu, I believe?
Re:CVE-2014-6271: Remote code execution through bash by larrys on Wednesday September 24, 2014 @12:24PM (#8362339)
A good question that so far nobody has answered (as of right now).
Re:CVE-2014-6271: Remote code execution through bash by larrys on Wednesday September 24, 2014 @12:27PM (#8362363)
"If you are responsible for the security of any system, this is your immediate, drop-everything priority."

Why don't you explain in plain english exactly why you feel this is the case? "Drop-everything" in other words (or even close to that). Give some scenarios. After all anyone who knows a great deal doesn't need that advice the people who need that advice are ones that don't know enough to know what the impact of this is. [1]

Perhaps you could clarify with some examples of why (see child comment "So, as a amateur sysadmin of a decently popular side project") you think this applies to anyone who is "responsible for the security of any system"?

[1] Me for one because I'm not seeing the "Drop everything" priority for any of the systems that I have control over given the way they are configured. That said I'd like to hear more of course.

Re:CVE-2014-6271: Remote code execution through bash by tptacek on Wednesday September 24, 2014 @12:41PM (#8362450)
Any library anywhere in any application you run that calls out to bash that is called by any other library in that application, so long as that application is somehow hooked up to a web server, is potentially an unauthenticated GET request away from code execution; the exploit for this is potentially so simple that attackers can craft a single request, spider the Internet, and collect shells from applications you run that you forgot you even ran, at which point they'll own your whole data center.

Helpful?

Re:CVE-2014-6271: Remote code execution through bash by mentat on Wednesday September 24, 2014 @01:18PM (#8362710)
Very much so. I wasn't thinking through the library (and library equivalent) implications.
Re:CVE-2014-6271: Remote code execution through bash by larrys on Wednesday September 24, 2014 @12:53PM (#8362539)
So for example if you don't run web servers that are front facing on the internet (and you trust your (for example) intranet) then does this become an "asap" rather than a "drop everything"?

"is potentially an unauthenticated GET request"

Are you saying that if you don't have a web server that allows "get" requests (only posts) then this exploit is not an issue at all?

Re:CVE-2014-6271: Remote code execution through bash by jerf on Wednesday September 24, 2014 @04:24PM (#8363915)
The attack surface of this bug may very well be the largest attack surface of any bug in history. Update bash. Just update bash. Everywhere. On everything you have it on. Don't think about whether, just think about how.

(Note I'm not claiming this is the "worst bug ever"... there's stiff competition for that claim. But most of the rest of the "worst bug ever"s I can think of are some point that failed, some particular thing you could do for full root access or something. I can't think of anything else with this sheer staggering surface area.)

Re:CVE-2014-6271: Remote code execution through bash by stouset on Wednesday September 24, 2014 @03:27PM (#8363574)
No, that is not what tptacek is saying.

Unauthenticated GET requests were just an example of something that can invoke this behavior. If you have any network-enabled service that's capable of spawning a shell, you can have attack vectors open.

Possible vectors include things like DHCP clients, SSH, web servers, etc. Lots of things open shells for reasons you wouldn't intuitively expect. It's very likely that there are many creative vectors for exploitation that will be discovered in the coming hours.

Re:CVE-2014-6271: Remote code execution through bash by danielweber on Wednesday September 24, 2014 @01:09PM (#8362655)
Read "unauthenticated GET request" as "people who can do the very very simplest thing to your webserver will find this."
Re:CVE-2014-6271: Remote code execution through bash by droopybuns on Wednesday September 24, 2014 @01:15PM (#8362691)
I'm sure that the people at Home Depot knew for certain that their network was secure right up until the moment they discovered they were hacked.

You can learn by experience, or you can try to leach the wisdom of others.

Re:CVE-2014-6271: Remote code execution through bash by cuillevel3 on Wednesday September 24, 2014 @01:29PM (#8362794)
I like the DHCP attack vector which was mentioned in the RedHat posting. DHCP clients invoke shell scripts.
Re:CVE-2014-6271: Remote code execution through bash by daveloyall on Wednesday September 24, 2014 @02:41PM (#8363284)
Just curious, how long can a wireless SSID be?

I ask because I've seen SSIDs with meaningful characters ()<>;? cause trouble with some network managers. I presumed at the time that this was due to the SSID string being passed as an argument to some script.

I've encountered this on my old Android phone and my old Debian laptop. I encountered it often because a friend of mine used to have an emoticon in the SSID for his home router. (Really annoying! I couldn't connect to anything when his router was in range.)

Note: it could very well have been a different problem. I didn't investigate.

Re:CVE-2014-6271: Remote code execution through bash by rmc on Wednesday September 24, 2014 @01:18PM (#8362711)
Are you saying that if you don't have a web server that allows "get" requests (only posts) then this exploit is not an issue at all?

Usually no. This exploit should be vulnerable to any HTTP method. "unathenticed GETs" are the lowest security level of HTTP calls, so if they can be used as an attack vector, you should pay attention.

Re:CVE-2014-6271: Remote code execution through bash by nandhp on Wednesday September 24, 2014 @12:42PM (#8362458)
Because this allows execution of arbitrary commands from any unsantized environment variable.

Web servers pass information about the HTTP client to CGI scripts using environment variables. A CGI script written in bash would be vulnerable to arbitrary command execution if any HTTP header contained the vulnerable string.

    GET / HTTP/1.0
    User-Agent: () { :; }; rm -rf /
Restricted SSH accounts (like the ones used by GitHub) have a setting to restrict the user to a specific command (e.g. /usr/local/bin/run-git-only --github-user=octocat). The original command is passed in an environment variable SSH_ORIGINAL_COMMAND. If bash is used anywhere along the way (say, if /usr/local/bin/run-git-only --github-user=octocat is a shell script), then this is a problem:

    ssh [email protected] '() { :; }; rm -rf /'
There are surely lots of other ways to get servers to run bash shells with arbitrary environment variables. That's why this is bad.

Edit: as others have pointed out, even non-bash CGI scripts that use a shell to run external processes are vulnerable For example, system("/usr/local/bin/whatever --some-fixed-option") would normally be considered safe since there's no untrusted data in the command-line (although perhaps it would be considered poor design), but it'll run a shell to do the whitespace splitting. If that shell is bash....

Re:CVE-2014-6271: Remote code execution through bash by nisa on Wednesday September 24, 2014 @03:32PM (#8363594)
Is this also dangerous to common FastCGI-Wrappers? E.g. this is used by Virtualmin:

    #!/bin/bash
    PHPRC=$PWD/../etc/php5
    export PHPRC
    umask 022
    export PHP_FCGI_CHILDREN
    PHP_FCGI_MAX_REQUESTS=99999
    export PHP_FCGI_MAX_REQUESTS
    SCRIPT_FILENAME=$PATH_TRANSLATED
    export SCRIPT_FILENAME
    exec /usr/bin/php5-cgi
At least SCRIPT_FILENAME is user input isn't it? I'm really not sure but like to have some clarity. It should not work because it's likely impossible to have () at the beginning of the SCRIPT_FILENAME? but can someone give some hints? It's common to have bash/sh wrapper script: https://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html#exampl...
Re:CVE-2014-6271: Remote code execution through bash by akavel on Wednesday September 24, 2014 @05:25PM (#8364227)
IIUC, you're already pwned after the first line of your wrapper script, i.e. #!/bin/bash, as your CGI environment was already set before, and now you're running bash in it (unless FastCGI works differently, not by setting the environment as plain old CGI; I don't know FastCGI, but from a quick glance I think it works similarly)
Re:CVE-2014-6271: Remote code execution through bash by acdha on Wednesday September 24, 2014 @07:02PM (#8364651)
FastCGI does work differently – it spawns a process which stays open and communicates with it over stdin / stdout – but that doesn't mean that his PHP script doesn't unexpectedly invoke system() somewhere.
Re:CVE-2014-6271: Remote code execution through bash by nisa on Wednesday September 24, 2014 @07:08PM (#8364667)
This script here is run when the process is spawned and spawns the PHP process that listens to stdin/stdout. Similar scripts exist in most install of mod_fcgid. E.g. PLESK, Virtualmin, other ISP-Panels... It boils down to look at what environment variables are there when bash runs this script or not? Once bash starts and grabs the environment variables the exploit starts.

So considering there are other variables in there that can be manipulated it would be possible to own a large chunk of servers on the Internet. However I'm not sure if there is caveat and I had hoped that someone can help me.

Edit: Looks safe. These variables are not even there. It's just an outdated script.

Re:CVE-2014-6271: Remote code execution through bash by navbaker on Wednesday September 24, 2014 @06:53PM (#8364616)
I'm a relative newcomer to the command line and have been Googling around for what exactly the () {:;} is doing with no luck. Does anyone have a good link or explanation?
Re:CVE-2014-6271: Remote code execution through bash by fragmede on Wednesday September 24, 2014 @07:24PM (#8364713)
() makes a function { is the function body : is an ancient 'command' that does nothing ; is says run the : command } closes the function body.
Re:CVE-2014-6271: Remote code execution through bash by navbaker on Thursday September 25, 2014 @01:10PM (#8368246)
Got it, thanks!
Re:CVE-2014-6271: Remote code execution through bash by antocv on Wednesday September 24, 2014 @05:36PM (#8364280)
Who the hell writes CGI scripts in 2014?

There is a reason PHP is to be kept away and not touched with a ten meter stick, it seems to spawn a shell for weird reasons, I dont think python or groovy apps do that. They're safe, unless you somewhere specifically invoke System.getRuntime().run("bash");

Re:CVE-2014-6271: Remote code execution through bash by smsm42 on Wednesday September 24, 2014 @08:00PM (#8364829)
PHP never "spawns shell for weird reasons" - it would spawn shell if you ask it to spawn shell. Just as any other language would, if you ask it. Still, many apps may use shell indirectly - e.g. to execute some system function, to call out to some tool, etc. - and those may be vulnerable even if original code was not CGI script. Moreover, you don't have to run specifically bash - any command execution may go through shell, which may be bash, e.g. Runtime.getRuntime().exec() in Java. Thus it may be not very easy to pinpoint all the places where this bug could sneak in.
Re:CVE-2014-6271: Remote code execution through bash by vorg on Thursday September 25, 2014 @01:47AM (#8365812)
> groovy apps do that [... if] you somewhere specifically invoke System.getRuntime().run("bash");

That's a one-liner in Groovy, written in the Java style of chained method calls, which is the direct equivalent of spawning a shell in non-JVM languages, so that's not an argument for using Groovy instead of PHP.

Re:CVE-2014-6271: Remote code execution through bash by isivaxa on Wednesday September 24, 2014 @01:52PM (#8362948)
"A CGI script written in bash"

You're killin' me here. If you expose a shell script directly to the network, you're exposing a shell and deserve to be pwned.

Re:CVE-2014-6271: Remote code execution through bash by defen on Wednesday September 24, 2014 @02:26PM (#8363186)
If bash is invoked at any point in the response cycle you are pwned; not just if you are directly exposing a shell script. How confident are you that this never happens on any computers anywhere on your network ever?
Re:CVE-2014-6271: Remote code execution through bash by mmastrac on Wednesday September 24, 2014 @02:47PM (#8363328)
That's ridiculous. You may as well say that every time you put a python script up, you're exposing the entire Python runtime and deserve to get 'pwned'.

The scope of the risk is limited to script that you write, whether bash or Python.

Re:CVE-2014-6271: Remote code execution through bash by Nitramp on Wednesday September 24, 2014 @04:23PM (#8363909)
To be fair, with all the various ways how shell scripts (not only in bash) interpolate, evaluate, substitute etc., the typical shell language is much, much harder to keep safe against code injection than say Python (or even PHP). After all, code injection/evaluation is actually what you want in a shell script, half of the time.
Re:CVE-2014-6271: Remote code execution through bash by maximumoverload on Wednesday September 24, 2014 @06:47PM (#8364599)
It doesn't have a nice catchy name and a logo, though
Re:CVE-2014-6271: Remote code execution through bash by dsr_ on Wednesday September 24, 2014 @07:06PM (#8364666)
Fine. Now it's called BashSmash. Are you happy? Go make a logo.
Re:CVE-2014-6271: Remote code execution through bash by fragmede on Wednesday September 24, 2014 @07:25PM (#8364716)
Someone already made on a few hours ago... https://i.imgur.com/ilJbM74.png
Re:CVE-2014-6271: Remote code execution through bash by maximumoverload on Wednesday September 24, 2014 @07:44PM (#8364774)
That's really ugly and not a real logo.
Re:CVE-2014-6271: Remote code execution through bash by maximumoverload on Thursday September 25, 2014 @04:53AM (#8366242)
People are now calling it "Shellshock".

That's nice. I like this song.

https://www.youtube.com/watch?v=2pWZRJd4z8o

Re:CVE-2014-6271: Remote code execution through bash by sireat on Thursday September 25, 2014 @07:06AM (#8366541)
That's funny, showing my age, but "Shellshock" immediately brings up a completely different song in my mind: https://www.youtube.com/watch?v=JUhZ30D7tYU