Re: Possible to store invalid SCRAM-SHA-256 Passwords
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: "Jonathan S. Katz" <jkatz@postgresql.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-bugs@lists.postgresql.org, Stephen Frost <sfrost@snowman.net>
Date: 2019-04-23T06:57:01Z
Lists: pgsql-bugs
Attachments
- md5-check-96-v1.patch (text/x-diff) patch v1
On Tue, Apr 23, 2019 at 11:10:18AM +0900, Michael Paquier wrote: > That's a hard morning... Yes you are right and I can see the failure. > By the way, grouping everything in one patch looks more adapted to me > as this tightens all the checks for the different verifier types. The afternoon has been better. I have double-checked your patch and committed it down to v10. Now, there are two things which may need extra handling: - Do we add a note in the release notes about that with a SQL query checking the state of pg_authid? - In ~9.6 we include in md5.h a macro which does not care about hex characters in the MD5 hash. I think that we should fix that as well, or perhaps that's not worth caring per the lack of complaints? Attached is what would be needed. -- Michael
Commits
-
Fix detection of passwords hashed with MD5
- a82c06f4001d 9.4.22 landed
- 20dbc84bd002 9.5.17 landed
- af298f00a1e8 9.6.13 landed
-
Fix detection of passwords hashed with MD5 or SCRAM-SHA-256
- 15fe91e70ec6 10.8 landed
- 7f56d43663dd 11.3 landed
- ccae190b916f 12.0 landed