Bug #71679 [NEW]: open_basedir is reportedly making mcrypt_create_iv() hang
| From: | scott at paragonie dot com | Date: | Sat, 27 Feb 2016 19:18:02 +0000 |
| Subject: | Bug #71679 [NEW]: open_basedir is reportedly making mcrypt_create_iv() hang | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-199504@lists.php.net to get a copy of this message | ||
From: scott at paragonie dot com
Operating system: Unix-like
PHP version: Irrelevant
Package: Safe Mode/open_basedir
Bug Type: Bug
Bug description:open_basedir is reportedly making mcrypt_create_iv() hang
Description:
------------
Reference:
https://github.com/paragonie/random_compat/issues/90
https://github.com/paragonie/random_compat/commit/144415fe86991730ac53e727abf3701b60295607#commitcomment-16367551
Test script:
---------------
// With open_basedir set to not allow reading /dev
$iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM);
var_dump($iv);
Expected result:
----------------
$iv should be quickly populated with 16 random bytes of data
Actual result:
--------------
Process hangs at 100% CPU usage
--
Edit bug report at https://bugs.php.net/bug.php?id=71679&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=71679&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=71679&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=71679&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=71679&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=71679&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=71679&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=71679&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=71679&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=71679&r=support
Expected behavior: https://bugs.php.net/fix.php?id=71679&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=71679&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=71679&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=71679&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=71679&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=71679&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=71679&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=71679&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=71679&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=71679&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=71679&r=mysqlcfg