VMware Postgres must limit modify privileges to authorized accounts.

Severity
Group ID
Group Title
Version
Rule ID
Date
STIG Version
mediumV-256597SRG-APP-000133-DB-000362VCPG-70-000007SV-256597r887577_rule2023-06-151
Description
If VMware Postgres were to allow any user to make changes to database structure or logic, those changes might be implemented without undergoing the appropriate testing and approvals that are part of a robust change management process. Only qualified and authorized individuals must be allowed to obtain access to information system components to initiate changes, including upgrades and modifications. Unmanaged changes that occur to the database software libraries or configuration can lead to unauthorized or compromised installations.
ℹ️ Check
At the command prompt, run the following command: # /opt/vmware/vpostgres/current/bin/psql -U postgres -c "\du;"|grep "Create" Expected result: postgres | Superuser, Create role, Create DB, Replication, Bypass RLS | {} vc | Create DB | {} vlcmuser | Create DB | {} If accounts other than "postgres","vc", and "vlcmuser" have any "Create" privileges, this is a finding.
✔️ Fix
At the command prompt, run the following command: # /opt/vmware/vpostgres/current/bin/psql -U postgres -c "REVOKE ALL PRIVILEGES FROM <user>;" Replace <user> with the account discovered during the check.