Secunia Logo
Netsikker nu! 2008
 
PHP Interbase Extension "isc_attach_database()" Buffer Overflow
Secunia Advisory: SA24529
Release Date: 2007-03-16
Last Update: 2007-03-21
Popularity: 9,150 views

Critical:
Less critical
Impact: Privilege escalation
Where: Local system
Solution Status: Unpatched

Software:PHP 4.4.x
PHP 5.2.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2007-1475


Description:
rgod has discovered a vulnerability in PHP's Interbase extension, which can be exploited by malicious users to gain escalated privileges.

The vulnerability is caused due to a boundary error when processing arguments passed to "isc_attach_database()" in GDS32.DLL located in the PHP directory when the Interbase 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 "ibase_connect()" or "ibase_pconnect()" functions and execute arbitrary code therefore bypassing security restrictions like the "disable_functions" directive.

Successful exploitation requires that the Interbase 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 permissions to execute PHP code.

Provided and/or discovered by:
rgod

Changelog:
2007-03-21: Added CVE reference.

Original Advisory:
http://milw0rm.com/exploits/3488


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
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.
  
Latest 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.

Most Popular - 3 Hours

1. phpJobScheduler "installed_config_file" File Inclusion Vulnerabilities // 96 views
2. Sun Java System Web Proxy Server FTP Subsystem Buffer Overflow // 38 views
3. CA ARCserve Backup Multiple Vulnerabilities // 33 views
4. Apple Mac OS X Security Update Fixes Multiple Vulnerabilities // 30 views
5. CUPS Multiple Vulnerabilities // 30 views
6. Red Hat update for cups // 28 views
7. Built2go Real Estate Listings "event_id" SQL Injection // 27 views
8. Gentoo update for libxml2 // 25 views
9. DFF PHP Framework API "DFF_config[dir_include]" File Inclusion Vulnerabilities // 24 views
10. Ingo Folder Name Shell Command Injection Vulnerability // 23 views