Firebird Relational Database Multiple Buffer Overflow Vulnerabilities

Filename: RISE-2007003.txt (52ab92928042b87748dac8e2ca9010f0)
RISE ID: RISE-2007003
CVE Name: CVE-2007-5245, CVE-2007-5246
Bugtraq ID: 25925
Published: Oct 03, 2007 21:54
Updated: Oct 10, 2007 22:22

Introduction

There exists multiple vulnerabilities within functions of Firebird Relational Database, which when properly exploited can lead to remote compromise of the vulnerable system.
These vulnerabilities were confirmed by us in the following versions of Firebird Relational Database, other versions may be also affected.

Details

The vulnerable functions do not validate user supplied data when copying it to a stack-based buffer, resulting in a stack-based buffer overflow. The exploitation of these vulnerabilities are trivial and results in remote compromise of the vulnerable system.

This is the list of vulnerable functions, some of them contain more than one stack-based buffer overflow vulnerability.

These vulnerabilities can be triggered by sending specially crafted attach, create and service attach requests.

Proof of concept codes for these vulnerabilities can be downloaded from our website http://risesecurity.org/.

Vendor

The vulnerabilities 1 and 2 were cerrected in Firebird XX-V2.0.0.12748, 3 and 4 were corrected in Firebird XX-V2.0.3.12981.

Credits

These vulnerabilities were discovered by Adriano Lima <adriano@risesecurity.org> and Ramon de Carvalho Valle <ramon@risesecurity.org>.

Disclaimer

The authors reserve the right not to be responsible for the topicality, correctness, completeness or quality of the information provided in this document. Liability claims regarding damage caused by the use of any information provided, including any kind of information which is incomplete or incorrect, will therefore be rejected.

Appendix

Proof of concept codes for these vulnerabilities can be downloaded from our website http://risesecurity.org/.