SV-256597r887577_rule
V-256597
SRG-APP-000133-DB-000362
VCPG-70-000007
CAT II
10
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.
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.
V-256597
False
VCPG-70-000007
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.
M
5521