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

Secunia Advisory SA12064

PHP "strip_tags()" Function and memory_limit Vulnerabilities
Secunia Advisory SA12064
Secunia VIM 4.0 - Free Trial
Release Date 2004-07-14
   
Popularity 26,924 views
Comments 0 comments

Criticality level Highly criticalHighly critical
Impact Security Bypass
System access
Where From remote
Authentication level This information is available to Secunia VIM customers
   
Report reliability This information is available to Secunia VIM customers
Solution Status Vendor Patch
   
Systems affected This information is available to Secunia VIM customers
Approve distribution This information is available to Secunia VIM customers
Remediation status Secunia CSI, Secunia PSI
Automated scanning Secunia CSI, Secunia PSI
   
Software:
PHP 4.0.x
PHP 4.1.x
PHP 4.2.x
PHP 4.3.x

Secunia CVSS Score This information is available to Secunia VIM Customers
CVE Reference(s) CVE-2004-0594 CVSS score available to Secunia VIM customers
CVE-2004-0595 CVSS score available to Secunia VIM customers
  

Description

Stefan Esser has reported two vulnerabilities in PHP, which can be exploited by malicious people to bypass certain security functionality or compromise a vulnerable system.

1) The "strip_tags()" function fails to strip obfuscated HTML tags (e.g. tags with "\0"). This can be exploited to conduct cross-site scripting attacks against sites, which only rely on the "strip_tags()" functionality to prevent such attacks.

NOTE: An HTML tag such as "<script>" with an embedded binary character like "\0" is not a valid HTML entity. However, certain browsers such as Internet Explorer and Safari strip such illegal characters and render it. This is not a vulnerability in those browser, but unfortunate and unnecessary functionality.

2) Various errors within PHP's memory_limit request termination (e.g. when allocating Zend HashTables before proper initialisation) can be exploited to execute arbitrary code by corrupting the heap (e.g. supplying arbitrary HashTable destructor pointers).

Successful exploitation requires that a resource limit has been set via the "memory_limit" configuration directive.

The vulnerabilities have been reported in version 4.3.7 and prior and version 5.0.0RC3 and prior.


Solution
The vulnerabilities have been fixed in version 4.3.8.
Further details available to Secunia VIM customers

Provided and/or discovered by
Stefan Esser, e-matters.

Original Advisory
Stefan Esser:
http://security.e-matters.de/advisories/112004.html
http://security.e-matters.de/advisories/122004.html

PHP:
http://www.php.net/release_4_3_8.php

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 "strip_tags()" Function and memory_limit 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-2013 Secunia ApS - Rued Langgaards Vej 8, 4th floor, DK-2300 Copenhagen, Denmark - +45 7020 5144
Terms & Conditions and Copyright - Privacy - Report Vulnerability