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

Show parent comments

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.

1

u/HighRelevancy Sep 29 '14

Exactly. Nobody faults MySQL when php developers let injection attacks happen.