Secunia Security Advisory - rgod has discovered a vulnerability in PHP's MSSQL Extension, which can be exploited to bypass certain security restrictions.
7548c935403d7481ae958425714ef07a6db1f5d927ea09d4ac338fba470ff1bd
----------------------------------------------------------------------
Want a new job?
http://secunia.com/secunia_vacancies/
Secunia is looking for new researchers with a reversing background
and experience in writing exploit code:
http://secunia.com/hardcore_disassembler_and_reverse_engineer/
http://secunia.com/Disassembling_og_Reversing/
----------------------------------------------------------------------
TITLE:
PHP MSSQL Extension NTWDBLIB.DLL "dbopen" Buffer Overflow
SECUNIA ADVISORY ID:
SA24353
VERIFY ADVISORY:
http://secunia.com/advisories/24353/
CRITICAL:
Less critical
IMPACT:
Security Bypass
WHERE:
Local system
SOFTWARE:
PHP 5.2.x
http://secunia.com/product/13446/
PHP 4.4.x
http://secunia.com/product/5768/
DESCRIPTION:
rgod has discovered a vulnerability in PHP's MSSQL Extension, which
can be exploited to bypass certain security restrictions.
The vulnerability is caused due to a boundary error when processing
arguments within the "dbopen()" function in NTWDBLIB.DLL located in
the PHP directory when the MSSQL extension is installed. This can be
exploited to cause a stack-based buffer overflow via an overly long
(greater than 260 bytes) string passed as argument to e.g. PHP's
"mssql_connect()" or "mssql_pconnect()" functions and execute
arbitrary code therefore bypassing security restrictions like the
"disable_functions" directive.
Successful exploitation requires that the MSSQL extension is
installed.
The vulnerability is reported in PHP 4.4.6 and confirmed in the
PHP-5.2.1 win32 installer. Other versions may also be affected.
SOLUTION:
Grant only trusted users access to the affected system.
PROVIDED AND/OR DISCOVERED BY:
rgod
ORIGINAL ADVISORY:
http://retrogod.altervista.org/php_446_mssql_connect_bof.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.
----------------------------------------------------------------------