|
PHP "mysql_connect" Buffer Overflow Vulnerability
|
|
|
|
|
Secunia Advisory:
|
SA18275
|
|
|
Release Date:
|
2006-01-05
|
|
Last Update:
|
2006-08-04
|
|
|
Critical:
|

Less critical
|
|
Impact:
|
System access
|
|
Where:
|
From remote
|
|
Solution Status:
|
Vendor Patch
|
|
| Software: | PHP 4.3.x PHP 4.4.x
|
| | CVE reference: | CVE-2006-0097 (Secunia mirror)
|
|
|
Want to know the next time vulnerabilities are fixed in this product? - Companies can be alerted via email and SMS! |
|
|
Description: mercenary has discovered a vulnerability in PHP, which can be exploited by malicious people to compromise a vulnerable system.
The vulnerability is caused due to a boundary error in the handling of the named pipe part of the "server" parameter passed to the "mysql_connect()" PHP function in the "HANDLE create_named_pipe()" function in "libmysql.c". This can be exploited to cause a stack-based buffer overflow via a PHP script calling "mysql_connect()" where the "server" parameter can be controlled by the attacker.
NOTE: Exploit code is publicly available.
The vulnerability has been confirmed in version 4.4.1 for Windows. Versions 4.3.10 and 4.4.0 for Windows are reportedly also affected. Other versions may also be affected.
Do you have this product installed on your home computer? Scan using the free Personal Software Inspector. Check if a vulnerable version is installed on computers in your corporate network, scan using the Network Software Inspector.
Solution: Update to version 4.4.3.
http://www.php.net/downloads.php
Provided and/or discovered by: mercenary
Changelog: 2006-08-03: Updated "Solution" section.
2006-08-04: Added CVE reference.
Original Advisory: http://lists.grok.org.uk/pipermail/full-disclosure/2006-January/041013.html
|
|
|
|
|
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.
|
|
|
|
41 Related Secunia Security Advisories, displaying 10
|
|
|
1. PHP Multiple Vulnerabilities
|
|
2. PHP crypt() Race Condition Vulnerability
|
|
3. PHP "gdPngReadData()" Truncated PNG Data Denial of Service
|
|
4. PHP Multiple Vulnerabilities
|
|
5. PHP "readwbmp()" Integer Overflow Vulnerability
|
|
6. PHP Multiple Code Execution Vulnerabilities
|
|
7. PHP Interbase Extension "isc_attach_database()" Buffer Overflow
|
|
8. PHP Session Handling Double Free Vulnerabilities
|
|
9. PHP "snmpget()" and "session_decode()" Vulnerabilities
|
|
10. PHP4 ZVAL Reference Counter Overflow and Cross-Site Scripting
|
Show all related 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.
|
|
|
|