Re: RFC: source files without opening tag
| From: | Stas Malyshev | Date: | Mon, 09 Apr 2012 20:04:54 +0000 |
| Subject: | Re: RFC: source files without opening tag | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-59539@lists.php.net to get a copy of this message | ||
Hi!
>> I'm not sure I follow - which PHP vulnerability you are talking about?
>
> Local file includes. (LFI)
I'm not sure I understand - where's the vulnerability?
> There is a null byte protection for LFI and I really like to the protection.
> It's also beneficial to other problems. However, it would not help codes
> like "include $_REQUEST['var']"
Don't write such code. It's like saying exec() function is a
"vulnerability" in libc. You instruct PHP to run code based on user
input - that's what PHP will be doing, it's not a "vulnerability" by any
definition.
--
Stanislav Malyshev, Software Architect
SugarCRM: http://www.sugarcrm.com/
(408)454-6900 ext. 227