French Security Incident Response Team

FrSIRT   

      

   français French  anglais English

 
Vulnerability Notification Service
FrSIRT Partner Program
14-Day Free Trial
Contact FrSIRT Sales Dept.
 

Security Advisories
Linux Security Advisories
Virus and Threats Advisories
Latest Security News
Latest Zero Day Threats
Advisories and vulnerabilities by Vendor
Advisories and vulnerabilities by Keyword
 

Report a security incident
Report a new vulnerability
Security Mailinglist
 

Our Company
FrSIRT in the News
Advertise on FrSIRT.COM
Security Researchers and Exploit Writers Jobs
Contact Us

PHP Multiple Restrictions Security Bypass and Denial of Service Vulnerabilities


Title : PHP Multiple Restrictions Security Bypass and Denial of Service Vulnerabilities
Advisory ID : FrSIRT/ADV-2007-0791
CVE ID : CVE-2007-1286 - CVE-2007-1287 - CVE-2007-1375 - CVE-2007-1383 - CVE-2007-1460 - CVE-2007-1461 - CVE-2007-1581 - CVE-2007-1582 - CVE-2007-1583 - CVE-2007-1649 - CVE-2007-1883 - CVE-2007-1888 - CVE-2007-1900
Rated as : Moderate Risk 
Remotely Exploitable : Yes
Locally Exploitable : Yes
Release Date : 2007-03-01

Advisory Details

 
  Description
  Affected Products
  Solution
  References
Technical Description    Receive FrSIRT alerts in a Text format  Receive FrSIRT alerts in a PDF format  Receive FrSIRT alerts in an XML format  Receive FrSIRT notifications by SMS 

Multiple vulnerabilities have been identified in PHP, which could be exploited by malicious users to bypass security restrictions and potentially compromise a vulnerable server.

The first issue is due to a design error within the "_zval_struct" structure where the reference counter is a 16-bit length value, which could be exploited by attackers to overflow the counter via a PHP script that creates a large number of references for a specific variable, and execute arbitrary commands on the underlying operating system bypassing "disable_functions", "open_basedir", and "safe_mode" restrictions. This issue could also potentially be exploited remotely via the "unserialize()" function.

The second vulnerability is due to an error when processing deep array structures passed to recursive functions, which could be exploited by remote attackers to crash a vulnerable server via an affected application.

The third issue is due to an input validation error within the "phpinfo()" function, which could be exploited by attackers to cause arbitrary scripting code to be executed by the user's browser in the security context of an affected Web site.

The fourth vulnerability is due to errors the "substr_compare()" and "unserialize()" functions, which could be exploited by attackers to disclose arbitrary memory (heap) data.

The fifth vulnerability is due to an error in the PECL zip and bz2 extensions that fails to properly validate input passed to the "zip://" or "compress.bzip2://" URL wrappers, which could be exploited to bypass "safe_mode" and "open_basedir" restrictions.

The sixth issue is due to an error in the "mb_parse_str()" function when called with one parameter and is interrupted e.g. by a "memory_limit" violation, which will cause the "register_globals" directive to be activated.

The seventh flaw is due to errors in the "hash_update_file()" and GD functions that can be tricked into accessing already freed resources, which could be exploited by attackers to execute arbitrary code.

The eighth issue is due to a double free error in the "session_decode()" function, which could be exploited by attackers to execute arbitrary code via a malicious PHP script.

The ninth issue is caused by input validation errors in the "mail()" function that fails to properly filter certain strings, which could be exploited by attackers to inject arbitrary email headers (e.g. by manipulating the subject field).

The tenth vulnerability is caused by an error in the "iptcembed()" function, which could be exploited by attackers to disclose arbitrary memory contents.

The eleventh is caused by an input validation error in the ext/filter extension that does not properly validate email address via the "FILTER_VALIDATE_EMAIL" filter, which could be exploited by attackers to inject arbitrary email headers and send spam messages via an affected server.

The twelfth issue is caused by a buffer overflow error in the "sqlite_udf_decode_binary()" [encode.c] function when processing invalid strings, which could be exploited by attackers to execute arbitrary code.

Credits

Vulnerabilities reported by Stefan Esser

ChangeLog

2007-03-01 : Initial release
2007-03-23 : Updated Description
2007-03-30 : Updated Description
2007-04-07 : Updated Description
2007-05-04 : Updated Solution

Vulnerability Management

Subscribe to FrSIRT VNS and receive real-time e-mail and SMS alerts when new vulnerabilities, exploits, or patches relevant to your systems and network configurations are available.

Feedback

If you have additional information or corrections for this security advisory please submit them via our contact form or by email to updates@frsirt.com.


 
 

Search

      

Mailinglist

    
 

Mozilla Products Remote Code Execution and Security Bypass Issues

Mozilla Firefox Unspecified Remote Command Execution Vulnerability

Mozilla JavaScript Garbage Collector Code Execution Vulnerability

Mozilla Thunderbird Code Execution and Cross Site Scripting Issues

Mozilla Firefox and SeaMonkey Multiple Remote Code Execution Issues

Mozilla Thunderbird Multiple Security Bypass and Code Execution Issues

Mozilla Firefox and SeaMonkey Multiple Remote Code Execution Issues

Sun Solaris Tomcat JSP/Servlet Container Multiple Vulnerabilities

Sun Java System Access Manager XSLT Code Execution Vulnerability

Sun Solaris 10 Adobe Reader Multiple Code Execution Vulnerabilities

Sun Solaris "snmpXdmid" Packet Handling Denial of Service Vulnerability

Sun Solaris FreeType2 Library Multiple Memory Corruption Vulnerabilities

Sun Java System Calendar Server Denial of Service Vulnerability

Sun Solaris SMA SNMPv3 Authentication Bypass Vulnerability

Cisco Wide Area Application Services CUPS Remote Vulnerability

Cisco UCM Denial of Service and Authentication Bypass Vulnerabilities

Cisco Intrusion Prevention System Jumbo Frame Vulnerability

Cisco VPN Client Deterministic Network Enhancer Privilege Escalation

Cisco Products SNMPv3 Authentication Packets Vulnerabilities

Cisco PIX and ASA Security Bypass and Denial of Service

Cisco IOS Secure Shell Remote Denial of Service

Copyright 2003-2008 © FrSIRT.COM - Privacy Policy