note 58335 deleted from function.opendir by cmb
| From: | cmb@php.net | Date: | Tue, 11 Jun 2019 06:43:03 +0000 |
| Subject: | note 58335 deleted from function.opendir by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211231@lists.php.net to get a copy of this message | ||
Note Submitter: aligma at gmail dot com
----
The example given by oryan at zareste dot com may also be a "simpler faster way" of
creating security holes in your code. The function listed above prevents risking execution of
abitrary shell commands listed after a semicolon (;) in your directory name.
Example: $directory = '.;rm -rf /';
Result: List this directory, erase contents of filesystem.