#48231 [NEW]: php create_function commond injection vulnerability
| From: | root at 80sec dot com | Date: | Mon, 11 May 2009 02:53:18 +0000 |
| Subject: | #48231 [NEW]: php create_function commond injection vulnerability | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-137140@lists.php.net to get a copy of this message | ||
From: root at 80sec dot com
Operating system: Linux/win
PHP version: 5.2.9
PHP Bug Type: Unknown/Other Function
Bug description: php create_function commond injection vulnerability
Description:
------------
there is a commond injection in this function,you can EXECUTE your php
code directly but not CREATE a lambda-style function.It is very useful when
sometimes you can create a function but cann¡¯t call your function.
Reproduce code:
---------------
<?php
$newfunc = create_function('', '};phpinfo();//');
?>
Expected result:
----------------
phpinfo executes runtime,needn't call newfunc.
Actual result:
--------------
phpinfo executes runtime,needn't call newfunc.
--
Edit bug report at http://bugs.php.net/?id=48231&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48231&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48231&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48231&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48231&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48231&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48231&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48231&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48231&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48231&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48231&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48231&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48231&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48231&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48231&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48231&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48231&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48231&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48231&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48231&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48231&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48231&r=mysqlcfg