Check: EPAS-00-004100
EnterpriseDB Postgres Advanced Server (EPAS) STIG:
EPAS-00-004100
(in version v1 r1)
Title
The EDB Postgres Advanced Server must be configured to prohibit or restrict the use of organization-defined functions, ports, protocols, and/or services, as defined in the PPSM CAL and vulnerability assessments. (Cat II impact)
Discussion
In order to prevent unauthorized connection of devices, unauthorized transfer of information, or unauthorized tunneling (i.e., embedding of data types within data types), organizations must disable or restrict unused or unnecessary physical and logical ports/protocols/services on information systems. Applications are capable of providing a wide variety of functions and services. Some of the functions and services provided by default may not be necessary to support essential organizational operations. Additionally, it is sometimes convenient to provide multiple services from a single component (e.g., email and web services); however, doing so increases risk over limiting the services provided by any one component. To support the requirements and principles of least functionality, the application must support the organizational requirements providing only essential capabilities and limiting the use of ports, protocols, and/or services to only those required, authorized, and approved to conduct official business or to address authorized quality of life issues. Database Management Systems using ports, protocols, and services deemed unsafe are open to attack through those ports, protocols, and services. This can allow unauthorized access to the database and through the database to other components of the information system.
Check Content
Execute the following SQL as the "enterprisedb" operating system user: > psql edb -c "SHOW port" > psql edb -c "SHOW listen_addresses" If the port or addresses are not approved, this is a finding.
Fix Text
Execute the following SQL as the "enterprisedb" operating system user: > psql edb -c "ALTER SYSTEM SET port = <port number>" > psql edb -c "ALTER SYSTEM SET listen_addresses = '<addresses>'" Execute the following operating system command as the "root" user: > systemctl restart edb-as-<version> Note: <version> is the major version of the EDB Postgres Advanced Server instance (e.g., 15).
Additional Identifiers
Rule ID: SV-259244r938785_rule
Vulnerability ID: V-259244
Group Title: SRG-APP-000142-DB-000094
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-000382 |
The organization configures the information system to prohibit or restrict the use of organization-defined functions, ports, protocols, and/or services. |
Controls
Number | Title |
---|---|
CM-7 |
Least Functionality |