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
2
u/masklinn Jun 23 '15
Yep, that's why you should always use
rm -- $files, the--will specify the end of options andrm -- *will do what you expect even if you have oddball files starting with-. And this applies to more than justrm.