Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10248 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32093 invoked by uid 1010); 2 Jun 2004 13:50:47 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 32069 invoked from network); 2 Jun 2004 13:50:46 -0000 Received: from unknown (HELO utopia.rusko.us) (207.44.144.89) by pb1.pair.com with SMTP; 2 Jun 2004 13:50:46 -0000 Received: from rusko (ool-44c09d03.dyn.optonline.net [68.192.157.3]) by utopia.rusko.us (Sendmail) with SMTP id 13513BBB96 for ; Wed, 2 Jun 2004 09:56:01 -0400 (EDT) Message-ID: <03b401c448a8$30086a60$0200a8c0@rusko> To: References: <001201c448a8$4ba310e0$74beebd5@wbp1> Date: Wed, 2 Jun 2004 09:47:46 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: Re: [PHP-DEV] virtual(), an easy way to put Apache server in spirals down. From: paul@rusko.us ("Paul G") do you have a maximum mem restriction in your php.ini? paul ----- Original Message ----- From: "NTPT" To: Sent: Wednesday, June 02, 2004 9:48 AM Subject: [PHP-DEV] virtual(), an easy way to put Apache server in spirals down. Hi. I think following things may be a security risk in mod_php, maybe allowing a DoS attak if your server users can use php engine for your www pages. If you make a file foo.php what contains function virtual(), pointing to itself, ie virtual(foo.php) at least in php 4.3.2 an infinite lop occure, that eat up all the memory and swap, eat all the resouces and script is terminated with : "failed to open stream: Limit of open files reached " and Fatal error: Allowed memory size of 67108864 bytes exhausted at (null):0 (tried to allocate 4260 bytes) in Unknown on line 0 I suggest to add a check for maximum recursion level in virtual() if possible and an appropriate directive into the php.ini file that can set this recursion level. Regards, NTPT PS: please execuse my bad english