Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13631 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99589 invoked by uid 1010); 30 Oct 2004 11:52:20 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99448 invoked from network); 30 Oct 2004 11:52:19 -0000 Received: from unknown (HELO smtp.unet.ru) (213.219.244.56) by pb1.pair.com with SMTP; 30 Oct 2004 11:52:19 -0000 Received: from host.phpclub.net by smtp.unet.ru (8.12.9/Unet) with ESMTP id i9UBqF1J074495 for ; Sat, 30 Oct 2004 15:52:15 +0400 (MSD) Received: from s17.hibet.ru by host.phpclub.net (8.12.6/Unet) with ESMTP id i9UBqFax018929 for ; Sat, 30 Oct 2004 15:52:15 +0400 (MSD) Date: Sat, 30 Oct 2004 15:51:12 +0400 To: internals@lists.php.net Message-ID: <20041030155112.600efdf0.tony2001@phpclub.net> In-Reply-To: <20041029162608.GE31167@bagend.shire> References: <41811956.4050405@caedmon.net> <20041029105149.3b150c7d.tony2001@phpclub.net> <24e5f3b704102901044714577f@mail.gmail.com> <20041029122028.2a0e9fa2.tony2001@phpclub.net> <20041029162608.GE31167@bagend.shire> X-Mailer: Sylpheed version 0.9.99 (GTK+ 1.2.10; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] curl_init() is bypassing safe_mode & open_basedir restrictions From: tony2001@phpclub.net (Antony Dovgal) On Fri, 29 Oct 2004 16:26:08 +0000 Curt Zirzow wrote: > * Thus wrote Antony Dovgal: > > On Fri, 29 Oct 2004 01:04:23 -0700 > > Sterling Hughes wrote: > > > > > no.... curl does not need to respect php's safemode, adding such > > > checks at this level is wrong. people who compile curl, can do so > > > without local file access, and this will solve their problem. > > > > agree, curl doesn't need to respect safemode, but PHP does. > > we're talking about PHP's extension, right ? > > One thing I noticed in some testing was the host part in the > file:// url has no meaning so: > > curl_init('file://whateveryouwant/etc/group'); yup, I see it now. I can change the patch to check this too. Currently I'm waiting for Sterling's response. It's senseless to add any additional checks if he still considers that adding such things is wrong. -- Wbr, Antony Dovgal aka tony2001 tony2001@phpclub.net || antony@dovgal.com