note 33586 added to function.ob-get-contents
| From: | sybren at thirdtower dot com | Date: | Tue, 01 Jul 2003 13:13:43 +0000 |
| Subject: | note 33586 added to function.ob-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51272@lists.php.net to get a copy of this message | ||
if(!substr_count($__script, '.php') && isset($_GET['nostringreply']))
die("can only request return of resource from a php script");
This is NOT GOOD! It allows for script to read from "exploit.php.sh" for instance. IIRC
it's also possible to include a remote file by using http or ftp, so checking on
".php" in the script name is no security at all.
----
Manual Page -- http://www.php.net/manual/en/function.ob-get-contents.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33586
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33586&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33586&report=yes