Re: allow_url_include and php:/data:
| From: | Rasmus Lerdorf | Date: | Sat, 04 Nov 2006 20:40:01 +0000 |
| Subject: | Re: allow_url_include and php:/data: | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-26326@lists.php.net to get a copy of this message | ||
Stanislav Malyshev wrote:
> Stefan Esser writes here:
>
> http://blog.php-security.org/archives/45-PHP-5.2.0-and-allow_url_include.html
>
> that allow_url_include (and allow_url_fopen) can be easily worked around
> - i.e. extrenally-supplied code executed on server - by using php: and
> data: URLs. I think if we want allow_url_include have any value than we
> should fix it... What do you think?
Yeah, we probably should. Had a chat with Wez about it too. Here is
the patch. I think this catches the cases we are interested in:
http://lerdorf.com/php/is_url.diff
If someone could doublecheck it against those attacks it would be helpful.
-Rasmus