|laziness, impatience, and hubris|
Re^8: Security issue and solution for terminal command accessed by public userby Anonymous Monk
|on Jul 07, 2012 at 07:06 UTC||Need Help??|
If the information is for the OP, offer it as a reply to the OP, not me!
And just how restricting the arguments to the program, to their exact range of legal values, limiting?
It would require the Op to enumerate every possible legal input , even all the units, of which he says there are 2526; quoting is much simpler
If you think throwing whatever garbage or carefully calculated input a (potentially malicious) user chooses to supply, at a shell and trusting to luck that there are no flaws in the quoting done by those modules, is an effective security mechanism, you are somewhat less than a dick. You are a fool!
Its much better to badmouth them without investigation of any kind
I thought everyone knew that the *only* secure method of doing the is to only allow that which is safe.
Yup, and quoting , or avoiding the shell accomplishes this exactly
Trying to "sanitise" user input has been the downfall of many a system. And with fools like you around, it will long continue that way.
What, you've never heard of the `rm -rfv /` units?