EPAS-00-008700 - The EDB Postgres Advanced Server must disable network functions, ports, protocols, and services deemed by the organization to be nonsecure, in accord with the Ports, Protocols, and Services Management (PPSM) guidance.

Information

Use of nonsecure network functions, ports, protocols, and services exposes the system to avoidable threats. A database cluster listens on a single port (usually 5444 for EDB Postgres Advanced Server).

The Postgres Enterprise Manager (PEM) agents do not listen on ports; they only act as clients to the PEM server. The PEM server has two components, a repository (which is a Postgres database) and a web application. The web application listens on a port configured in Apache HTTP Server, generally 8080 or 8443. The ports to check are: the primary Postgres cluster port, the PEM HTTPD port, and the PEM Repository DB port. Generally, the PEM HTTPD port and the PEM Repository DB port should be installed on an isolated management machine with administrator access only.

Solution

Disable each prohibited network function, port, protocol, or service prohibited by the PPSM guidance.

Open 'pg_hba.conf' in an editor. The default path for the pg_hba.conf file is /var/lib/edb/as<version>/data (PGDATA), but this will vary according to local circumstances.

Change the TYPE of any rows not starting with a '#' to be either 'local' or 'hostssl'. The METHOD for the local rows should be 'peer', which will authenticate based on the operating system name. The METHOD for the hostssl rows should be one of these (in preferred order): cert, ldap, sspi, pam, or scram-sha-256.

Execute the following SQL as 'enterprisedb' operating system user:

> psql edb -c 'ALTER SYSTEM SET port = <port>'

Execute the following operating system command as the 'root' user (or user with sudo privileges) to restart the postgres instance:

> systemctl restart edb-as-<version>

Where <version> is the major version of the EDB Postgres Advanced Server instance [e.g., 15].

See Also

https://dl.dod.cyber.mil/wp-content/uploads/stigs/zip/U_EPAS_V1R1_STIG.zip

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-7(1)(b), CAT|II, CCI|CCI-001762, Rule-ID|SV-259286r938911_rule, STIG-ID|EPAS-00-008700, Vuln-ID|V-259286

Plugin: Unix

Control ID: a6ddee3c186913e11b7c84898f549efdec32d484498aa553a07f40db28ea4beb