Description
Buffer overflow in PHP 4.4.6 and earlier, and unspecified PHP 5 versions, allows local and possibly remote attackers to execute arbitrary code via long server name arguments to the (1) mssql_connect and (2) mssql_pconnect functions.
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.
Exploit-DB 1
- PHP 4.4.6 - 'mssql_[p]connect()' Local Buffer Overflow EDB-3417 · local · Mar 5, 2007 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 2407 third-party-advisory
- ADV-2007-0867 vdb-entry
- 24353 third-party-advisory
- 22832 vdb-entry
- 20070306 PHP <= 4.4.6 mssql_connect() & mssql_pconnect() local buffer overflow and safe_mode bypass mailing-list
- http://retrogod.altervista.org/php_446_mssql_connect_bof.html
- php-ntwdblib-bo(32885) vdb-entry