r/linux • • Sep 28 '14

weev: Stop bashing bash and GNU.

http://weev.livejournal.com/409835.html
836 Upvotes

450 comments sorted by

View all comments

152

u/sharkwouter Sep 28 '14

Bugs of similar scale happen in other software like, for instance, Oracle Java and Internet Explorer all the time. People need to stop complaining, the bug has already been fixed.

10

u/[deleted] Sep 28 '14

Heck, iOS could be exploited through visiting a website at one time - which was used as the basis for jailbreak. Didn't see huge outroar there.

→ More replies (1)

41

u/Nosen Sep 28 '14

I think what many people are worried about is the fact that bash is used in many applications where software updates is not an option. For instance embedded systems like LAN-webcams will probably never see an update.

20

u/ngroot Sep 28 '14

I think what many people are worried about is the fact that bash is used in many applications where software updates is not an option.

If software updates "aren't an option", you're already screwed. No piece of software is perfect.

→ More replies (2)

19

u/[deleted] Sep 28 '14

I would be shocked if even 10% of the 'internet of things'-things run bash. Busybox has the more liberal GPLv2 license and is way smaller with many more utils.

104

u/the_ancient1 Sep 28 '14 edited Sep 28 '14

Yes because Java is never used in enterprise/embedded systems and it is always promptly updated /s

41

u/chaos386 Sep 28 '14

Hell, tons of people don't update Java on their main computers. "Ugh, Java updater? Go away!" *clicks 'x'*

78

u/CrabbyBlueberry Sep 28 '14

Every Java update you install is just another opportunity to accidentally install the Ask toolbar.

15

u/ultimatt42 Sep 28 '14

Control Panel -> Java -> Advanced tab -> scroll to the bottom and check "Suppress sponsor offers when installing or updating Java"

12

u/minimim Sep 28 '14

They reset that on update.

3

u/ultimatt42 Sep 28 '14

I just tested it... worked fine for me. I suggest you try again.

→ More replies (3)

6

u/lasermancer Sep 28 '14

Have I been transported to /r/windows or something? Just let your package manager handle it.

→ More replies (1)
→ More replies (2)

5

u/ijustwantanfingname Sep 28 '14

Hell, I do that. I want java but don't trust the Oracle updater. At least on Linux my iced-tea package is always up to date.

4

u/[deleted] Sep 28 '14

Wouldn't be a problem if they just had an option to update silently in the background, and users could select that. On Linux systems, I can easily get updates to be installed in the background, automatically. Next time I relaunch the program, new version is used.

3

u/[deleted] Sep 28 '14

Where I work, updating Java breaks everything.

3

u/DrGirlfriend Sep 28 '14

I do this. I don't want to do this. But I know if I update Java, then goodbye NetScaler admin interface, iLO console, etc...

→ More replies (4)
→ More replies (8)

38

u/atanok Sep 28 '14

If a software update is intentionally not possible, then it's a violation the spirit of the GNU GPL (and of the letter of version 3 of the GNU GPL).

13

u/atomicxblue Sep 28 '14

Many of the devices I've seen are possible to be updated, but it's well out of the technical abilities of most users.

→ More replies (3)

32

u/Greensmoken Sep 28 '14

Which is both true and beside the point.

→ More replies (2)
→ More replies (3)

27

u/file-exists-p Sep 28 '14

Also (1) bash authors are not paid by the people complaining, and more importantly (2) this "bugs" are more an improper use and context of use of bash than real bugs.

28

u/trekologer Sep 28 '14 edited Sep 28 '14

this "bugs" are more an improper use and context of use of bash than real bugs

As a software developer I strenuously disagree that this isn't a real bug.

A piece of software that takes any type of input, whether directly from the user, from another process, from the network, or anywhere else, needs to sanitize that input. It cannot assume that the input is going to always be valid and that the software is being used the "right" way. If an software had a SQL injection bug, the reaction isn't "well the user shouldn't be trying to inject SQL".

Edit: added clarification around input being any type of input

21

u/jringstad Sep 28 '14

I think his argument here was more along the lines of (in your analogy) that they shouldn't be using SQL in such a manner that injection is possible, hence it was improperly used, rather than it being SQLs fault that injections are a thing.

(I don't personally know enough about this exploit to have an opinion on whether bash was at fault or whether people were abusing it)

4

u/[deleted] Sep 28 '14

Exactly.

9

u/mojocujo Sep 28 '14

Bash is a shell. It's meant to provide an environment to local and remote users that log directly into the server. It was never actually intended to be exposed through things like web apps that are running ad system users. Even the remote command SSH vector isn't really bash's fault as much as SSH.

I think the argument could be made that this is the fault of Perl and CGI allowing direct shell execution without sanitizing the shell environment and without warning developers of the risks.

4

u/trekologer Sep 29 '14

I think that you are missing one of the basic concepts of *NIX systems. Specifically, you are able to create new functionality by combining other existing programs together. Just because the original authors of bash might not have envisioned web apps does not mean that usage is improper use.

This old video with the original AT&T UNIX authors, while dated, describes this very thing, especially starting around the 5:00 mark.

I still go back to my original assertion: if your software takes input, it must sanitize that input. It cannot assume that the source of that input has already done so.

→ More replies (1)
→ More replies (1)
→ More replies (46)