pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedBUG #14797: It's not safe to use MD5
2+ messages / 2 participants
[nested] [flat]
* BUG #14797: It's not safe to use MD5
@ 2017-09-05 12:01 dmitriy.davydov@deiteriy.com
0 siblings, 1 reply; 2+ messages in thread
From: dmitriy.davydov@deiteriy.com @ 2017-09-05 12:01 UTC (permalink / raw)
To: pgsql-bugs; +Cc: dmitriy.davydov@deiteriy.com
The following bug has been logged on the website:
Bug reference: 14797
Logged by: Dmitriy Davydov
Email address: dmitriy.davydov@deiteriy.com
PostgreSQL version: 9.6.5
Operating system: CentOS
Description:
Hello.
Postgresql 9.6.5 , by default , database user passwords are stored as MD5
hashes (18.8 Encryption Options.
http://repo.postgrespro.ru/doc/pgsql/9.6.5/en/postgres-A4-fop.pdf). At the
moment, it's not safe to use MD5.
Unfortunately, Rolename is used as the salt.
(src/backend/commands/user.c
if (!pg_md5_encrypt(password, rolename, strlen(rolename),
encrypted_password)) )
This is also unsafe.
Payment Card Industry (PCI) Data Security Standard requires the use of hash
functions described in FIPS 180-4, such as SHA-256 and SHA-512.
Please make changes in future versions.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: BUG #14797: It's not safe to use MD5
@ 2017-09-05 13:17 hubert depesz lubaczewski <depesz@depesz.com>
parent: dmitriy.davydov@deiteriy.com
0 siblings, 0 replies; 2+ messages in thread
From: hubert depesz lubaczewski @ 2017-09-05 13:17 UTC (permalink / raw)
To: dmitriy.davydov@deiteriy.com; +Cc: pgsql-bugs
On Tue, Sep 05, 2017 at 12:01:06PM +0000, dmitriy.davydov@deiteriy.com wrote:
> Hello.
> Postgresql 9.6.5 , by default , database user passwords are stored as MD5
> hashes (18.8 Encryption Options.
first of all, it's not a bug, so posting it to pgsql-bugs is not
appropriate.
second of all - newer pg already has stronger hashing support:
https://www.depesz.com/2017/04/18/waiting-for-postgresql-10-support-scram-sha-256-authentication-rfc...
Best regards,
depesz
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2017-09-05 13:17 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-09-05 12:01 BUG #14797: It's not safe to use MD5 dmitriy.davydov@deiteriy.com
2017-09-05 13:17 ` hubert depesz lubaczewski <depesz@depesz.com>
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