|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-01-28 20:05 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 02:00:01 2025 UTC |
Using: Apache 1.3.12/PHP4 with MySQL support I have recently discovered a bug in PHP 4 (but not specifically 4) which unviels the fact that any user on the system can crash the machine with a very simple PHP document. They can do this by using the Include() function to include the same document being loaded, causing a serious recursion problem which will quickly max out CPU and memory usage of the web-serving machine, especially if a phpInfo() call is done before the Include() I am currently working on a patch for this. Here is the exploitable code: index.php: <html lang="en"> <body> <?php phpInfo(); ?> <?php Include("./index.php"); ?> </body> </html>