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 

Secunia Advisory: SA17371  
Release Date: 2005-10-31
Last Update: 2006-03-02

Critical:
Moderately critical
Impact: Security Bypass
Cross Site Scripting
DoS
System access
Where: From remote
Solution Status: Vendor Patch

Software:PHP 4.0.x
PHP 4.1.x
PHP 4.2.x
PHP 4.3.x
PHP 4.4.x
PHP 5.0.x

CVE reference:CVE-2005-2491 (Secunia mirror)
CVE-2005-3319 (Secunia mirror)
CVE-2005-3353 (Secunia mirror)
CVE-2005-3388 (Secunia mirror)
CVE-2005-3389 (Secunia mirror)
CVE-2005-3390 (Secunia mirror)
CVE-2005-3391 (Secunia mirror)
CVE-2005-3392 (Secunia mirror)

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


Description:
Some vulnerabilities have been reported in PHP, which can be exploited by malicious people to conduct cross-site scripting attacks, bypass certain security restrictions, and potentially compromise a vulnerable system.

1) An error where the "GLOBALS" array is not properly protected, can be exploited to define global variables by sending a "multipart/form-data" POST request with a specially crafted file upload field, or via a script calling the PHP function "extract()" or "import_request_variables()".

Successful exploitation may open up for vulnerabilities in various applications, but requires that "register_globals" is enabled.

2) An error in the handling of an unexpected termination in the "parse_str()" PHP function, can be exploited to enable the "register_globals" directive for the current execution by e.g. triggering a memory_limit request shutdown in a script calling "parse_str()".

3) Some unspecified input passed to the "phpinfo()" PHP function isn't properly sanitised before being returned to the user. This can be exploited via a script calling "phpinfo()" to execute arbitrary HTML and script code in a user's browser session in context of an affected site.

4) An integer overflow error in pcrelib may be exploited to cause a memory corruption via a script calling a PHP function using the PCRE library where the regular expression can be controlled by the attacker.

For more information:
SA16502

Successful exploitation may allow execution of arbitrary code.

5) The problem is that it is possible to bypass the "safe_mode" and "open_basedir" protection mechanisms via the "ext/curl" and "ext/gd" modules.

6) An unspecified error in calling "virtual()" on Apache 2 can be exploited to bypass certain configuration directives (e.g. "safe_mode" and "open_basedir").

Other bugs have also been reported where some may be security related.

The vulnerabilities have been reported in versions 4.4.0 and 5.0.5. Prior versions may also be affected.

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 4.4.1 or 5.1.0.
http://www.php.net/downloads.php

Provided and/or discovered by:
1-3) Stefan Esser, Hardened-PHP Project

Reported by vendor.

Changelog:
2005-11-02: Updated "Solution" section.
2005-11-09: Added CVE references.
2005-11-14: Added CVE references.
2005-11-28: Updated "Description" and "Solution" sections, and added link to vendor advisory for PHP 5.
2006-03-02: Added CVE references.

Original Advisory:
Hardened-PHP Project:
http://www.hardened-php.net/advisory_202005.79.html
http://www.hardened-php.net/advisory_192005.78.html
http://www.hardened-php.net/advisory_182005.77.html
http://www.hardened-php.net/index.76.html

The PHP Group:
http://www.php.net/release_4_4_1.php
http://www.php.net/release_5_1_0.php

Other References:
SA16502:
http://secunia.com/advisories/16502/



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.

44 Related Secunia Security Advisories, displaying 10

1. PHP Multiple Vulnerabilities
2. PHP COM Objects Security Bypass
3. PHP crypt() Race Condition Vulnerability
4. PHP "gdPngReadData()" Truncated PNG Data Denial of Service
5. PHP Multiple Vulnerabilities
6. PHP "readwbmp()" Integer Overflow Vulnerability
7. PHP Multiple Code Execution Vulnerabilities
8. PHP Interbase Extension "isc_attach_database()" Buffer Overflow
9. PHP Session Handling Double Free Vulnerabilities
10. PHP "snmpget()" and "session_decode()" Vulnerabilities

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.
Advanced Poll Multiple Vulnerabilities
2.
OpenBSD BIND Query Port DNS Cache Poisoning
3.
Debian update for clamav
4.
Linux Kernel LDT Buffer Size Handling Vulnerability
5.
Drupal Session Fixation Vulnerability
6.
Apple Safari Cross-Domain Cookie Injection Vulnerability
7.
Microsoft Word Unspecified Code Execution Vulnerability
8.
Red Hat update for thunderbird
9.
Red Hat update for kernel
10.
Debian update for xulrunner





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