X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id E09BD9FA380 for ; Mon, 29 May 2006 04:54:34 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 51406-09 for ; Mon, 29 May 2006 04:54:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 702AB9FA2FA for ; Mon, 29 May 2006 04:54:26 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (T94a6.t.pppool.de [89.55.148.166]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 9495A6583A; Mon, 29 May 2006 09:55:44 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 8DEE6185447AC; Mon, 29 May 2006 09:54:35 +0200 (CEST) Message-ID: <447AA8BB.5080700@logix-tt.com> Date: Mon, 29 May 2006 09:54:35 +0200 From: Markus Schaber Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Debian Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bernd Kappler Cc: pgsql-jdbc@postgresql.org Subject: Re: Security hole in 8.1.3 with respect to invalidly-encoded References: <200605290831.42640.bernd.kappler@genedata.com> In-Reply-To: <200605290831.42640.bernd.kappler@genedata.com> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/139 X-Sequence-Number: 15267 Hi, Bernd, Bernd Kappler wrote: > we are using the postgresql jdbc driver build version 404 in conjunction with > postgresql 8.1.3. Could you please tell me, if this combination is safe with > respect to the security hole described in > > http://www.postgresql.org/docs/techdocs.50 > > I guess so - but better safe than sorry :-) The pgsql-jdbc driver uses the 16-bit java encoding internally, and the jvm-provided UTF8-encoder. Usually, the JVMs do not accept invalidly encoded strings on input, and will not generate invalid ones on output, so you should be save, if java is the only way for hostile people to access the database. I'm not shure what happens if you insane enough to use bytea and casting inside the database, however, as this bypasses the JVM encodings, you'll need to update your backend in this case. HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in EU! www.ffii.org www.nosoftwarepatents.org