3 ms·
What I find more concerning is to pass unchecked environment variable directly from remote (or any input, actually). You can understand the opinion to an
by emmelaich 12y ago
What I find more concerning is to pass unchecked
environment variable directly from remote (or any input, actually).
You can understand the opinion to an extent because it would require the every program to know in every case what variables are needed and what they're supposed to look like.
sudo does this to a small extent; it wipes function env vars.
In the rare system/popen my programs do I explicitly give the entire env - just PATH=/bin:/usr/bin; sometimes I give an empty env.
For something like a dhcp client it is obviously bad.
The responsibility there is to whatever invokes it.
- dfc 12y agoMy complaint with the response was the "if you go down that road" response. The bug submitter was not suggesting dropping shell scripts, it was a request to remove the bashisms from dhclient so that it could work with dash. It is not like there is an alternative python/ruby implementation that is "more robust against software failures" and has DEB_HARDENING turned on. If there was I would totally support going down the road of "making small changes to programs that process data from anyone on the network" so they could run on HardPython. If there was something like HardPython alternative that was "more robust to software failures" with st