Firebird SQL Fbserver Remote Buffer Overflow Vulnerability
BID:24436
Info
Firebird SQL Fbserver Remote Buffer Overflow Vulnerability
| Bugtraq ID: | 24436 |
| Class: | Boundary Condition Error |
| CVE: |
CVE-2007-3181 |
| Remote: | Yes |
| Local: | No |
| Published: | Jun 12 2007 12:00AM |
| Updated: | Mar 27 2008 01:39PM |
| Credit: | Cody Pierce of Tippingpoint Digital Vaccine Labs is credited with the discovery of this vulnerability. |
| Vulnerable: |
Gentoo Linux Firebird Firebird SQL 2.0 Debian Linux 4.0 sparc Debian Linux 4.0 s/390 Debian Linux 4.0 powerpc Debian Linux 4.0 mipsel Debian Linux 4.0 mips Debian Linux 4.0 m68k Debian Linux 4.0 ia-64 Debian Linux 4.0 ia-32 Debian Linux 4.0 hppa Debian Linux 4.0 arm Debian Linux 4.0 amd64 Debian Linux 4.0 alpha Debian Linux 4.0 |
| Not Vulnerable: |
Firebird Firebird SQL 2.0.1 |
Discussion
Firebird SQL Fbserver Remote Buffer Overflow Vulnerability
Firebird SQL is prone to a remote buffer-overflow vulnerability.
An attacker can exploit this issue to execute arbitrary machine code in the context of the affected database server. Failed exploit attempts will likely crash the server, denying service to legitimate users.
Firebird SQL 2.0 is vulnerable; previous versions may also be affected.
Firebird SQL is prone to a remote buffer-overflow vulnerability.
An attacker can exploit this issue to execute arbitrary machine code in the context of the affected database server. Failed exploit attempts will likely crash the server, denying service to legitimate users.
Firebird SQL 2.0 is vulnerable; previous versions may also be affected.
Exploit / POC
Firebird SQL Fbserver Remote Buffer Overflow Vulnerability
The following proof-of-concept request is available from Tippingpoint:
typedef struct p_cnct
{
P_OP p_cnct_operation; /* OP_CREATE or OP_OPEN */
USHORT p_cnct_cversion; /* Version of connect protocol */
P_ARCH p_cnct_client; /* Architecture of client */
CSTRING p_cnct_file; /* File name */
USHORT p_cnct_count; /* Protocol versions understood */
CSTRING p_cnct_user_id; /* User identification stuff */
struct p_cnct_repeat
{
USHORT p_cnct_version; /* Protocol version number */
P_ARCH p_cnct_architecture; /* Architecture of client */
USHORT p_cnct_min_type; /* Minimum type */
USHORT p_cnct_max_type; /* Maximum type */
USHORT p_cnct_weight; /* Preference weight */
}
p_cnct_versions[10];
} P_CNCT;
The following proof-of-concept request is available from Tippingpoint:
typedef struct p_cnct
{
P_OP p_cnct_operation; /* OP_CREATE or OP_OPEN */
USHORT p_cnct_cversion; /* Version of connect protocol */
P_ARCH p_cnct_client; /* Architecture of client */
CSTRING p_cnct_file; /* File name */
USHORT p_cnct_count; /* Protocol versions understood */
CSTRING p_cnct_user_id; /* User identification stuff */
struct p_cnct_repeat
{
USHORT p_cnct_version; /* Protocol version number */
P_ARCH p_cnct_architecture; /* Architecture of client */
USHORT p_cnct_min_type; /* Minimum type */
USHORT p_cnct_max_type; /* Maximum type */
USHORT p_cnct_weight; /* Preference weight */
}
p_cnct_versions[10];
} P_CNCT;
Solution / Fix
Firebird SQL Fbserver Remote Buffer Overflow Vulnerability
Solution:
The vendor has released an update that addresses this vulnerability. Please see the vendor references for more information.
Solution:
The vendor has released an update that addresses this vulnerability. Please see the vendor references for more information.
References
Firebird SQL Fbserver Remote Buffer Overflow Vulnerability
References:
References:
- Firebird-2.0.1 Release Notes (Firebird SQL)
- Firebird SQL fbserver 'connect' Buffer Overflow Vulnerability (TippingPoint Digital Vaccine Laboratories)