pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-odbc@postgreSQL.org
Subject: Security of ODBC debug log file leaves something to be desired
Date: Thu, 07 Apr 2005 23:00:24 -0400
Message-ID: <24444.1112929224@sss.pgh.pa.us> (raw)

I got a complaint here
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=154126
pointing out that when you set debug=1, the generated log file
is world-readable by default, which doesn't seem like a good
idea when it may contain your password.  Also, since the name
of the file is pretty predictable, there is an opportunity
for a symlink redirection attack (though I doubt anything
really interesting could be accomplished that way).

Any thoughts about fixing this?  It's hard to believe no one
has pointed it out before, so I was wondering if there was some
good reason for doing it like this.

			regards, tom lane



view thread (4+ messages)  latest in thread

Message-ID: <24444.1112929224@sss.pgh.pa.us>
Permalink:  ../24444.1112929224@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/24444.1112929224@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-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us
  Subject: Re: Security of ODBC debug log file leaves something to be desired
  In-Reply-To: <24444.1112929224@sss.pgh.pa.us>
  References: <24444.1112929224@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