pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mischa Sandberg <mischa.sandberg@telus.net>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Security of ODBC debug log file leaves something to be desired
Date: Thu,  7 Apr 2005 22:24:45 -0700
Message-ID: <1112937885.4256159d1fb18@webmail.telus.net> (raw)
In-Reply-To: <24444.1112929224@sss.pgh.pa.us>
References: <24444.1112929224@sss.pgh.pa.us>

Quoting Tom Lane <tgl@sss.pgh.pa.us>:

> 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.  
> 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.

Read your comments in the bug report. No, it is not intentional.
It is just YA case of ODBC paying only lip service to security.
There are still many commercial drivers that send the password over TCP,
in the clear. Gah.

Both the driver manager and the driver write to the debug log.
Each of them is responsible for not doing things like that!
File permissions on the log itself are rather weak protection.

When I worked for Simba (ODBC kit/SQL engine company, now owned by orbital.com)
we patch iODBC so that the password string was overwritten with "*"s
before it was logged; and our driver kit did the same.
It is simple to fix. Can't guarantee I can make the time right now;
having too much antifun with Postgres performance on Solaris.

-- 
"Dreams come true, not free." -- S.Sondheim, ITW




view thread (4+ messages)  latest in thread

Message-ID: <1112937885.4256159d1fb18@webmail.telus.net>
Permalink:  ../1112937885.4256159d1fb18@webmail.telus.net/
Also on:    postgresql.org/message-id/1112937885.4256159d1fb18@webmail.telus.net

 · 

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: mischa.sandberg@telus.net, tgl@sss.pgh.pa.us
  Subject: Re: Security of ODBC debug log file leaves something to be desired
  In-Reply-To: <1112937885.4256159d1fb18@webmail.telus.net>
  References: <24444.1112929224@sss.pgh.pa.us> <1112937885.4256159d1fb18@webmail.telus.net>

* 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