pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Steven Siebert <smsiebe@gmail.com>
Cc: Stephen Frost <sfrost@snowman.net>
Cc: pgsql-bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication
Date: Thu, 19 Jun 2014 10:57:30 -0400
Message-ID: <31008.1403189850@sss.pgh.pa.us> (raw)
In-Reply-To: <CAC3nzehiW+L_tX6nvwcegaxh1zQZ2o-19+rOaci2AocbyMkfAA@mail.gmail.com>
References: <20140617175511.2589.45249@wrigleys.postgresql.org>
	<20140619124432.GP16098@tamriel.snowman.net>
	<CAC3nzejuQTGTaTyRg9wvYVw9y3ih=iN=+MG-aLasQn+PeG3u=w@mail.gmail.com>
	<20140619135428.GM16098@tamriel.snowman.net>
	<CAC3nzehiW+L_tX6nvwcegaxh1zQZ2o-19+rOaci2AocbyMkfAA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Steven Siebert <smsiebe@gmail.com> writes:
> Agreed.  In our situation (government), though, we must export out
> logs to enterprise logging services where auditors (that wouldn't
> otherwise have access to the server/process) would be able to see it.

The thing is that the postmaster logs will certainly contain all manner
of sensitive information.  A few examples:

* Occasionally, people mess up and enter their username as their password
and vice versa.  Logging of connection failures, or indeed mere logging of
error messages, will therefore expose their password --- admittedly, not
identified as such, but if you see a subsequent successful connection you
know whose it was.

* Logging of queries is likely to expose sensitive user data in the form
of constants in the queries, eg "INSERT INTO customers (name, address,
credit_card_number) VALUES (...)".  Even if you're not logging all
queries, failed queries could still expose such data.

* An example pretty directly connected to yours is that people have
complained about how statement logging will capture "ALTER USER joe
WITH PASSWORD 'joes-new-password'".

So basically, making the logs safe to show to untrusted auditors is a
fool's errand.  You need to deal with this problem in some other,
nontechnical, way.  IOW, why exactly don't you trust the auditors,
and how will you fix that?

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (32+ messages)  latest in thread

Message-ID: <31008.1403189850@sss.pgh.pa.us>
Permalink:  ../31008.1403189850@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31008.1403189850@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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, smsiebe@gmail.com, sfrost@snowman.net
  Subject: Re: BUG #10680: LDAP bind password leaks to log on failed authentication
  In-Reply-To: <31008.1403189850@sss.pgh.pa.us>
  References: <20140617175511.2589.45249@wrigleys.postgresql.org> <20140619124432.GP16098@tamriel.snowman.net> <CAC3nzejuQTGTaTyRg9wvYVw9y3ih=iN=+MG-aLasQn+PeG3u=w@mail.gmail.com> <20140619135428.GM16098@tamriel.snowman.net> <CAC3nzehiW+L_tX6nvwcegaxh1zQZ2o-19+rOaci2AocbyMkfAA@mail.gmail.com> <31008.1403189850@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