#40273 [Opn->Bgs]: System slow down in php 5.2.0
| From: | tony2001@php.net | Date: | Mon, 29 Jan 2007 13:36:31 +0000 |
| Subject: | #40273 [Opn->Bgs]: System slow down in php 5.2.0 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-108188@lists.php.net to get a copy of this message | ||
ID: 40273
Updated by: tony2001@php.net
Reported By: Jenei dot Viktor dot Attila at stud dot u-szeged dot
hu
-Status: Open
+Status: Bogus
Bug Type: Performance problem
Operating System: Win32, Linux
PHP Version: 5.2.0
New Comment:
bcmath extension uses libbcmath, which actually does those math
operations and we apparently cannot fix or improve this third-party
library.
There were no changes in ext/bcmath for years, so I doubt that it's
appeared in 5.2.0.
Not PHP problem.
Previous Comments:
------------------------------------------------------------------------
[2007-01-29 13:29:22] Jenei dot Viktor dot Attila at stud dot u-szeged
dot hu
Description:
------------
In the bcmatch module can found a function called bcpow. If you called
this with a big exponent, the compute will take a long. If you load
this
script many times, the system will hang up. The set_time_limit value
don't
help, because it is not an interpreted code.
This code only usefull, if the attacker want to reboot/halt the server
by
the administrator.
Reproduce code:
---------------
denial_of_service.php:
<?php
echo bcpow(9,9999999);
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40273&edit=1