[pgpool-committers: 3459] pgpool: Do not use random() while generating MD5 salt.

Tatsuo Ishii ishii at postgresql.org
Fri Sep 9 12:01:48 JST 2016


Do not use random() while generating MD5 salt.

random() should not be used in security related applications.  To
replace random(), import PostmasterRandom() from PostgreSQL.  Also
store current time at the start up of Pgpool-II main process for later
use.

Per Coverity CID 1362583.

Branch
------
V3_3_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=54d44beed3a92abc4fe38ca61d2175bca1aba1b7

Modified Files
--------------
main.c      |  4 ++++
pool_auth.c | 50 +++++++++++++++++++++++++++++++++++++++++++++-----
2 files changed, 49 insertions(+), 5 deletions(-)



More information about the pgpool-committers mailing list