Check: EPAS-00-008500
EnterpriseDB Postgres Advanced Server (EPAS) STIG:
EPAS-00-008500
(in version v1 r1)
Title
The EDB Postgres Advanced Server must enforce access restrictions associated with changes to the configuration of the EDB Postgres Advanced Server or database(s). (Cat II impact)
Discussion
Failure to provide logical access restrictions associated with changes to configuration may have significant effects on the overall security of the system. When dealing with access restrictions pertaining to change control, it should be noted that any changes to the hardware, software, and/or firmware components of the information system can potentially have significant effects on the overall security of the system. Accordingly, only qualified and authorized individuals should be allowed to obtain access to system components for the purposes of initiating changes, including upgrades and modifications.
Check Content
Review the security configuration of the EDB Postgres database(s). If EDB Postgres does not enforce access restrictions associated with changes to the configuration of the database(s), this is a finding. To assist in conducting reviews of permissions, the following psql commands describe permissions of databases, schemas, and users: \l \dn+ \du Permissions of concern in this respect include the following, and possibly others: - any user with SUPERUSER privileges. - any database or schema with "C" (create) or "w" (update) privileges that are not necessary.
Fix Text
Configure EDB Postgres Advanced Server to enforce access restrictions associated with changes to the configuration of the EDB Postgres database(s). Other third-party monitoring tools may be used to satisfy this requirement. Use the ALTER ROLE to remove accesses from roles. As the "enterprisedb" operating system user, run the following: > psql edb -c "ALTER ROLE <rolename> NOSUPERUSER" Use REVOKE to remove privileges from databases and schemas: > psql edb -c "REVOKE ALL PRIVILEGES ON <objectname> FROM <username>"
Additional Identifiers
Rule ID: SV-259284r938905_rule
Vulnerability ID: V-259284
Group Title: SRG-APP-000380-DB-000360
Expert Comments
CCIs
Number | Definition |
---|---|
CCI-001813 |
The information system enforces access restrictions. |
Controls
Number | Title |
---|---|
CM-5 (1) |
Automated Access Enforcement / Auditing |