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-05-02    Last Update:  2008-05-08    Views:  22,429

Secunia Advisory SA30048

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 unknown impacts and others can be exploited by malicious users to bypass certain security restrictions, and potentially by malicious people to cause a DoS (Denial of Service) or to compromise a vulnerable system.

1) An unspecified error in the FastCGI SAPI can be exploited to cause a stack-based buffer overflow.

2) An error in the processing of multibyte characters within the "escapeshellcmd()" and "escapeshellarg()" functions can be exploited to escape the inserted backslash or quote characters via certain multibyte characters.

Successful exploitation allows to bypass the "safe_mode_exec_dir" and "disable_functions" directives, and potentially to inject arbitrary shell commands via user controlled input, but requires that the shell uses a locale with a variable width character (e.g. GBK, EUC-KR, SJIS).

3) A vulnerability is caused due to an error during path translation in cgi_main.c. This can potentially be exploited to execute arbitrary code, but depends on how a targeted application is using PHP.

4) An error in cURL can be exploited to bypass the "safe_mode" directive.

5) A boundary error in PCRE can potentially be exploited by malicious people to cause a DoS or compromise a vulnerable system.

For more information:
SA28923

NOTE: A weakness in the "GENERATE_SEED()" macro has also been reported.

The vulnerabilities are reported in versions prior to 5.2.6.


Solution:
Update to version 5.2.6.

Further details available to Secunia VIM customers

Provided and/or discovered by:
1) The vendor credits Andrei Nigmatulin.
2) Stefan Esser.
3) The vendor credits Ryan Permeh.
4) The vendor credits Maksymilian Arciemowicz.

Original Advisory:
PHP:
http://www.php.net/ChangeLog-5.php

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

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