SGI: Security

Shellshock - Page 2

VenomousPinecone wrote: Whaddya' mean? that's not what the floppy drive is for? All these years of my life spent in confusion.

Madame Chiang ! Madame Chiang ! Is it really true ? :P
the bourgeousie is ultimately a repressive institution, and I hate it ...
What are you saying, VP? That the floppy makes your internal drives hard?

Thank you, I'll be here all week.
smit happens.

:Fuel: bigred , 900MHz R16K, 4GB RAM, V12 DCD, 6.5.30
:Indy: indy , 150MHz R4400SC, 256MB RAM, XL24, 6.5.10
:Indigo2IMP: purplehaze , 175MHz R10000, Solid IMPACT
probably posted from Image bruce , Quad 2.5GHz PowerPC 970MP, 16GB RAM, Mac OS X 10.4.11
plus IBM POWER6 p520 * Apple Network Server 500 * RDI PrecisionBook * BeBox * Solbourne S3000 * Commodore 128 * many more...
ClassicHasClass wrote: What are you saying, VP? That the floppy makes your internal drives hard?

Thank you, I'll be here all week.

I'm tempted to issue a Moderator's Warning for corniness. :D
Hey, I'm just staying classy.
smit happens.

:Fuel: bigred , 900MHz R16K, 4GB RAM, V12 DCD, 6.5.30
:Indy: indy , 150MHz R4400SC, 256MB RAM, XL24, 6.5.10
:Indigo2IMP: purplehaze , 175MHz R10000, Solid IMPACT
probably posted from Image bruce , Quad 2.5GHz PowerPC 970MP, 16GB RAM, Mac OS X 10.4.11
plus IBM POWER6 p520 * Apple Network Server 500 * RDI PrecisionBook * BeBox * Solbourne S3000 * Commodore 128 * many more...
smit happens.

:Fuel: bigred , 900MHz R16K, 4GB RAM, V12 DCD, 6.5.30
:Indy: indy , 150MHz R4400SC, 256MB RAM, XL24, 6.5.10
:Indigo2IMP: purplehaze , 175MHz R10000, Solid IMPACT
probably posted from Image bruce , Quad 2.5GHz PowerPC 970MP, 16GB RAM, Mac OS X 10.4.11
plus IBM POWER6 p520 * Apple Network Server 500 * RDI PrecisionBook * BeBox * Solbourne S3000 * Commodore 128 * many more...
Thanks, CHC. Much appreciated!
Everyone has criticized the Bourne syntax and its ambiguity for the last 30 years, and now I guess the chickens are coming home to roost. It doesn't help that Bash is more complex and adds numerous features (basically a superset of ksh88). Fortunately BSD and Debian-derived systems are mostly safe from it ("/bin/sh" is not Bash on those systems).

Updating is easy and only takes a few seconds, but it's unfortunate that it has to happen at all. I wouldn't be sad if Linux distros just replaced Bash with mksh for a standard shell (upgrade to "rc"?). Really, the features of ksh88 were always good enough. We don't need SSH host autocompletion or other stupid things. Unfortunately part of the GNU strategy in the 1980s was to extend Unix programs by adding more features so everyone would want the "super" versions. Some of their improvements were good, like removing artificial limits, and using more efficient algorithms, but adding features led to bloat.

Edsger Dijkstra wrote: How do we convince people that in programming simplicity and clarity —in short: what mathematicians call "elegance"— are not a dispensable luxury, but a crucial matter that decides between success and failure?

Edsger Dijkstra wrote: Simplicity is a great virtue but it requires hard work to achieve it and education to appreciate it. And to make matters worse: complexity sells better.

On Debian 7:

Code: Select all

$ ls -l /bin/{bash,dash,ksh93,mksh} /usr/bin/rc
-rwxr-xr-x 1 root root  975488 Sep 25 14:49 /bin/bash
-rwxr-xr-x 1 root root  106920 Mar  1  2012 /bin/dash
-rwxr-xr-x 1 root root 1489008 Jan  2  2013 /bin/ksh93
-rwxr-xr-x 1 root root  293648 Feb 15  2013 /bin/mksh
-rwxr-xr-x 1 root root   89720 Feb 24  2012 /usr/bin/rc
$ ls -l /bin/sh
lrwxrwxrwx 1 root root 4 Mar  1  2012 /bin/sh -> dash
Debian GNU/Linux on a ThinkPad, running a simple setup with FVWM.
Ironically, I *think* NetWare 6.5 is affected, too. It comes with bash-3.0 and several other GNU/BSD utilities built as NLMs (NetWare Loadable Modules). I tested the original CVE-2014-6271 exploit on it, and it doesn't work immediately, but if you exit and reload BASH.NLM, it seems to suddenly process the environment var set and partially execute the bug. Haven't seen a patch from Novell yet to address the issue. I might go badger them just for fun...
:Onyx2: 4x R14000 :Tezro: 4x R16000 :Fuel: 1x R16000 :Octane: 2x R14000 :O2+: RM7000 :O2: R10000 :O2: RM5200 :Indigo: R4400 :Indigo2IMP: R10000 :Indigo2: R8000 :O3x0: 4x R14000 :Indy: R5000

"The past tempts us, the present confuses us, the future frightens us. And our lives slip away, moment by moment, lost in that vast, terrible in-between."
--Emperor Turhan, Centauri Republic
4.3.28 is out, and the 10.4+ universal binary is updated, which should fix all five CVEs finally.

http://tenfourfox.blogspot.com/2014/09/ ... dated.html
smit happens.

:Fuel: bigred , 900MHz R16K, 4GB RAM, V12 DCD, 6.5.30
:Indy: indy , 150MHz R4400SC, 256MB RAM, XL24, 6.5.10
:Indigo2IMP: purplehaze , 175MHz R10000, Solid IMPACT
probably posted from Image bruce , Quad 2.5GHz PowerPC 970MP, 16GB RAM, Mac OS X 10.4.11
plus IBM POWER6 p520 * Apple Network Server 500 * RDI PrecisionBook * BeBox * Solbourne S3000 * Commodore 128 * many more...
a second shellshock thread now :shock:
please, the politically correct term is PTSD.
:PI: :O2: :Indigo2IMP: :Indigo2IMP:
foetz wrote: a second shellshock thread now :shock:

Actually, this is the third thread. I keep merging them, and a new one appears! Kind of like patches to bash! :lol:
josehill wrote: Kind of like patches to bash! :lol:

a good match then :D
r-a-c.de
I absolutely astounded that the authors of bash thought it a neat idea to

(a) export functions via environment variables
(b) execute contents of any environment variable with the script parser/handler

Its like somebody shooting themselves in the head with every revolver they find to see if they are loaded.

Plonkers!
Land of the Long White Cloud and no Software Patents.
porter wrote: I absolutely astounded that the authors of bash thought it a neat idea to

(a) export functions via environment variables
(b) execute contents of any environment variable with the script parser/handler

Its like somebody shooting themselves in the head with every revolver they find to see if they are loaded.

Plonkers!

Part of the problem is that Bash is just too complex. The design of the Bourne shell was convoluted enough, and then they add on so many "special features." Glad that my "/bin/sh" is "/bin/dash", and I will use Bash only for custom shell scripts using Bash features.

Actually some of the extra features in Bash are useful, like in-process testing with "[[ ]]", and in-process arithmetic with "let". By switching over to Bash features, some of the programs I've written have become much more efficient. These are all available in ksh88 and mksh, though.

When a system relies on one component so much, that component has to be simple, safe, and sturdy. Even aside from this Shellshock vulnerability, Bash is very questionable for the role of "/bin/sh". It's too complex.
Debian GNU/Linux on a ThinkPad, running a simple setup with FVWM.
Yes, we already know that you favor a "See Figure 1" approach to system usability. You really don't need to say it in every post.
:PI: :O2: :Indigo2IMP: :Indigo2IMP:
jwp wrote: Bash is very questionable for the role of "/bin/sh"

for sure. i've never been a bash fan but i wouldn't bash it too much here (pun :D ) either because the problem is linux. to be more precise it being way too spoiled.
system related scripts should never use more than what a real sh can provide. by that the dependency on one specific shell is reduced a lot and by that all bad things that can come out of that
r-a-c.de
Just installed the latest patched bash to my Internet-facing firewall (running Slackware 14.0), of note, see highlight below:

Installing package bash-4.2.050-i486-1_slack14.0.txz:
PACKAGE DESCRIPTION:
# bash (sh-compatible shell)
#
# The GNU Bourne-Again SHell. Bash is a sh-compatible command
# interpreter that executes commands read from the standard input or
# from a file. Bash also incorporates useful features from the Korn
# and C shells (ksh and csh). Bash is ultimately intended to be a
# conformant implementation of the IEEE Posix Shell and Tools
# specification (IEEE Working Group 1003.2).
#
# Bash must be present for the system to boot properly.
#
Executing install script for bash-4.2.050-i486-1_slack14.0.txz.
Package bash-4.2.050-i486-1_slack14.0.txz installed.
Project:
Temporarily lost at sea...
Plan:
World domination! Or something...

:Tezro: :Octane2:
that's a result of /bin/sh being a link to it. Only a few non-critical init scripts use it directly.
try

Code: Select all

grep -lr bash /etc/init.d
:PI: :O2: :Indigo2IMP: :Indigo2IMP:
robespierre wrote: Yes, we already know that you favor a "See Figure 1" approach to system usability. You really don't need to say it in every post.

I must say it in every post! :shock:
Debian GNU/Linux on a ThinkPad, running a simple setup with FVWM.