I was just reading about Shellshock and how it works. From what I understood it exploits the fact that the code is being executed even after the export of the function definition which is exported as an env variable.
Why isn't the fact that you can set environmental variables on a server a big security issue of its own?