-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                  ESB-2007.0555 -- [Win][Linux][Solaris]
Borland Interbase ibserver.exe Create-Request Buffer Overflow Vulnerability
                               25 July 2007

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:              Borland InterBase 2007 SP1 and prior
Publisher:            3Com
Operating System:     Windows
                      Linux variants
                      Solaris
Impact:               Execute Arbitrary Code/Commands
Access:               Remote/Unauthenticated
CVE Names:            CVE-2007-3566

Original Bulletin:    http://dvlabs.tippingpoint.com/advisory/TPTI-07-13

- --------------------------BEGIN INCLUDED TEXT--------------------

TPTI-07-13: Borland Interbase ibserver.exe Create-Request Buffer
            Overflow Vulnerability
http://dvlabs.tippingpoint.com/advisory/TPTI-07-13
http://dvlabs.tippingpoint.com/blog/1024/Step-by-Step-of-Discovery

July 24, 2007

- -- CVE ID:
CVE-2007-3566

- -- Affected Vendor:
Borland

- -- Affected Products:
Borland InterBase 2007

- -- TippingPoint(TM) IPS Customer Protection:
TippingPoint IPS customers have been protected against this
vulnerability since February  1, 2007 by Digital Vaccine protection
filter ID 5066. For further product information on the TippingPoint IPS:

    http://www.tippingpoint.com 

- -- Vulnerability Details:
This vulnerability allows remote attackers to execute arbitrary code on
vulnerable installations of Borland Interbase. Authentication is not
required to exploit this vulnerability.

The specific flaw exists within the database service, ibserver.exe,
which binds to TCP port 3050. The service receives socket data in the
following format:

    [4-byte request][request arguments][data]

A vulnerability exists in Interbase when specifying a "create" request
(0x14).  The request is broken down as such:

    [0x00000014][4-byte id][4-byte size][data]
 
The vulnerability exists during an inline string copy operation.

    0x0043A0C5 mov     ecx, [ebp+var_8D8]
    0x0043A0CB and     ecx, 0FFFFh
    0x0043A0D1 mov     esi, [ebp+arg_8]
    0x0043A0D4 mov     edi, [ebp+var_1C]
    0x0043A0D7 mov     eax, ecx
    0x0043A0D9 shr     ecx, 2
    0x0043A0DC rep movsd

Where ecx is our 4-byte size, esi is our data, and edi a stack pointer.
 When a large value is specified in the size, the associate data is
copied to the stack resulting in a classic overflow.  With enough data
the SEH pointer can be compromised and arbitrary code execution is
trivial.

- -- Vendor Response:
Borland has released InterBase 2007 SP2 which addresses this
vulnerability. More details can be found at:

    http://www.codegear.com/downloads/regusers/interbase


- -- Disclosure Timeline:
2007.01.31 - Vulnerability reported to vendor
2007.02.01 - Digital Vaccine released to TippingPoint customers
2007.07.24 - Coordinated public release of advisory

- -- Credit:
This vulnerability was discovered by Cody Pierce, TippingPoint DVLabs.

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments,
is being sent by 3Com for the sole use of the intended recipient(s) and
may contain confidential, proprietary and/or privileged information.
Any unauthorized review, use, disclosure and/or distribution by any 
recipient is prohibited.  If you are not the intended recipient, please
delete and/or destroy all copies of this message regardless of form and
any included attachments and notify 3Com immediately by contacting the
sender via reply e-mail or forwarding to 3Com at postmaster@3com.com. 

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        http://www.auscert.org.au/render.html?cid=1980

If you believe that your computer system has been compromised or attacked in 
any way, we encourage you to let us know by completing the secure National IT 
Incident Reporting Form at:

        http://www.auscert.org.au/render.html?it=3192

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================

-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQCVAwUBRqatvyh9+71yA2DNAQIakgP8DlFAfXO6IyVuYM/D5TuKhgx/0ihWA9Q/
WKBcVLhItK6yjk6vUwBtqn5O1tT7zZ3H5TIDY6yfFM9vewy9jEpVvpKTB/yDFtGa
sfJuOYUGmt2nStBWZ6ZSVuYXC2zyYj/w7I8IHeF3kDBLMkrRSQPU4AjstNJZ8nBl
iQmBPfIr9Rg=
=0MAe
-----END PGP SIGNATURE-----