Re: You're on SecurityFocus.com for the cleartext passwords.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Vince Vielhaber <vev(at)michvhf(dot)com>, The Hermit Hacker <scrappy(at)hub(dot)org>, "Sverre H(dot) Huseby" <sverrehu(at)online(dot)no>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: You're on SecurityFocus.com for the cleartext passwords.
Date: 2000-05-06 07:09:15
Message-ID: 9651.957596955@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

I wrote:
> The main potential hazard I see is portability. Is crypt(3) available
> on *all* the platforms Postgres runs on?

Waitasec, what am I saying? We already *do* have crypt password
support, at least on those platforms where crypt(3) is available.

As near as I can tell, the crypt option transmits an encrypted password
across the wire (good), but the comparison at the server end is done by
taking the cleartext password stored in pg_shadow, crypt()ing it on
the fly, and comparing that to what was sent by the client.

This does have the advantage that the same pg_shadow entry will support
both cleartext-password and crypted-password connections, but we could
get that another way. Assuming that the server has crypt(), the
password could be stored always encrypted instead of always not.
Cleartext-password connections would be handled just by crypting the
received password before comparing. (Before you ask, no I don't think
we should remove the option of cleartext-password connections. What of
clients running on platforms with neither crypt() nor anything better
like Kerberos? Should they be forced to drop down to no security at
all? I think not.)

This'd take some rejiggering in (at least) CREATE USER and ALTER USER,
but it seems doable. I withdraw the complaint about portability...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Sverre H. Huseby 2000-05-06 07:09:33 Re: You're on SecurityFocus.com for the cleartext passwords.
Previous Message Jurgen Defurne 2000-05-06 05:58:49 Re: What do you think?

Browse pgsql-hackers by date

  From Date Subject
Next Message Sverre H. Huseby 2000-05-06 07:09:33 Re: You're on SecurityFocus.com for the cleartext passwords.
Previous Message Tom Lane 2000-05-06 06:16:30 Re: http://www.postgresql.org/doxlist.html (fwd)