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,136 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

Today
New advisories: 9
New vulnerabilities: 32
Updated advisories: 12

Highly // 137 views
Opera Multiple Vulnerabilities
Moderately // 94 views
Red Hat update for condor
Moderately // 91 views
Condor Multiple Vulnerabilities
Moderately // 109 views
Gentoo update for wordnet
Moderately // 130 views
Red Hat update for kernel

7th Oct, 2008
New advisories: 19
New vulnerabilities: 68
Updated advisories: 61

Moderately // 479 views
Debian update for php5

Solutions | More...  


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. Adobe Flash Player "Clickjacking" Security Bypass Vulnerability // 166 views
2. Red Hat update for kernel // 122 views
3. Opera Multiple Vulnerabilities // 120 views
4. Gentoo update for wordnet // 104 views
5. Hero DVD Player M3U Processing Buffer Overflow Vulnerability // 88 views
6. Red Hat update for condor // 86 views
7. Condor Multiple Vulnerabilities // 85 views
8. PHP Realtor "v_cat" SQL Injection Vulnerability // 62 views
9. Debian update for php5 // 48 views
10. Atarone CMS Multiple Vulnerabilities // 30 views