3 ms·
While that might have been great, the alternative is: People should not have used shells as CGI handlers, and people should (irrespective of CGI) sanitize any e
by vidarh 12y ago
While that might have been great, the alternative is: People should not have used shells as CGI handlers, and people should (irrespective of CGI) sanitize any environments passed on when spawning other programs from their applications.
This latter is really something we should do irrespective of where the input is coming from. Even if the content comes from trusted sources, passing the environment unchanged to sub-processes means we risk all kinds of unintended consequences if an application developers decides to spawn a sub-process that exec's into some process that makes decisions on various variables.
It's a bit like letting our applications call functions with random junk in the argument list.
- regularfry 12y agoOne thing I've learnt over the years: anything which relies on "people should..." as a basis is doomed.