SV-256605r887601_rule
V-256605
SRG-APP-000233-DB-000124
VCPG-70-000015
CAT II
10
At the command prompt, run the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "REVOKE ALL PRIVILEGES ON <name> FROM <user>;"
Replace <name> and <user> with the Access Privilege name and account, respectively, discovered during the check.
At the command prompt, run the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "\dp .*.;" |grep -E "information_schema|pg_catalog"|awk -F '|' '{print $4}'|awk -F '/' '{print $1}'|grep -v "=r" | grep -v "^[[:space:]]*$" | grep -v "postgres"
If any lines are returned, this is a finding.
V-256605
False
VCPG-70-000015
At the command prompt, run the following command:
# /opt/vmware/vpostgres/current/bin/psql -U postgres -c "\dp .*.;" |grep -E "information_schema|pg_catalog"|awk -F '|' '{print $4}'|awk -F '/' '{print $1}'|grep -v "=r" | grep -v "^[[:space:]]*$" | grep -v "postgres"
If any lines are returned, this is a finding.
M
5521