Re: Re: Encrypting pg_shadow passwords

From: michael(at)miknet(dot)net (Michael Samuel)
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Re: Encrypting pg_shadow passwords
Date: 2001-07-11 03:24:53
Message-ID: 20010711132453.A30967@miknet.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 26, 2001 at 11:02:15AM -0400, Bruce Momjian wrote:
> This is the first time I am hearing people are more concerned about
> pg_shadow security than the wire security. I can see cases where people
> are on secure networks or are using only local users where having
> pg_shadow encrypted is more important than crypt authentication.
> Fortunately the new system will solve both problems.

The crypt authentication currently used offers _no_ security. If I can
sniff on the wire, I can hijack the tcp stream, and trick the client
into doing password authentication.

Also, the double crypt authentication offers no advantage over the wire.

You're better off just doing an md5crypt() on the server side, and just
passing the password in the clear. At least you're not confusing users
into thinking that they're secure.

Of course, SSL *if done correctly with certificate verification* is the
correct fix. If no certificate verification is done, you fall victim to
a man-in-the-middle attack.

--
Michael Samuel <michael(at)miknet(dot)net>

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-07-11 03:32:00 Re: Re: Encrypting pg_shadow passwords
Previous Message Thomas Lockhart 2001-07-11 01:41:26 Re: Re: Backups WAS: 2 gig file size limit