pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@redhat.com>
To: Kurt Seifried <kseifried@redhat.com>
Cc: oss-security@lists.openwall.com, Jan Lieskovsky <jlieskov@redhat.com>
Cc: Steven M. Christey <coley@linus.mitre.org>
Cc: pgsql-jdbc@postgresql.org, Steffen Dettmer <steffen@dett.de>
Subject: Re: [oss-security] CVE DISPUTE notification: postgresql-jdbc: SQL injection due improper escaping of JDBC statement parameters
Date: Wed, 04 Apr 2012 15:47:52 -0400
Message-ID: <5620.1333568872@sss.pgh.pa.us> (raw)
In-Reply-To: <4F7CA1E8.7090606@redhat.com>
References: <4F75A6D2.4040801@redhat.com>
	<4F7CA1E8.7090606@redhat.com>

Kurt Seifried <kseifried@redhat.com> writes:
> So I think it's safe to say that we can (and should) assign CVE's
> based on the unintended interactions of products (assigning a CVE
> helps ensure that people are more likely to find out, security
> scanners all love to pick up on CVE's, etc.). I'm going to assign a
> CVE for this and suggest a description of (stolen directly from the
> first bug report
> (http://lists.opensuse.org/opensuse-security/2012-03/msg00024.html):

> "When using PostgreSQL JDBC driver version 8.1 to connect to a
> PostgreSQL version 9.1 database, escaping of JDBC statement parameters
> does not work and SQL injection attacks are possible. It should be
> noted that the PostgreSQL JDBC driver version 8.1 is officially
> obsolete and should not be used."

> Please use CVE-2012-1618 for this issue.

Well, if you want to have a CVE for this, you should use a more
complete description.  The actual scenario is that pre-8.2 versions
of the JDBC driver do not know about the "standard_conforming_strings"
option of more recent Postgres servers, and are insecure with *any*
Postgres server in which that option is turned on, which has been
possible since server version 8.2.  What changed in the 9.1 server
is that that option is now on by default.  It's still possible
(and will remain so for the foreseeable future) to turn the option off
in the server configuration, making this and other ancient clients
secure again.  But that isn't the default anymore.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <5620.1333568872@sss.pgh.pa.us>
Permalink:  ../5620.1333568872@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5620.1333568872@sss.pgh.pa.us

 · 

reply

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: tgl@redhat.com, kseifried@redhat.com, jlieskov@redhat.com, coley@linus.mitre.org, steffen@dett.de
  Subject: Re: [oss-security] CVE DISPUTE notification: postgresql-jdbc: SQL injection due improper escaping of JDBC statement parameters
  In-Reply-To: <5620.1333568872@sss.pgh.pa.us>
  References: <4F75A6D2.4040801@redhat.com> <4F7CA1E8.7090606@redhat.com> <5620.1333568872@sss.pgh.pa.us>

* 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