News for hackers. Stuff that matters.
Re:Unix Wildcards Gone Wild by pdkl95 on Sunday August 17, 2014 @10:17PM (#8191189)
This is why I not only use "--" everywhere, I also religiously use full quoting of "${vars[@]}" and options like mv(1)'s --no-clobber when appropriate. Even without the security concerns, this kind of "least privilege" approach can help prevent a lot of really-annoying bugs.

That said, I going to have to check a few scripts for that chmod attack (or similar) - I think I've seen that type of attack before, but I must have forgotten about it... sigh

There are no comments on this comment yet.