note 46079 rejected from security.cgi-bin by irchtml
| From: | irchtml@php.net | Date: | Wed, 02 Mar 2005 15:25:07 +0000 |
| Subject: | note 46079 rejected from security.cgi-bin by irchtml | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-85790@lists.php.net to get a copy of this message | ||
Note Submitter: floeff at arcor dot de
----
PHP set up as CGI (either with binfmt and suEXEC or via suPHP) can expose your system to a denial of
service attack. Even a very simple page like
<? echo "Hello world"; ?>
can bog down a server completely if the reload button on the browser is pressed continously for some
seconds. I already tried the RMax directives in httpd.conf and the memory limit in php.ini, but it
does not seem to work, it is just being ignored. I think that so many processes are spawned that the
system is out of control. I can get my load as high as 91 and my disk swaps for nearly 30 minutes
until it works again. Sometimes even the kernel crashed with out of memory errors.
Apart from trying out cgiwrap, I am completely helpless right now.
Does anyone have an idea on what to do? I can't be possible that every PHP suEXEC install is a
big security risk. Any tips are welcome!
I experienced this problem with Apache 1.3 and 2.0.
Thanks in advance,
floeff