From: Markus Schaber <schabi@logix-tt.com>
To: Bernd Kappler <Bernd.Kappler@genedata.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Security hole in 8.1.3 with respect to invalidly-encoded
Date: Mon, 29 May 2006 09:54:35 +0200
Message-ID: <447AA8BB.5080700@logix-tt.com> (raw)
In-Reply-To: <200605290831.42640.bernd.kappler@genedata.com>
References: <200605290831.42640.bernd.kappler@genedata.com>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: schabi@logix-tt.com, Bernd.Kappler@genedata.com
Subject: Re: Security hole in 8.1.3 with respect to invalidly-encoded
In-Reply-To: <447AA8BB.5080700@logix-tt.com>
References: <200605290831.42640.bernd.kappler@genedata.com> <447AA8BB.5080700@logix-tt.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox