Secunia CSI7
Create Profile
Our Commitment
Advisories by Product
Advisories by Vendor
Report Vulnerability
Insecure Library Loading
Highly critical

PHP Multiple Vulnerabilities


Release Date:  2007-05-04    Last Update:  2007-05-23    Views:  22,377

Secunia Advisory SA25123


From remote


Unknown, Security Bypass, Manipulation of data, Brute force, Exposure of system information, Exposure of sensitive information, DoS, System access

Solution Status:

Vendor Patch

CVE Reference(s):


Several vulnerabilities and weaknesses have been reported in PHP, where some have unknown impacts and others can be exploited by malicious users to manipulate certain data, disclose potentially sensitive information, bypass certain security restrictions, or to cause a DoS (Denial of Service), and potentially by malicious people to compromise a vulnerable system.

1) An input validation error in the "ftp_putcmd()" function can be exploited to inject newline characters.

2) An unspecified error in the "import_request_variables()" can be exploited to overwrite global variables.

3) An unspecified error can remotely be exploited to cause a buffer overflow within in the "make_http_soap_request()" function (PHP 5).

4) An unspecified error can be exploited to cause a buffer overflow within the "user_filter_factory_create()" function (PHP 5).

5) An unspecified error in the bundled libxmlrpc library can remotely be exploited to cause a heap-based buffer overflow and may allow execution of arbitrary code.

6) An input validation error in the "mail()" function allows injection of headers via the "To" and "Subject" parameters.

7) An error in the "mail()" function allows to truncate messages via ASCIIZ bytes.

8) The "safe_mode" and "open_basedir" protection mechanisms can be bypassed via the "zip://" and "bzip://" wrappers.

9) An integer overflow exists in "substr_compare()", which can be exploited to read memory from memory behind PHP variables. The "substr_count" function is reportedly also affected.

10) An error in the "mb_parse_str()" can be exploited to activate "register_globals".

11) An error in the Zend engine related to nested array variables that can be exploited to crash a PHP application.

12) A weakness is caused due to the use of an uninitialized variable when calling "php_rand_r()" within the "mcrypt_create_iv()" function of the mcrypt module if MCRYPT_RAND is passed as a parameter, which may result in a weaker encryption (PHP 5).

NOTE: Some issues can be triggered remotely under certain circumstances.

Update to version 5.2.2 or 4.4.7. Grant only trusted users permission to execute PHP code.

Provided and/or discovered by:
The vendor credits:
1) loveshell
2) Stefano Di Paola and Steffan Esser
3, 4) Ilia Alshanetsky
5) Stanislav Malyshev
6-11) Stefan Esser
12) John Hargrove

Original Advisory:


Deep Links:
Links available to Secunia VIM customers

Do you have additional information related to this advisory?

Please provide information about patches, mitigating factors, new versions, exploits, faulty patches, links, and other relevant data by posting comments to this Advisory. You can also send this information to

Subject: PHP Multiple Vulnerabilities

No posts yet


You must be logged in to post a comment.

 Products Solutions Customers Partner Resources Company
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
Technology Partners
 About us

© 2002-2014 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability