Referer: () { :; }; sudo apt-get update && sudo apt-get install --only-upgrade bash
"Why, who was that masked sysadmin? We didn't even get the chance to thank him." Referer: () { :; }; sudo apt-get update && sudo apt-get install --only-upgrade bash
"Why, who was that masked sysadmin? We didn't even get the chance to thank him."This is especially bad on systems where /bin/sh is /bin/bash, since /bin/sh gets invoked implicitly by system(3). So you could have a non-bash CGI program invoking a non-bash program using system(3) and you can be exploited.
The amusing up/down vote war I am watching on my karma gives me hope that at least 50% of HN got it...
if their httpd.conf has incorrect privs set, you could run a script that changes the "user to run as" to root, then set up a script that would run on next reboot to apt-get upgrade and remove the root privs config line. you'd have to wait for the server to go down or reboot however long in the future, but hey it would work.
https://en.wikipedia.org/wiki/Welchia http://virus.wikidot.com/codered (CodeGreen)
On the pro side, it's better than you get patched than stay vulnerable and fall into someone else's zombie list.
On the anti side, you don't know what you are messing with and could break things, oh, and it's illegal and you can go to jail.
On the anti-anti side, if you can't be held responsible to patch your machines, don't complain when someone else does it for you.
That's the barest summary.