X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id EC486D1B347 for ; Tue, 11 May 2004 20:33:16 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 74506-08 for ; Tue, 11 May 2004 20:32:59 -0300 (ADT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id B044BD1D28B for ; Tue, 11 May 2004 20:32:55 -0300 (ADT) Received: (qmail 30219 invoked by uid 65534); 11 May 2004 23:32:57 -0000 Received: from dsl-213-023-254-034.arcor-ip.net (EHLO colt.pezone.net) (213.23.254.34) by mail.gmx.net (mp012) with SMTP; 12 May 2004 01:32:57 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: 247306@bugs.debian.org, pgsql-bugs@postgresql.org, Martin Pitt Subject: Re: Fwd: Bug#247306: odbc-postgresql: SIGSEGV with long inputs (> 10000 bytes) Date: Wed, 12 May 2004 01:31:37 +0200 User-Agent: KMail/1.5.1 Cc: pgsql-odbc@postgresql.org References: <20040511100357.GA23102@ifsr.de> In-Reply-To: <20040511100357.GA23102@ifsr.de> MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200405120130.16067.peter_e@gmx.net> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/77 X-Sequence-Number: 8349 Martin Pitt wrote: > A week ago we at Debian received the bug report below: due to a > buffer overflow in psqlodbc it is possible to crash (and possibly > exploit) apache. I already sent this mail to the psqlodbc list [1], > but unfortunately got no response so far. So maybe there are some > hackers here who can help with this? The problem is that the ODBC driver just writes the long user name or password into its internal data structures without paying attention the fact that it's only got 256 bytes of space. (function PGAPI_Connect in file connection.c) It's the oldest bug in the book really.