Check: EPAS-00-004300
EnterpriseDB Postgres Advanced Server (EPAS) STIG:
EPAS-00-004300
(in version v1 r1)
Title
If passwords are used for authentication, the EDB Postgres Advanced Server must store only hashed, salted representations of passwords. (Cat I impact)
Discussion
The DOD standard for authentication is DOD-approved PKI certificates. Authentication based on User ID and Password may be used only when it is not possible to employ a PKI certificate, and requires AO approval. In such cases, database passwords stored in clear text, using reversible encryption, or using unsalted hashes would be vulnerable to unauthorized disclosure. Database passwords must always be in the form of one-way, salted hashes when stored internally or externally to the DBMS.
Check Content
Execute the following SQL as the "enterprisedb" user: SHOW password_encryption; If the value is not "scram-sha-256", this is a finding
Fix Text
Execute the following SQL as the "enterprisedb" user: ALTER SYSTEM SET password_encryption = 'scram-sha-256'; SELECT pg_reload_conf();
Additional Identifiers
Rule ID: SV-259247r938794_rule
Vulnerability ID: V-259247
Group Title: SRG-APP-000171-DB-000074
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000196 |
The information system, for password-based authentication, stores only cryptographically-protected passwords. |
Controls
Number | Title |
---|---|
IA-5 (1) |
Password-Based Authentication |