#28909 [NEW]: php_exec_dir
| From: | william at activeminds dot nl | Date: | Thu, 24 Jun 2004 06:48:07 +0000 |
| Subject: | #28909 [NEW]: php_exec_dir | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-61225@lists.php.net to get a copy of this message | ||
From: william at activeminds dot nl
Operating system: FreeBSD
PHP version: 4.3.7
PHP Bug Type: *General Issues
Bug description: php_exec_dir
Description:
------------
It is possible to run commands and bypass the exec block.
Reproduce code:
---------------
$foo=
ps aux;
echo nl2br($foo);
$foo=;ps aux;
echo nl2br($foo);
Expected result:
----------------
it bypasses the exec block and excutes the ps due to the ; as bash
interupts as a new command.
--
Edit bug report at http://bugs.php.net/?id=28909&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28909&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28909&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28909&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28909&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28909&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28909&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28909&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28909&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28909&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28909&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28909&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28909&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28909&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28909&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28909&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28909&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28909&r=float