TITLE: PHP "mysql_connect" Buffer Overflow Vulnerability SECUNIA ADVISORY ID: SA18275 VERIFY ADVISORY: http://secunia.com/advisories/18275/ CRITICAL: Less critical IMPACT: System access WHERE: >From remote SOFTWARE: PHP 4.4.x http://secunia.com/product/5768/ PHP 4.3.x http://secunia.com/product/922/ 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. SOLUTION: Ensure that PHP scripts do not call the "mysql_connect()" PHP function with input originating from untrusted sources. PROVIDED AND/OR DISCOVERED BY: mercenary ORIGINAL ADVISORY: http://lists.grok.org.uk/pipermail/full-disclosure/2006-January/041013.html ---------------------------------------------------------------------- About: This Advisory was delivered by Secunia as a free service to help everybody keeping their systems up to date against the latest vulnerabilities. Subscribe: http://secunia.com/secunia_security_advisories/ Definitions: (Criticality, Where etc.) http://secunia.com/about_secunia_advisories/ Please Note: Secunia recommends that you verify all advisories you receive by clicking the link. Secunia NEVER sends attached files with advisories. Secunia does not advise people to install third party patches, only use those supplied by the vendor. ---------------------------------------------------------------------- Unsubscribe: Secunia Security Advisories http://secunia.com/sec_adv_unsubscribe/?email=packet%40packetstormsecurity.org ----------------------------------------------------------------------