2 ms·
My understanding is that Apache starts CGI apps in environments with variables for things like HTTP_USER_AGENT that are set by random people on the internet thr
by nailer 12y ago
My understanding is that Apache starts CGI apps in environments with variables for things like HTTP_USER_AGENT that are set by random people on the internet through Apache.
- vidarh 12y agoYes, because that is what the CGI spec demands. There is nothing inherently insecure in that: The environment is just a bunch of strings. Whether or not it is insecure depends 100% on the CGI that gets executed. Which programs that is 100% down to the person configuring the website. Apache does not even have a theoretical way to ensure those applications does not do anything stupid with the data no matter the method used to pass it. You have the simple solution if you are concerned about environment variable passing of not trusting mod_cgi. Most people have not used it for years anyway, because of the performance impact.
- nailer 12y agoYes, the CGI spec is obviously broken. Clearing a environment ala Postfix or using a socket would have been the obvious fix in the 90s.