Secunia CSI 5.0
Overview
Advisories
Research
Forums
Create Profile
Our Commitment
Database
Search
Advisories by Product
Advisories by Vendor
Terminology
Report Vulnerability
Insecure Library Loading

Secunia Advisory SA24356

PHP4 ZVAL Reference Counter Overflow and Cross-Site Scripting
Secunia Advisory SA24356
Get alerted and manage the vulnerability life cycle
Free Trial

Release Date 2007-03-05
Last Update 2007-05-04
   
Popularity 12,279 views
Comments 0 comments

Criticality level Less criticalLess critical
Impact Security Bypass
Cross Site Scripting
Where Local system
Authentication level Available in Customer Area
   
Report reliability Available in Customer Area
Solution Status Partial Fix
   
   
3rd party PoC/exploit Link available in Customer Area
Systems affected Available in Customer Area
Approve distribution Available in Customer Area
   
Software:
PHP 4.4.x

Secunia CVSS Score Available in Customer Area
CVE Reference(s) CVE-2007-1287 CVSS available in Customer Area
  

Description

Stefan Esser has discovered some vulnerabilities in PHP4, which can be exploited by malicious, local users to bypass certain security restrictions, and by malicious people to conduct cross-site scripting attacks.

1) The vulnerability is caused due to an integer overflow in the handling of ZVAL structures. This can be exploited to corrupt memory and execute arbitrary code therefore bypassing security restrictions like the "disable_functions" directive.

The vulnerability is confirmed in version 4.4.6. Other versions may also be affected.

2) Input passed via array parameters is not properly sanitised before being returned to the user within a "phpinfo()" call. This can be exploited to execute arbitrary HTML and script code in a user's browser session in context of an affected site via a script calling "phpinfo()".

This is related to:
SA17371 (vulnerability #3)
SA19599 (vulnerability #1)

The vulnerability is confirmed in version 4.4.6 and also reported in versions 4.4.3 through 4.4.6. Other versions may also be affected.


Solution
Update to version 4.4.7 to fix vulnerability #2. Grant only trusted users access to affected systems. PHP scripts calling "phpinfo()" should not be publicly accessible on production systems.

Provided and/or discovered by
Stefan Esser

Changelog
Further details available in Customer Area

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

MOPB:
1) http://www.php-security.org/MOPB/MOPB-01-2007.html
2) http://www.php-security.org/MOPB/MOPB-08-2007.html

Deep Links
Links available in Customer Area


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: PHP4 ZVAL Reference Counter Overflow and Cross-Site Scripting
 
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 & Papers
Webinars
Events
 About us
Careers
Memberships
Newsroom


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