note 46079 added to security.cgi-bin
| From: | floeff at arcor dot de | Date: | Tue, 28 Sep 2004 18:37:08 +0000 |
| Subject: | note 46079 added to security.cgi-bin | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-77538@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/security.cgi-bin.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+46079
Delete -- http://master.php.net/manage/user-notes.php?action=delete+46079&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+46079&report=yes
Search -- http://master.php.net/manage/user-notes.php