7.5
CWE
94
Advisory Published
CVE Published
Updated

CVE-2011-3379: Code Injection

First published: Sat Sep 24 2011(Updated: )

It was reported [1],[2] that due to changes in the is_a() function [3],[4] PHP 5.3.7 and 5.3.8 became vulnerable to remote arbitrary code execution when is_a() is used in certain ways. Due to the __autoload() implementation, if a user were able to upload a crafted file, it could be possible to pass the contents of the file as an argument to the __autoload() function which could in turn use that argument as a file to include(). If there was no adequate checking or enforcement of the file to load being, local, this could lead to including a remote script from a remote web site. An example of a vulnerable __autoload() function could be: function __autoload($class_name) { include $class_name . '.php'; } In the above example, were $class_name to include a remote URL, and if allow_url_fopen was enabled in php.ini, this could result in loading a remote PHP script on the server. This flaw does not affect PHP versions prior to 5.3.7 were this change was introduced. A fix is in PHP's subversion repository (r317183) [5]. [1] <a href="http://www.byte.nl/blog/2011/09/23/security-bug-in-is_a-function-in-php-5-3-7-5-3-8/">http://www.byte.nl/blog/2011/09/23/security-bug-in-is_a-function-in-php-5-3-7-5-3-8/</a> [2] <a href="https://bugs.php.net/bug.php?id=55475">https://bugs.php.net/bug.php?id=55475</a> [3] <a href="https://bugs.php.net/bug.php?id=53727">https://bugs.php.net/bug.php?id=53727</a> [4] <a href="http://svn.php.net/viewvc/?view=revision&amp;amp;revision=312904">http://svn.php.net/viewvc/?view=revision&amp;amp;revision=312904</a> [5] <a href="http://svn.php.net/viewvc/?view=revision&amp;amp;revision=317183">http://svn.php.net/viewvc/?view=revision&amp;amp;revision=317183</a> Statement: Not vulnerable. This issue did not affect the versions of php as shipped with Red Hat Enterprise Linux 4, 5, or 6.

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
PHP PHP=5.3.8
PHP PHP=5.3.7

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203