Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:55643 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54709 invoked from network); 28 Sep 2011 07:02:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Sep 2011 07:02:22 -0000 Authentication-Results: pb1.pair.com header.from=h.reindl@thelounge.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=h.reindl@thelounge.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain thelounge.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: h.reindl@thelounge.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Windows 98 (1) Received: from [91.118.73.15] ([91.118.73.15:53142] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7E/90-49539-C76C28E4 for ; Wed, 28 Sep 2011 03:02:21 -0400 Received: from srv-rhsoft.rhsoft.net (openvpn-241.thelounge.net [10.0.0.241]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mail.thelounge.net (Postfix) with ESMTPSA id C97F698 for ; Wed, 28 Sep 2011 09:02:17 +0200 (CEST) Message-ID: <4E82C679.9030800@thelounge.net> Date: Wed, 28 Sep 2011 09:02:17 +0200 Organization: the lounge interactive design User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110906 Thunderbird/6.0.2 MIME-Version: 1.0 To: internals@lists.php.net References: <4E81902E.1020304@thelounge.net> <4E824B36.4040209@gmail.com> <4E824BF7.9070405@thelounge.net> <4E824F69.1010703@gmail.com> <4E825084.4040703@thelounge.net> <4E82B825.5060003@daylessday.org> In-Reply-To: <4E82B825.5060003@daylessday.org> X-Enigmail-Version: 1.3.2 OpenPGP: id=7F780279; url=http://arrakis.thelounge.net/gpg/h.reindl_thelounge.net.pub.txt Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigDC90A475E4C9013DD21C2317" Subject: Re: [PHP-DEV] open_basedir bypass -> errata tempnam() From: h.reindl@thelounge.net (Reindl Harald) --------------enigDC90A475E4C9013DD21C2317 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Am 28.09.2011 08:01, schrieb Antony Dovgal: > On 09/28/2011 02:39 AM, Reindl Harald wrote: >> PLEASE REPLY ONLY TO THE LIST >=20 > Please provide a short (10 lines max) but complete reproduce script. > At the moment your explanations do not make any sense. what do you think was the content of my last mail where you quoted only a part of the "mailing-list-manual"? this was code directly from the library where te problem exists, well i will help you to complete a 5-liner to make its "wrong" permissions and replace a class-var.... what exactly does not make sense? * /tmp MUST NOT be in open_basedir * the temp-folder must be read only * QUESTION1: why is tempnam() falling back to a dir outside open_basedir?= * QUESTION2: why is tempnam() creating a file OUTSIDE open_basedir? * QUESTION3: why is there no error-msg taht $dir is readonly instead unex= pected fallback Warning: fopen() [function.fopen.php]: open_basedir restriction in effect= =2E File(/tmp/rhcsv5f9RIs) is not within the allowed path(s): (/mnt/data/www/beta.rhsoft.net:/Volumes/dune/www-servers= /phpincludes:/var/www/uploadtemp) in /mnt/data/www/beta.rhsoft.net/tempname.php on line 6 Warning: fopen(/tmp/rhcsv5f9RIs) [function.fopen.php]: failed to open str= eam: Operation not permitted in /mnt/data/www/beta.rhsoft.net/tempname.php on line 6 [harry@srv-rhsoft:~]$ stat /tmp/rhcsv5f9RIs Datei: =84/tmp/rhcsv5f9RIs=93 Gr=F6=DFe: 0 Bl=F6cke: 0 EA Block: 4096 regul=E4= re leere Datei Ger=E4t: 809h/2057d Inode: 48 Verkn=FCpfungen: 1 Zugriff: (0600/-rw-------) Uid: ( 48/ apache) Gid: ( 48/ apache)= Zugriff : 2011-09-28 08:58:01.046916064 +0200 Modifiziert: 2011-09-28 08:58:01.046916064 +0200 Ge=E4ndert : 2011-09-28 08:58:01.046916064 +0200 --------------enigDC90A475E4C9013DD21C2317 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk6CxnkACgkQhmBjz394AnkSFQCfRCmhnzMEuuxPcL1B56tMkWZ+ 3DUAniwrIkUyUff9cEOekWiMbUten1AM =E+Ca -----END PGP SIGNATURE----- --------------enigDC90A475E4C9013DD21C2317--