Secunia CSI7
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading
Moderately critical

PHP Multiple Vulnerabilities

-

Release Date:  2008-12-04    Last Update:  2009-01-12    Views:  10,482

Secunia Advisory SA32964

Where:

From remote

Impact:

Unknown, Security Bypass, DoS, System access

Solution Status:

Vendor Patch

Software:

CVE Reference(s):

Description


Some vulnerabilities have been reported in PHP, where some have an unknown impact and others can be exploited by malicious people to cause a DoS (Denial of Service) or potentially compromise a vulnerable system, and by malicious, local users to bypass certain security restrictions.

1) An input validation error exists within the "ZipArchive::extractTo()" function when extracting ZIP archives. This can be exploited to extract files to arbitrary locations outside the specified directory via directory traversal sequences in a specially crafted ZIP archive.

2) An error in the included PCRE library can be exploited to cause a buffer overflow.

For more information:
SA30916

3) The "BG(page_uid)" and "BG(page_gid)" variables are not initialized, which can be exploited to bypass "safe_mode" restrictions.

4) An error when "safe_mode" is enabled through "php_admin_flag" can be exploited to bypass security restrictions and write to arbitrary local files via a custom "php_value error_log" .htaccess entry.

5) An error in the GD library can be exploited to cause a crash via a specially crafted font file.

This is related to vulnerability #2 in:
SA31409

6) An error exists in the handling of error conditions when processing unicode data within the "mbfl_filt_conv_html_dec()" function in mbfilter_htmlent.c. This can be exploited to cause a heap-based buffer overflow.

Successful exploitation may be possible from remote, but requires that the "mbstring" extension is configured to automatically filter request data.

NOTE: Additionally, a potential buffer overflow in the "memnstr()" function and crashes in the FastCGI functionality and the IMAP toolkit have been fixed.

The vulnerabilities are reported in version 5.2.6. Other versions may also be affected.


Solution:
Update to version 5.2.8.

Provided and/or discovered by:
1) Stefan Esser
3, 4) The vendor credits Maksymilian Arciemowicz.
6) Moriyoshi Koizumi, reported in a PHP bug by estacuentanolamiro.

Original Advisory:
PHP:
http://www.php.net/ChangeLog-5.php#5.2.7
http://www.php.net/archive/2008.php#id2008-12-07-1

Stefan Esser:
http://www.sektioneins.de/advisories/SE-2008-06.txt

Maksymilian Arciemowicz:
http://securityreason.com/achievement_securityalert/59
http://securityreason.com/achievement_securityalert/57

Moriyoshi Koizumi:
http://lists.grok.org.uk/pipermail/full-disclosure/2008-December/066556.html

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 vuln@secunia.com

Subject: PHP Multiple Vulnerabilities

No posts yet

-

You must be logged in to post a comment.



 Products Solutions Customers Partner Resources Company
 
 Corporate
Vulnerability Intelligence Manager (VIM)
Corporate Software Inspector (CSI)
Consumer
Personal Software Inspector (PSI)
Online Software Inspector (OSI)
 Industry
Compliance
Technology
Integration
 Customers
Testimonials
 VARS
MSSP
Technology Partners
References
 Factsheets
Reports
Webinars
Events
 About us
Careers
Memberships
Newsroom


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