Secunia Logo  


Secunia PSI WorldMap
 
PHP "strip_tags()" Function and memory_limit Vulnerabilities
Secunia Advisory: SA12064
Release Date: 2004-07-14
Popularity: 21,428 views

Critical:
Highly critical
Impact: Security Bypass
System access
Where: From remote
Solution Status: Vendor Patch

Software:PHP 4.0.x
PHP 4.1.x
PHP 4.2.x
PHP 4.3.x

Secunia CVSS-2 Score: Available in Secunia business solutions

Subscribe: Instant alerts on relevant vulnerabilities


Advisory Content (Page 1 of 3)[ 1 ] [ 2 ] [ 3 ]

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.

Change Page:
[ 1 ] [ 2 ] [ 3 ]



Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. Microsoft DirectShow MPEG2TuneRequest ActiveX Control Buffer Overflow // 406 views
2. Internet Explorer Charset Inheritance Cross-Site Scripting Vulnerability // 62 views
3. Adobe Flash Player Multiple Vulnerabilities // 54 views
4. Adobe Reader/Acrobat Multiple Vulnerabilities // 48 views
5. Facebook Photo Uploader ActiveX Control Property Handling Buffer Overflow // 40 views
6. Sun Java JDK / JRE Multiple Vulnerabilities // 31 views
7. Photo DVD Maker Project File Processing Buffer Overflow // 29 views
8. phpBB Cross Site Scripting and Unspecified Vulnerabilities // 26 views
9. Sun Java System Web Server Java Server Pages Content Disclosure // 22 views
10. Google Chrome HTTP Response Buffer Overflow Vulnerability // 19 views