PHP "htmlentities()" and "htmlspecialchars()" Buffer Overflows
Secunia Advisory: SA22653
Release Date: 2006-11-02
Last Update: 2006-11-03
Popularity: 26,247 views

Critical:
Highly critical
Impact: DoS
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
PHP 4.4.x
PHP 5.0.x
PHP 5.1.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2006-5465


Description:
Some vulnerabilities have been reported in PHP, which can be exploited by malicious people to cause a DoS (Denial of Service) or potentially compromise a vulnerable system.

The vulnerabilities are caused due to boundary errors within the "htmlentities()" and "htmlspecialchars()" functions. If a PHP application uses these functions to process user-supplied input, this can be exploited to cause a heap-based buffer overflow by passing specially crafted data to the affected application.

Successful exploitation may allow execution of arbitrary code, but requires that the UTF-8 character set is selected.

Solution:
Update to version 5.2.0.

Provided and/or discovered by:
Stefan Esser

Changelog:
2006-11-03: Added additional information provided by the Hardened-PHP Project. Added link to Hardened-PHP Project advisory. Updated "Solution" Section.

Original Advisory:
http://www.ubuntu.com/usn/usn-375-1

Other References:
http://www.hardened-php.net/advisory_132006.138.html


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. Subdreamer Light Global Variables SQL Injection Vulnerability // 79 views
2. Adobe Flash Player Multiple Vulnerabilities // 33 views
3. Sun Java System Web Proxy Server SOCKS Module Buffer Overflows // 28 views
4. Microsoft Office Two Code Execution Vulnerabilities // 23 views
5. Sun Java JDK / JRE Multiple Vulnerabilities // 22 views
6. Microsoft Word Malformed Object Pointer Vulnerability // 19 views
7. VLC Media Player Multiple Vulnerabilities // 18 views
8. Opera Multiple Vulnerabilities // 17 views
9. Zeroboard Multiple Vulnerabilities // 16 views
10. phpBB "cur_password" Cross-Site Scripting Vulnerability // 15 views