Secunia - Stay Secure
Gartner
Home Corporate Website Jobs Updated Mailing Lists RSS Blog  Online Shop Advertise
Software Inspectors
  Scan Online
  Personal (PSI)
  Network (NSI 2.0)

Solutions For
  Security Professionals
  Security Vendors

Free Solutions For
  Open Communities
  Journalists & Media

Secunia Advisories
  Search
  Historic Advisories
  Listed By Product
  Listed By Vendor
  Statistics / Graphs
  Secunia Research
  Report Vulnerability
  About Advisories

Virus Information
  Chronological List
  Last 10 Virus Alerts
  About Virus Information

Secunia Customers
  Customer Area


PHP Multiple Vulnerabilities Advisory Available in Danish  Advisory Available in German 

Secunia Advisory: SA25123  
Release Date: 2007-05-04
Last Update: 2007-05-23

Critical:
Highly critical
Impact: Unknown
Security Bypass
Manipulation of data
Brute force
Exposure of system information
Exposure of sensitive information
DoS
System access
Where: From remote
Solution Status: Vendor Patch

Software:PHP 4.4.x
PHP 5.2.x

CVE reference:CVE-2007-1460 (Secunia mirror)
CVE-2007-1461 (Secunia mirror)
CVE-2007-1717 (Secunia mirror)
CVE-2007-1718 (Secunia mirror)
CVE-2007-1864 (Secunia mirror)
CVE-2007-2509 (Secunia mirror)
CVE-2007-2510 (Secunia mirror)
CVE-2007-2511 (Secunia mirror)
CVE-2007-2748 (Secunia mirror)
CVE-2007-2727 (Secunia mirror)

Want to know the next time vulnerabilities are fixed in this product?
- Companies can be alerted via email and SMS!


Description:
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.

Do you have this product installed on your home computer? Scan using the free Personal Software Inspector. Check if a vulnerable version is installed on computers in your corporate network, scan using the Network Software Inspector.

Solution:
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

Changelog:
2007-05-09: Updated "Description" section. Updated vulnerabilities #1 and #5. Updated "Criticality". Added CVE reference.
2007-05-10: Added CVE reference.
2007-05-15: Added #12.
2007-05-22: Added CVE reference.
2007-05-23: Added CVE references.

Original Advisory:
PHP:
http://www.php.net/releases/5_2_2.php
http://www.php.net/releases/4_4_7.php

MOPB:
http://www.php-security.org/MOPB/MOPB-03-2007.html
http://www.php-security.org/MOPB/MOPB-14-2007.html
http://www.php-security.org/MOPB/MOPB-20-2007.html
http://www.php-security.org/MOPB/MOPB-21-2007.html
http://www.php-security.org/MOPB/MOPB-26-2007.html
http://www.php-security.org/MOPB/MOPB-33-2007.html
http://www.php-security.org/MOPB/MOPB-34-2007.html



Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.

37 Related Secunia Security Advisories, displaying 10

1. PHP Multiple Vulnerabilities
2. PHP Multiple Vulnerabilities
3. PHP Multiple Vulnerabilities
4. PHP COM Objects Security Bypass
5. PHP Multiple Vulnerabilities
6. PHP "glob()" Code Execution Vulnerability
7. PHP Multiple Extensions Buffer Overflow Vulnerabilities
8. PHP Integer Overflow Vulnerability and Security Bypass
9. PHP crypt() Race Condition Vulnerability
10. PHP "gdPngReadData()" Truncated PNG Data Denial of Service

Show all related advisories


Send Feedback to Secunia

If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.








Secunia PSI
Scan | Patch | Track
Free Download

Secunia Poll

Do you think it's important to read Setup/User Guides for applications for use within your network?


See Results   


Most Popular Advisories

1.
OpenBSD BIND Query Port DNS Cache Poisoning
2.
Drupal Session Fixation Vulnerability
3.
Debian update for clamav
4.
Apple Safari Cross-Domain Cookie Injection Vulnerability
5.
Linux Kernel LDT Buffer Size Handling Vulnerability
6.
Debian update for xulrunner
7.
IPCop update for perl
8.
Red Hat update for thunderbird
9.
Microsoft Word Unspecified Code Execution Vulnerability
10.
dnsmasq Denial of Service and DNS Cache Poisoning





Vulnerability Management - Terms & Conditions - Copyright 2002-2008 Secunia - Compliance - Contact Secunia