SV-233519r617333_rule
V-233519
SRG-APP-000172-DB-000075
CD12-00-000800
CAT II
10
Note: The following instructions use the PGDATA environment variable. See supplementary content APPENDIX-F for instructions on configuring PGDATA.
As the database administrator (shown here as "postgres"), edit pg_hba.conf authentication file and change all entries of "password" to "scram-sha-256":
$ sudo su - postgres
$ vi ${PGDATA?}/pg_hba.conf
host all all .example.com scram-sha-256
Note: The following instructions use the PGDATA environment variable. See supplementary content APPENDIX-F for instructions on configuring PGDATA.
As the database administrator (shown here as "postgres"), review the authentication entries in pg_hba.conf:
$ sudo su - postgres
$ cat ${PGDATA?}/pg_hba.conf
If any entries use the auth_method (last column in records) "password" or "md5", this is a finding.
V-233519
False
CD12-00-000800
Note: The following instructions use the PGDATA environment variable. See supplementary content APPENDIX-F for instructions on configuring PGDATA.
As the database administrator (shown here as "postgres"), review the authentication entries in pg_hba.conf:
$ sudo su - postgres
$ cat ${PGDATA?}/pg_hba.conf
If any entries use the auth_method (last column in records) "password" or "md5", this is a finding.
M
5254