2 ms·
> Apache should have used a socket, and should have known they needed to. Well, there's nothing inherently dangerous about setting environment values. Yes, som
by quesera 12y ago
> Apache should have used a socket, and should have known they needed to.
Well, there's nothing inherently dangerous about setting environment values. Yes, some have special meanings in special contexts but so could data piped over a socket.
So your argument boils down to: Apache should have seen the special treatment of data in this context, and used another context instead.
That's fine, but it doesn't address the real problem, which is that the shell was not designed to be executed on behalf of other users. There's no spec to say that data received from the "other" channel will not be interpreted or used unexpectedly.
Until you have that guarantee, you're just rearranging the problem space. There's no systemic improvement.
- nailer 12y ago> So your argument boils down to: Apache should have seen the special treatment of data in this context, and used another context instead. Yes, the behaviour of all Unix shells and their poor separation of data from instructions is well known in the 90s. > There's no spec to say that data received from the "other" channel will not be interpreted or used unexpectedly. That is true. However something specifically designed as a communications channel, such as a socket or FIFO, is generally better suited than something designed as a shell.