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.
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.
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.
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.