Bug #16113 Updated: Circulaire includes makes Apache hang.
| From: | tozz at embrace dot selwerd dot nl | Date: | Sun, 17 Mar 2002 19:46:47 +0000 |
| Subject: | Bug #16113 Updated: Circulaire includes makes Apache hang. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-2707@lists.php.net to get a copy of this message | ||
ID: 16113
Updated by: tozz@embrace.selwerd.nl
Reported By: tozz@embrace.selwerd.nl
Status: Open
Bug Type: Scripting Engine problem
Operating System: Any? (Mine: Linux 2.4.13)
PHP Version: 4.1.2
New Comment:
And this issue can also be abused by users that want to DoS webservers.
Previous Comments:
------------------------------------------------------------------------
[2002-03-16 12:35:35] tozz@embrace.selwerd.nl
Hello,
Althought its the user responsibility to verify his scripts, my user
did not have enough knowledge of PHP to be able to verify all his
scripts and my Apache died.
The problem?
In short, i reproduced the problem by making 2 files:
file1.php:
<? include("http://host.name/file2.php"); ?>
file2.php
<? include("http://host.name/file1.php"); ?>
When you open http://host.name/file1.php you will see an
enormous
amount of Apache childs. And apache hangs (it does not respond to new
requests!).
I know its the user his fault, but when you have a very complicated
website this might happen because of bugs in your scripts. Because of
this my Apache webserver died and I had to restart Apache to make it
work again. Perhaps its a good idea to add somekind of check to
prevent things like this?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16113&edit=1