Title: PHP3 'safe_mode' Failure Vulnerability
Severity: HIGH
Description:
PHP Version 3.0 is an HTML-embedded scripting language. Much of its syntax is borrowed from C, Java and Perl with a couple of unique PHP-specific features thrown in. The goal of the language is to allow web developers to write dynamically generated pages quickly.
Because it runs on a webserver and allows for user implemented (and perhaps security relevant) code to be executed on it, PHP has built in a security feature called 'safe_mode' to control executed commands to the webroot environment which PHP operates in.
This is done by forcing any system call which executes shell commands to have their shell commands passed to the EscapeShellCmd() function which ensures the commands do not take place outside the webroot directory.
Under certain versions of PHP however, the popen() command fails to be applied to the EscapeShellCmd() command and as such users can possibly exploit PHP applications running in 'safe_mode' which make of use of the 'popen' system call.
Affected Products:
- PHP PHP 3.0.0 0
- PHP PHP 3.0.1
- PHP PHP 3.0.10
- PHP PHP 3.0.11
- PHP PHP 3.0.12
- PHP PHP 3.0.13
- PHP PHP 3.0.2
- PHP PHP 3.0.3
- PHP PHP 3.0.4
- PHP PHP 3.0.5
- PHP PHP 3.0.6
- PHP PHP 3.0.7
- PHP PHP 3.0.8
- PHP PHP 3.0.9
- Sun 2800 Workgroup NTT/KOBE 2800WGJ-KOBE
References:
- PHP Development Team.: PHP Support
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.