Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:83949 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 37842 invoked from network); 27 Feb 2015 01:37:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Feb 2015 01:37:37 -0000 Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.51 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.192.51 mail-qg0-f51.google.com Received: from [209.85.192.51] ([209.85.192.51:47145] helo=mail-qg0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id BD/4A-32582-F5ACFE45 for ; Thu, 26 Feb 2015 20:37:36 -0500 Received: by mail-qg0-f51.google.com with SMTP id z60so11884691qgd.10 for ; Thu, 26 Feb 2015 17:37:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=L/xcS41TsZUqLvz2JfUW7vZ2Xk0733pEyVmsrDdpNaQ=; b=NYI07XQhADDjasZRX0tTSMfDk2AicC3Tl9FPjq/tcJ4drgeZfflelYeGKs32wAVzyp 2tFbA5qE+1obFyElzxto2s1IlXE2EwwnuOh/XM9Slk2EcZtv/elrsDrEvL+zjRhyHnEC 9VtdKq4vLKqitqio/ZLgtQr0PCeQoqotELxWMPHj2BFj0OpQglENO6gF2e+WH5XKxJnX kIPzylvKsM3OppVRdPH/UBft+OBRAtgBw70Qv4qYkpEnnnJHi0aAdSdrraLM7LndJjwf dN9C+ALoV77kriOo1Zs2hUJ4xERJLN4LRriAG7FgyqKhnvgXUDV/C3TPVqn858TaU7UD v2jQ== X-Received: by 10.140.151.8 with SMTP id 8mr24400625qhx.65.1425001052757; Thu, 26 Feb 2015 17:37:32 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.198.8 with HTTP; Thu, 26 Feb 2015 17:36:52 -0800 (PST) In-Reply-To: <54EFA3AC.9070406@gmail.com> References: <54EE50CF.9090508@gmail.com> <54EE5A39.9040401@gmail.com> <54EEDE8E.6070201@gmail.com> <54EFA3AC.9070406@gmail.com> Date: Fri, 27 Feb 2015 10:36:52 +0900 X-Google-Sender-Auth: t6Y9PyD2s6RLV6ldT7SjVhQwESI Message-ID: To: Stanislav Malyshev Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a113538628de47f051007e95c Subject: Re: [PHP-DEV] Re: [RFC][VOTE] Introduce script only include/require From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a113538628de47f051007e95c Content-Type: text/plain; charset=UTF-8 Hi Stas, On Fri, Feb 27, 2015 at 7:52 AM, Stanislav Malyshev wrote: > > SInce allow_url_include change is very simple one, I've just made new RFC > > for it. > > > > https://wiki.php.net/rfc/allow_url_include > > > > If you find any other issue like this that relates to this RFC, please > > let me know > > I'll put this discussion shortly. > > I'm not sure what this RFC is trying to achieve. I.e. why make it > INI_ALL? Setting it to off instantly allows remote includes, etc. so if > you are at all worried about vulnerable includes, you'd never tell > anybody to enable it (there can be rare cases where you want to enable > it, but really if you know what you're doing - that's why the level is > so high, supposedly if you have access to SYSTEM, you run the server so > you're supposed to know some stuff about security or at least it's your > own server you're ruining if you don't). > > As for the second part - banning all streams from allow_url_include - > that would be pretty huge BC break, as streams are used in many > scenarios where you may need virtual FSs, filters, etc. It is a very > handy tool. Current setting allows you to operate inside your local > security domain while cutting off content that comes from outside of > your domain. Your proposal would give the user the choice of either to > disable streams completely and lose all benefits coming with them - or > allow everything completely, including require > "http://evil.com/inject.php". That's not a good choice to give to the > users. I've updated the RFC so that allow_url_include be a include/require parameter. Since include/require parse and load another script, INI doesn't work well. It's parameter now, so BC wouldn't be huge. I'm not using phar regularly, feedback from phar users are welcomed. Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a113538628de47f051007e95c--