pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: pg <pg@newhonest.com>
To: cgg007@yahoo.com
To: pgsql-odbc@postgresql.org
Subject: Re: password leak in mylog thru win odbc
Date: Thu, 20 Mar 2003 10:11:56 +0800
Message-ID: <00aa01c2ee86$15d4ef60$2101a8c0@newhonest.com> (raw)
References: <20030319153124.68964.qmail@web13801.mail.yahoo.com>

Thank you for your suggestion.
1. Does the pgExpress work with VB?
2. Should the commonly used win 32 ODBC consider some way to stop the leak
I'm talking about? My suggestion : mylog can be enabled only when the user
(the one who wants to enable the log) has the rights at the server side. So
each connection will has different rights and mylogs.

-Jason

----- Original Message -----
From: "Chris Gamache" <cgg007@yahoo.com>
To: "pg" <pg@newhonest.com>; <pgsql-odbc@postgresql.org>
Sent: Wednesday, March 19, 2003 11:31 PM
Subject: Re: [ODBC] password leak in mylog thru win odbc


> Several suggestions:
>
> Use a different authentication method like Ident... That won't work if
you've
> already implimented a widespread password authentication system, though.
>
> Modify the code to the ODBC driver to obscure the password from logs. That
> might make it hard to troubleshoot authentication issues, though. It also
won't
> help if you're distributing this application. All the user would have to
do is
> to install a different pgodbc driver without the obscured logfiles, and
you're
> back to square one.
>
> Upgrade to Windows 2000/XP and put the logfile in a directory with
write-only
> access for the system account that ODBC runs under (system I think...
don't
> take my word for it, though) and only allow reading by administrator or
your
> super user account... That won't help if you're distributing an
application.
>
> Ditch ODBC altogether and use pgExpress from www.vitavoom.com. It uses
libpq
> for native access to PostgreSQL. There are no hooks for the user to get
into
> there, AFAIK...
>
> HTH,
>
> CG
>
>
> --- pg <pg@newhonest.com> wrote:
> > I'm using Win ME. I'm trying to write a program in VB and connects to PG
> > with super-user account (or with a "connection user" with many rights).
The
> > detail user rights are embeded in the VB program for detail control, so
that
> > no one should know the connection user. Users only knows their own
password
> > for that VB program, so their password is only useful with that VB
program.
> >
> > But if a user enable the mylog in odbc, the password (pwd) shows up
there in
> > mylogxxxxx.
> >
> > What can I do to hide the password?
> >
> > -Jason
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 4: Don't 'kill -9' the postmaster
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
> http://platinum.yahoo.com
>




view thread (10+ messages)  latest in thread

Message-ID: <00aa01c2ee86$15d4ef60$2101a8c0@newhonest.com>
Permalink:  ../00aa01c2ee86$15d4ef60$2101a8c0@newhonest.com/
Also on:    postgresql.org/message-id/00aa01c2ee86$15d4ef60$2101a8c0@newhonest.com

 · 

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: pg@newhonest.com, cgg007@yahoo.com
  Subject: Re: password leak in mylog thru win odbc
  In-Reply-To: <00aa01c2ee86$15d4ef60$2101a8c0@newhonest.com>
  References: <20030319153124.68964.qmail@web13801.mail.yahoo.com> <00aa01c2ee86$15d4ef60$2101a8c0@newhonest.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