Apr 2019

2 commits
Fix detection of passwords hashed with MD5
24 Apr 2019Michael PaquierREL9_6_STABLE9.6.13REL9_5_STABLE9.5.17REL9_4_STABLE9.4.22
LLM analysis, 100% surelanded as postedfrom patchset #211 of 1 reviewer saw the final version

The sole hunk in src/include/libpq/md5.h matches #21 exactly: it adds MD5_PASSWD_CHARSET and a strspn() check to isMD5 while retaining strlen(). Michael confirms completion in #27.

  • Jonathan Katzsaw the final versiontrailerIn #22, Jonathan supported the legacy fix and confirmed that the affected code also existed in PostgreSQL 9.5 and 9.4; the posted patch landed unchanged.
Fix detection of passwords hashed with MD5 or SCRAM-SHA-256
23 Apr 2019Michael Paquiermaster12beta1REL_19_STABLE12beta1REL_18_STABLE12beta1REL_17_STABLE12beta1REL_16_STABLE12beta1REL_15_STABLE12beta1REL_14_STABLE12beta1REL_13_STABLE12beta1+3 more
LLM analysis, 100% suremodified before commitmoderate changesfrom patchset #151 of 2 reviewers saw the final version

The commit follows Michael's combined version in #15, restoring the MD5 strlen() condition, removing the redundant outer SCRAM prefix check, and adding an overlength MD5 regression case. Its Author trailer credits Jonathan Katz, whose patches #8 and #12 Michael combined.

  • Tom Lanesaw an earlier versiontrailerTom requested MD5 validation in #5, discussed testing in #13, and caught the missing length check in #16, before the final local logic corrections.
  • Michael Paquiersaw the final versiontrailerMichael requested regression coverage in #3, combined and revised the patches in #15, accepted the length-check correction in #20, and reviewed the final version as committer.

Credits across 2 commits

Author
Jonathan S. Katz1
Michael Paquier1
Reviewer
Jonathan S. Katz1
Michael Paquier1
Tom Lane1
Reported by
Tom Lane1
Committer
Michael Paquier2