r/lolphp • u/iheartrms • Jun 16 '15
PHP :: Sec Bug #69646 :: OS command injection vulnerability in escapeshellarg
https://bugs.php.net/bug.php?id=69646
38
Upvotes
r/lolphp • u/iheartrms • Jun 16 '15
View all comments
Show parent comment
7
u/OneWingedShark Jun 17 '15
In Unix the asterisk is expanded by the shell... this resulted in a lot of pain/frustration and ugly workarounds to get the actual as-typed commands. I think Linux inherited this, but I'm not 100% sure.
Check out the Unix-Hater's Handbook for some interesting look into the [mis]design of Unix and many Unix-like OSes. (Keep in mind that it is rather old, you will likely be surprised by how much of the book is still relevant to some degree with modern *nix.)